summaryrefslogtreecommitdiff
path: root/noncore/unsupported/libopie/pim/opimmaintainer.cpp
blob: 92cb25acb8154331912927ef6eca6898f28df85a (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
#include "opimmaintainer.h"

OPimMaintainer::OPimMaintainer( int mode, int uid )
    :  m_mode(mode), m_uid(uid )
{}
OPimMaintainer::~OPimMaintainer() {
}
OPimMaintainer::OPimMaintainer( const OPimMaintainer& main ) {
    *this = main;
}
OPimMaintainer &OPimMaintainer::operator=( const OPimMaintainer& main ) {
    m_mode = main.m_mode;
    m_uid  = main.m_uid;

    return *this;
}
bool OPimMaintainer::operator==( const OPimMaintainer& main ) {
    if (m_mode != main.m_mode ) return false;
    if (m_uid  != main.m_uid  ) return false;

    return true;
}
bool OPimMaintainer::operator!=( const OPimMaintainer& main ) {
    return !(*this == main );
}
int OPimMaintainer::mode()const {
    return m_mode;
}
int OPimMaintainer::uid()const {
    return m_uid;
}
void OPimMaintainer::setMode( int mo) {
    m_mode = mo;
}
void OPimMaintainer::setUid( int uid ) {
    m_uid = uid;
}