Diffstat (limited to 'noncore/unsupported/libopie/pim/opimxrefmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/libopie/pim/opimxrefmanager.h | 43 |
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 @@ | |||
1 | #ifndef OPIM_XREF_MANAGER_H | ||
2 | #define OPIM_XREF_MANAGER_H | ||
3 | |||
4 | #include <qstringlist.h> | ||
5 | |||
6 | #include <opie/opimxref.h> | ||
7 | |||
8 | /** | ||
9 | * This is a simple manager for | ||
10 | * OPimXRefs. | ||
11 | * It allows addition, removing, replacing | ||
12 | * clearing and 'querying' the XRef... | ||
13 | */ | ||
14 | class OPimXRefManager { | ||
15 | public: | ||
16 | OPimXRefManager(); | ||
17 | OPimXRefManager( const OPimXRefManager& ); | ||
18 | ~OPimXRefManager(); | ||
19 | |||
20 | OPimXRefManager& operator=( const OPimXRefManager& ); | ||
21 | bool operator==( const OPimXRefManager& ); | ||
22 | |||
23 | void add( const OPimXRef& ); | ||
24 | void remove( const OPimXRef& ); | ||
25 | void replace( const OPimXRef& ); | ||
26 | |||
27 | void clear(); | ||
28 | |||
29 | /** | ||
30 | * apps participating | ||
31 | */ | ||
32 | QStringList apps()const; | ||
33 | OPimXRef::ValueList list()const; | ||
34 | OPimXRef::ValueList list( const QString& service )const; | ||
35 | OPimXRef::ValueList list( int uid )const; | ||
36 | |||
37 | private: | ||
38 | OPimXRef::ValueList m_list; | ||
39 | class Private; | ||
40 | Private *d; | ||
41 | }; | ||
42 | |||
43 | #endif | ||