Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

opimbackendoccurrence.cpp

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003                              Copyright (C) 2004 Holger Hans Peter Freyther <zecke@handhelds.org>
00004               =.             Copyright (C) The Opie Team <opie-devel@handhelds.org>
00005             .=l.
00006            .>+-=
00007  _;:,     .>    :=|.         This program is free software; you can
00008 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00009 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00010 .="- .-=="i,     .._         License as published by the Free Software
00011  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00012      ._= =}       :          or (at your option) any later version.
00013     .%`+i>       _;_.
00014     .i_,=:_.      -<s.       This program is distributed in the hope that
00015      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00016     : ..    .:,     . . .    without even the implied warranty of
00017     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00018   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00019 ..}^=.=       =       ;      Library General Public License for more
00020 ++=   -.     .`     .:       details.
00021  :     =  ...= . :.=-
00022  -.   .:....=;==+<;          You should have received a copy of the GNU
00023   -_. . .   )=.  =           Library General Public License along with
00024     --        :-=`           this library; see the file COPYING.LIB.
00025                              If not, write to the Free Software Foundation,
00026                              Inc., 59 Temple Place - Suite 330,
00027                              Boston, MA 02111-1307, USA.
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 }

Generated on Sat Nov 5 16:16:16 2005 for OPIE by  doxygen 1.4.2