From 5a6e66edad1070f624d54320278d00372f112213 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 15 Nov 2002 15:31:47 +0000 Subject: 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 --- (limited to 'libopie/pim/opimrecord.h') diff --git a/libopie/pim/opimrecord.h b/libopie/pim/opimrecord.h index d9ccad4..1642a5e 100644 --- a/libopie/pim/opimrecord.h +++ b/libopie/pim/opimrecord.h @@ -7,6 +7,7 @@ #include +#include /** * This is the base class for @@ -86,30 +87,12 @@ public: virtual QString recordField(int)const = 0; /** - * the related apps names + * returns a reference of the + * Cross Reference Manager + * Partner One is THIS PIM RECORD! + * Two is the Partner where we link to */ - QStringList relatedApps()const; - - /** - * the realtions between an app - */ - QArray relations( const QString& app )const; - - /** - * clear the relations for all relations - * with app - */ - void clearRelation( const QString& app ); - - /** - * add a relation - */ - void addRelation( const QString& app, int id ); - - /** - * set the relations for an app - */ - void setRelations( const QString&, QArray ids ); + OPimXRefManager& xrefmanager(); /** * set the uid @@ -118,12 +101,12 @@ public: protected: Qtopia::UidGen &uidGen(); - QString crossToString()const; +// QString crossToString()const; private: class OPimRecordPrivate; OPimRecordPrivate *d; - QMap > m_relations; + OPimXRefManager m_xrefman; static Qtopia::UidGen m_uidGen; }; -- cgit v0.9.0.2