00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include "opimbackendoccurrence.h"
00031
00032 namespace Opie {
00033
00034 OPimBackendOccurrence::OPimBackendOccurrence() {}
00047 OPimBackendOccurrence::OPimBackendOccurrence( const QDate& date,
00048 const UID& uid,
00049 const QString& sum )
00050 : m_start( date ), m_end( date ), m_uid( uid ),
00051 m_haveTime(false ), m_summary( sum )
00052 {}
00053
00068 OPimBackendOccurrence::OPimBackendOccurrence( const QDate& date,
00069 const QDate& end,
00070 const UID& uid)
00071 : m_start( date ), m_end( end ), m_uid( uid ), m_haveTime( false )
00072 {}
00073
00074
00085 OPimBackendOccurrence::OPimBackendOccurrence( const QDateTime& date,
00086 const QDateTime& end,
00087 const UID& uid )
00088 : m_start( date ), m_end( end ), m_uid( uid ), m_haveTime( true )
00089 {}
00090
00099 QDateTime OPimBackendOccurrence::startDateTime()const {
00100 return m_start;
00101 }
00102
00111 QDateTime OPimBackendOccurrence::endDateTime()const {
00112 return m_end;
00113 }
00114
00120 UID OPimBackendOccurrence::uid()const {
00121 return m_uid;
00122 }
00123
00135 bool OPimBackendOccurrence::isAllDay()const {
00136 return m_haveTime;
00137 }
00138
00142 QString OPimBackendOccurrence::summary()const {
00143 return m_summary;
00144 }
00145
00146 QString OPimBackendOccurrence::location()const {
00147 return m_location;
00148 }
00149
00150 QString OPimBackendOccurrence::note()const {
00151 return m_note;
00152 }
00153
00166 void OPimBackendOccurrence::setStartDate( const QDate& start) {
00167 m_start = start;
00168 m_haveTime = false;
00169 }
00170
00179 void OPimBackendOccurrence::setStartDateTime( const QDateTime& dt ) {
00180 m_start = dt;
00181 m_haveTime = true;
00182 }
00183
00192 void OPimBackendOccurrence::setEndDate( const QDate& end ) {
00193 m_end = end;
00194 }
00195
00204 void OPimBackendOccurrence::setEndDateTime( const QDateTime& dt ) {
00205 m_end = dt;
00206 }
00207
00216 void OPimBackendOccurrence::setUid( const UID& uid ) {
00217 m_uid = uid;
00218 }
00219
00220
00229 void OPimBackendOccurrence::setSummary( const QString& str ) {
00230 m_summary = str;
00231 }
00232
00233 void OPimBackendOccurrence::setLocation( const QString& str ) {
00234 m_location = str;
00235 }
00236
00237 void OPimBackendOccurrence::setNote( const QString& str ) {
00238 m_note = str;
00239 }
00240
00241 }