author | zecke <zecke> | 2002-11-15 15:31:47 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-11-15 15:31:47 (UTC) |
commit | 5a6e66edad1070f624d54320278d00372f112213 (patch) (unidiff) | |
tree | ab1028759194edace4c79cf90d18dc1362a84aa9 /libopie2/opiepim/core/opimrecord.h | |
parent | 05f56fbbbe9ea5546f7503f4852fcab9c5b10a00 (diff) | |
download | opie-5a6e66edad1070f624d54320278d00372f112213.zip opie-5a6e66edad1070f624d54320278d00372f112213.tar.gz opie-5a6e66edad1070f624d54320278d00372f112213.tar.bz2 |
Add the implementation for the XRef Manager
Add it to libopie.pro
Adjust OPimRecord to use the new manager
The backends do not support xref yet
Diffstat (limited to 'libopie2/opiepim/core/opimrecord.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimrecord.h | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/libopie2/opiepim/core/opimrecord.h b/libopie2/opiepim/core/opimrecord.h index d9ccad4..1642a5e 100644 --- a/libopie2/opiepim/core/opimrecord.h +++ b/libopie2/opiepim/core/opimrecord.h | |||
@@ -9,2 +9,3 @@ | |||
9 | 9 | ||
10 | #include <opie/opimxrefmanager.h> | ||
10 | 11 | ||
@@ -88,26 +89,8 @@ public: | |||
88 | /** | 89 | /** |
89 | * the related apps names | 90 | * returns a reference of the |
91 | * Cross Reference Manager | ||
92 | * Partner One is THIS PIM RECORD! | ||
93 | * Two is the Partner where we link to | ||
90 | */ | 94 | */ |
91 | QStringList relatedApps()const; | 95 | OPimXRefManager& xrefmanager(); |
92 | |||
93 | /** | ||
94 | * the realtions between an app | ||
95 | */ | ||
96 | QArray<int> relations( const QString& app )const; | ||
97 | |||
98 | /** | ||
99 | * clear the relations for all relations | ||
100 | * with app | ||
101 | */ | ||
102 | void clearRelation( const QString& app ); | ||
103 | |||
104 | /** | ||
105 | * add a relation | ||
106 | */ | ||
107 | void addRelation( const QString& app, int id ); | ||
108 | |||
109 | /** | ||
110 | * set the relations for an app | ||
111 | */ | ||
112 | void setRelations( const QString&, QArray<int> ids ); | ||
113 | 96 | ||
@@ -120,3 +103,3 @@ protected: | |||
120 | Qtopia::UidGen &uidGen(); | 103 | Qtopia::UidGen &uidGen(); |
121 | QString crossToString()const; | 104 | // QString crossToString()const; |
122 | 105 | ||
@@ -125,3 +108,3 @@ private: | |||
125 | OPimRecordPrivate *d; | 108 | OPimRecordPrivate *d; |
126 | QMap<QString, QArray<int> > m_relations; | 109 | OPimXRefManager m_xrefman; |
127 | static Qtopia::UidGen m_uidGen; | 110 | static Qtopia::UidGen m_uidGen; |