author | zecke <zecke> | 2004-02-19 02:04:25 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-19 02:04:25 (UTC) |
commit | f98fdfa6509fd1db5ea9ee834b5808ee12c8e697 (patch) (unidiff) | |
tree | 051013174da734e7f9fd634973c80263c95b1b02 | |
parent | 3b4b9e070f84ce884a98b4112eaee2cef7530308 (diff) | |
download | opie-f98fdfa6509fd1db5ea9ee834b5808ee12c8e697.zip opie-f98fdfa6509fd1db5ea9ee834b5808ee12c8e697.tar.gz opie-f98fdfa6509fd1db5ea9ee834b5808ee12c8e697.tar.bz2 |
Add note for the inline dtor and future Opie versions
in regard to BC
-rw-r--r-- | library/backend/palmtoprecord.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/backend/palmtoprecord.h b/library/backend/palmtoprecord.h index 15cdd6a..0fce032 100644 --- a/library/backend/palmtoprecord.h +++ b/library/backend/palmtoprecord.h | |||
@@ -31,48 +31,51 @@ QPC_TEMPLATEEXTERN template class QPC_EXPORT QMap<QString, QString>; | |||
31 | // MOC_SKIP_END | 31 | // MOC_SKIP_END |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | class QRegExp; | 34 | class QRegExp; |
35 | /** | 35 | /** |
36 | * @short Qtopia namespace | 36 | * @short Qtopia namespace |
37 | * The namespace of Qtopia | 37 | * The namespace of Qtopia |
38 | */ | 38 | */ |
39 | namespace Qtopia { | 39 | namespace Qtopia { |
40 | 40 | ||
41 | class RecordPrivate; | 41 | class RecordPrivate; |
42 | /** | 42 | /** |
43 | * @short The base class of all Records | 43 | * @short The base class of all Records |
44 | * | 44 | * |
45 | * The base class for Records in Qtopia | 45 | * The base class for Records in Qtopia |
46 | * @see Task | 46 | * @see Task |
47 | * @see Event | 47 | * @see Event |
48 | * @see Contact | 48 | * @see Contact |
49 | */ | 49 | */ |
50 | class QPC_EXPORT Record | 50 | class QPC_EXPORT Record |
51 | { | 51 | { |
52 | public: | 52 | public: |
53 | Record() : mUid(0), mCats() { } | 53 | Record() : mUid(0), mCats() { } |
54 | Record( const Record &c ) :mUid( c.mUid ), mCats ( c.mCats ), customMap(c.customMap) { } | 54 | Record( const Record &c ) :mUid( c.mUid ), mCats ( c.mCats ), customMap(c.customMap) { } |
55 | /** | ||
56 | * @todo make non inline in regard to KDE BC guide | ||
57 | */ | ||
55 | virtual ~Record() { } | 58 | virtual ~Record() { } |
56 | 59 | ||
57 | Record &operator=( const Record &c ); | 60 | Record &operator=( const Record &c ); |
58 | 61 | ||
59 | virtual bool match( const QRegExp & ) const { return FALSE; } | 62 | virtual bool match( const QRegExp & ) const { return FALSE; } |
60 | 63 | ||
61 | void setCategories( const QArray<int> &v ) { mCats = v; mCats.sort(); } | 64 | void setCategories( const QArray<int> &v ) { mCats = v; mCats.sort(); } |
62 | void setCategories( int single ); | 65 | void setCategories( int single ); |
63 | const QArray<int> &categories() const { return mCats; } | 66 | const QArray<int> &categories() const { return mCats; } |
64 | 67 | ||
65 | void reassignCategoryId( int oldId, int newId ) | 68 | void reassignCategoryId( int oldId, int newId ) |
66 | { | 69 | { |
67 | int index = mCats.find( oldId ); | 70 | int index = mCats.find( oldId ); |
68 | if ( index >= 0 ) | 71 | if ( index >= 0 ) |
69 | mCats[index] = newId; | 72 | mCats[index] = newId; |
70 | } | 73 | } |
71 | 74 | ||
72 | int uid() const { return mUid; }; | 75 | int uid() const { return mUid; }; |
73 | virtual void setUid( int i ) { mUid = i; uidGen().store( mUid ); } | 76 | virtual void setUid( int i ) { mUid = i; uidGen().store( mUid ); } |
74 | bool isValidUid() const { return mUid != 0; } | 77 | bool isValidUid() const { return mUid != 0; } |
75 | void assignUid() { setUid( uidGen().generate() ); } | 78 | void assignUid() { setUid( uidGen().generate() ); } |
76 | 79 | ||
77 | virtual QString customField(const QString &) const; | 80 | virtual QString customField(const QString &) const; |
78 | virtual void setCustomField(const QString &, const QString &); | 81 | virtual void setCustomField(const QString &, const QString &); |