summaryrefslogtreecommitdiff
path: root/noncore/unsupported/libopie/pim/opimxref.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/libopie/pim/opimxref.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/libopie/pim/opimxref.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/unsupported/libopie/pim/opimxref.h b/noncore/unsupported/libopie/pim/opimxref.h
new file mode 100644
index 0000000..6852651
--- a/dev/null
+++ b/noncore/unsupported/libopie/pim/opimxref.h
@@ -0,0 +1,39 @@
+#ifndef OPIM_XREF_H
+#define OPIM_XREF_H
+
+#include <qarray.h>
+#include <qvaluelist.h>
+
+#include <opie/opimxrefpartner.h>
+
+/**
+ * this is a Cross Referecne between
+ * two Cross Reference Partners
+ */
+class OPimXRef {
+public:
+ typedef QValueList<OPimXRef> ValueList;
+ enum Partners { One, Two };
+ OPimXRef( const OPimXRefPartner& ONE, const OPimXRefPartner& );
+ OPimXRef();
+ OPimXRef( const OPimXRef& );
+ ~OPimXRef();
+
+ OPimXRef &operator=( const OPimXRef& );
+ bool operator==( const OPimXRef& );
+
+ OPimXRefPartner partner( enum Partners )const;
+
+ void setPartner( enum Partners, const OPimXRefPartner& );
+
+ bool containsString( const QString& service)const;
+ bool containsUid( int uid )const;
+
+private:
+ QArray<OPimXRefPartner> m_partners;
+
+ class Private;
+ Private *d;
+};
+
+#endif