~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/pigment/KoUniqueNumberForIdServer.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 * This is useful for fast comparison of Ids, but the number *should* remains private
31
31
 * especially considering that it changes from one running instance to an other.
32
32
 */
33
 
class PIGMENTCMS_EXPORT KoUniqueNumberForIdServer {
34
 
  private:
 
33
class PIGMENTCMS_EXPORT KoUniqueNumberForIdServer
 
34
{
 
35
private:
35
36
    KoUniqueNumberForIdServer();
36
37
    ~KoUniqueNumberForIdServer();
37
 
  public:
 
38
public:
38
39
    static KoUniqueNumberForIdServer* instance();
39
40
    /**
40
41
     * @return an unique number for the given \p _id , for two different call to this function
41
42
     *         with the same \p id the function will always return the same value.
42
 
     * 
 
43
     *
43
44
     * @code
44
45
     *  KoUniqueNumberForIdServer::instance()->numberForId( "rgb" ) == KoUniqueNumberForIdServer::instance()->numberForId( "rgb" );
45
46
     * KoUniqueNumberForIdServer::instance()->numberForId( "rgb" ) != KoUniqueNumberForIdServer::instance()->numberForId( "cmyk" );
46
47
     * @endcode
47
48
     */
48
 
    quint32 numberForId( const QString& );
49
 
  private:
 
49
    quint32 numberForId(const QString&);
 
50
private:
50
51
    struct Private;
51
52
    Private* const d;
52
 
  
 
53
 
53
54
};
54
55
 
55
56
#endif