summaryrefslogtreecommitdiff
authorzecke <zecke>2004-02-19 02:04:25 (UTC)
committer zecke <zecke>2004-02-19 02:04:25 (UTC)
commitf98fdfa6509fd1db5ea9ee834b5808ee12c8e697 (patch) (unidiff)
tree051013174da734e7f9fd634973c80263c95b1b02
parent3b4b9e070f84ce884a98b4112eaee2cef7530308 (diff)
downloadopie-f98fdfa6509fd1db5ea9ee834b5808ee12c8e697.zip
opie-f98fdfa6509fd1db5ea9ee834b5808ee12c8e697.tar.gz
opie-f98fdfa6509fd1db5ea9ee834b5808ee12c8e697.tar.bz2
Add note for the inline dtor and future Opie versions
in regard to BC
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/palmtoprecord.h3
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
@@ -39,32 +39,35 @@ class QRegExp;
39namespace Qtopia { 39namespace Qtopia {
40 40
41class RecordPrivate; 41class 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 */
50class QPC_EXPORT Record 50class QPC_EXPORT Record
51{ 51{
52public: 52public:
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 }