summaryrefslogtreecommitdiff
path: root/libopie/pim/opimmaintainer.cpp
authorzecke <zecke>2002-11-15 21:43:59 (UTC)
committer zecke <zecke>2002-11-15 21:43:59 (UTC)
commita1306f7603ab9a05f7d0059fad60b68f01a0ae71 (patch) (side-by-side diff)
tree9af055fb6dea589ac5e5d93a7bf9f192b257c4c8 /libopie/pim/opimmaintainer.cpp
parent11116312592ada97b202f09c6e9ee57c9dd80b84 (diff)
downloadopie-a1306f7603ab9a05f7d0059fad60b68f01a0ae71.zip
opie-a1306f7603ab9a05f7d0059fad60b68f01a0ae71.tar.gz
opie-a1306f7603ab9a05f7d0059fad60b68f01a0ae71.tar.bz2
Make OTodo compile
add the MaintainerMode to OTodo
Diffstat (limited to 'libopie/pim/opimmaintainer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/opimmaintainer.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/libopie/pim/opimmaintainer.cpp b/libopie/pim/opimmaintainer.cpp
new file mode 100644
index 0000000..e34f035
--- a/dev/null
+++ b/libopie/pim/opimmaintainer.cpp
@@ -0,0 +1,37 @@
+#include "opimmaintainer.h"
+
+OPimMaintainer::OPimMaintainer( enum Mode 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 );
+}
+OPimMaintainer::Mode OPimMaintainer::mode()const {
+ return m_mode;
+}
+int OPimMaintainer::uid()const {
+ return m_uid;
+}
+void OPimMaintainer::setMode( enum Mode mo) {
+ m_mode = mo;
+}
+void OPimMaintainer::setUid( int uid ) {
+ m_uid = uid;
+}