summaryrefslogtreecommitdiff
path: root/libopie/pim/opimxref.h
authorzecke <zecke>2002-11-15 11:37:20 (UTC)
committer zecke <zecke>2002-11-15 11:37:20 (UTC)
commitab8d331905b59a86b50cd513123cdde67e4bfb8a (patch) (side-by-side diff)
tree38a0d3a04cd0f594fbf58644447e985e8385f5b0 /libopie/pim/opimxref.h
parentdc68676392f6ac7cced3a9b004fe72a8b408812f (diff)
downloadopie-ab8d331905b59a86b50cd513123cdde67e4bfb8a.zip
opie-ab8d331905b59a86b50cd513123cdde67e4bfb8a.tar.gz
opie-ab8d331905b59a86b50cd513123cdde67e4bfb8a.tar.bz2
Add proposal header for Cross Referencing..
look at them and comment
Diffstat (limited to 'libopie/pim/opimxref.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/opimxref.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/libopie/pim/opimxref.h b/libopie/pim/opimxref.h
new file mode 100644
index 0000000..72154ac
--- a/dev/null
+++ b/libopie/pim/opimxref.h
@@ -0,0 +1,36 @@
+#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 );
+
+ void setPartner( enum Partners, const OPimXRefPartner& );
+
+private:
+ QArray<OPimXRefPartner> m_partners;
+
+ class Private;
+ Private *d;
+};
+
+#endif