summaryrefslogtreecommitdiff
path: root/noncore/unsupported/libopie/pim/opimmaintainer.h
blob: 793d06664f8cb677c4de65587c49e4033693ecaa (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
#ifndef OPIE_PIM_MAINTAINER_H
#define OPIE_PIM_MAINTAINER_H

#include <qstring.h>

/**
 * Who maintains what?
 */
class OPimMaintainer {
public:
    enum Mode { Undefined = -1,
                Nothing = 0,
                Responsible,
                DoneBy,
                Coordinating,
    };
    OPimMaintainer( int mode = Undefined, int uid = 0);
    OPimMaintainer( const OPimMaintainer& );
    ~OPimMaintainer();

    OPimMaintainer &operator=( const OPimMaintainer& );
    bool operator==( const OPimMaintainer& );
    bool operator!=( const OPimMaintainer& );


    int mode()const;
    int uid()const;

    void setMode( int mode );
    void setUid( int uid );

private:
    int m_mode;
    int m_uid;
    class Private;
    Private *d;

};

#endif