summaryrefslogtreecommitdiff
path: root/noncore/unsupported/libopie/pim/opimxrefmanager.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/libopie/pim/opimxrefmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/libopie/pim/opimxrefmanager.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/noncore/unsupported/libopie/pim/opimxrefmanager.h b/noncore/unsupported/libopie/pim/opimxrefmanager.h
new file mode 100644
index 0000000..c485e98
--- a/dev/null
+++ b/noncore/unsupported/libopie/pim/opimxrefmanager.h
@@ -0,0 +1,43 @@
+#ifndef OPIM_XREF_MANAGER_H
+#define OPIM_XREF_MANAGER_H
+
+#include <qstringlist.h>
+
+#include <opie/opimxref.h>
+
+/**
+ * This is a simple manager for
+ * OPimXRefs.
+ * It allows addition, removing, replacing
+ * clearing and 'querying' the XRef...
+ */
+class OPimXRefManager {
+public:
+ OPimXRefManager();
+ OPimXRefManager( const OPimXRefManager& );
+ ~OPimXRefManager();
+
+ OPimXRefManager& operator=( const OPimXRefManager& );
+ bool operator==( const OPimXRefManager& );
+
+ void add( const OPimXRef& );
+ void remove( const OPimXRef& );
+ void replace( const OPimXRef& );
+
+ void clear();
+
+ /**
+ * apps participating
+ */
+ QStringList apps()const;
+ OPimXRef::ValueList list()const;
+ OPimXRef::ValueList list( const QString& service )const;
+ OPimXRef::ValueList list( int uid )const;
+
+private:
+ OPimXRef::ValueList m_list;
+ class Private;
+ Private *d;
+};
+
+#endif