summaryrefslogtreecommitdiff
path: root/libopie/pim/opimxrefmanager.h
blob: 39e5eefca9d6315f63a19125a39dbf132a5b4522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#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;
};

#endif