opimmaintainer.cpp
Go to the documentation of this file.00001 #include "opimmaintainer.h" 00002 00003 OPimMaintainer::OPimMaintainer( int mode, int uid ) 00004 : m_mode(mode), m_uid(uid ) 00005 {} 00006 OPimMaintainer::~OPimMaintainer() { 00007 } 00008 OPimMaintainer::OPimMaintainer( const OPimMaintainer& main ) { 00009 *this = main; 00010 } 00011 OPimMaintainer &OPimMaintainer::operator=( const OPimMaintainer& main ) { 00012 m_mode = main.m_mode; 00013 m_uid = main.m_uid; 00014 00015 return *this; 00016 } 00017 bool OPimMaintainer::operator==( const OPimMaintainer& main ) { 00018 if (m_mode != main.m_mode ) return false; 00019 if (m_uid != main.m_uid ) return false; 00020 00021 return true; 00022 } 00023 bool OPimMaintainer::operator!=( const OPimMaintainer& main ) { 00024 return !(*this == main ); 00025 } 00026 int OPimMaintainer::mode()const { 00027 return m_mode; 00028 } 00029 int OPimMaintainer::uid()const { 00030 return m_uid; 00031 } 00032 void OPimMaintainer::setMode( int mo) { 00033 m_mode = mo; 00034 } 00035 void OPimMaintainer::setUid( int uid ) { 00036 m_uid = uid; 00037 }
