libopie PIM API Documentation

odatebookaccess.cpp

Go to the documentation of this file.
00001 #include "obackendfactory.h"
00002 #include "odatebookaccess.h"
00003 
00011 ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac )
00012     : OPimAccessTemplate<OEvent>( back )
00013 {
00014     if (!back )
00015         back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null );
00016 
00017     m_backEnd = back;
00018     setBackEnd( m_backEnd );
00019 }
00020 ODateBookAccess::~ODateBookAccess() {
00021 }
00022 
00026 ODateBookAccess::List ODateBookAccess::rawEvents()const {
00027     QArray<int> ints = m_backEnd->rawEvents();
00028 
00029     List lis( ints, this );
00030     return lis;
00031 }
00032 
00036 ODateBookAccess::List ODateBookAccess::rawRepeats()const {
00037     QArray<int> ints = m_backEnd->rawRepeats();
00038 
00039     List lis( ints, this );
00040     return lis;
00041 }
00042 
00046 ODateBookAccess::List ODateBookAccess::nonRepeats()const {
00047     QArray<int> ints = m_backEnd->nonRepeats();
00048 
00049     List lis( ints, this );
00050     return lis;
00051 }
00052 
00058 OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDate& from, const QDate& to ) const {
00059     return m_backEnd->effectiveEvents( from, to );
00060 }
00064 OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDateTime& start ) const {
00065     return m_backEnd->effectiveEvents( start );
00066 }
00067 
00073 OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) const {
00074     return m_backEnd->effectiveNonRepeatingEvents( from, to );
00075 }
00079 OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDateTime& start ) const {
00080     return m_backEnd->effectiveNonRepeatingEvents( start );
00081 }
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:25:19 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001