summaryrefslogtreecommitdiff
path: root/libopie/pim/opimxref.h
Unidiff
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 @@
1#ifndef OPIM_XREF_H
2#define OPIM_XREF_H
3
4#include <qarray.h>
5#include <qvaluelist.h>
6
7#include <opie/opimxrefpartner.h>
8
9/**
10 * this is a Cross Referecne between
11 * two Cross Reference Partners
12 */
13class OPimXRef {
14public:
15 typedef QValueList<OPimXRef> ValueList;
16 enum Partners { One, Two };
17 OPimXRef( const OPimXRefPartner& ONE, const OPimXRefPartner& );
18 OPimXRef();
19 OPimXRef( const OPimXRef& );
20 ~OPimXRef();
21
22 OPimXRef &operator=( const OPimXRef& );
23 bool operator==( const OPimXRef );
24
25 OPimXRefPartner partner( enum Partners );
26
27 void setPartner( enum Partners, const OPimXRefPartner& );
28
29private:
30 QArray<OPimXRefPartner> m_partners;
31
32 class Private;
33 Private *d;
34};
35
36#endif