-rw-r--r-- | libopie/pim/odatebookaccess.cpp | 8 | ||||
-rw-r--r-- | libopie2/opiepim/core/odatebookaccess.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libopie/pim/odatebookaccess.cpp b/libopie/pim/odatebookaccess.cpp index 82934f9..d95fed6 100644 --- a/libopie/pim/odatebookaccess.cpp +++ b/libopie/pim/odatebookaccess.cpp | |||
@@ -1,81 +1,81 @@ | |||
1 | #include "obackendfactory.h" | 1 | #include "obackendfactory.h" |
2 | #include "odatebookaccess.h" | 2 | #include "odatebookaccess.h" |
3 | 3 | ||
4 | /** | 4 | /** |
5 | * Simple constructor | 5 | * Simple constructor |
6 | * It takes a ODateBookAccessBackend as parent. If it is 0 the default implementation | 6 | * It takes a ODateBookAccessBackend as parent. If it is 0 the default implementation |
7 | * will be used! | 7 | * will be used! |
8 | * @param back The backend to be used or 0 for the default backend | 8 | * @param back The backend to be used or 0 for the default backend |
9 | * @param ac What kind of access is intended | 9 | * @param ac What kind of access is intended |
10 | */ | 10 | */ |
11 | ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac ) | 11 | ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac ) |
12 | : OPimAccessTemplate<OEvent>( back ) | 12 | : OPimAccessTemplate<OEvent>( back ) |
13 | { | 13 | { |
14 | if (!back ) | 14 | if (!back ) |
15 | back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null ); | 15 | back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null ); |
16 | 16 | ||
17 | m_backEnd = back; | 17 | m_backEnd = back; |
18 | setBackEnd( m_backEnd ); | 18 | setBackEnd( m_backEnd ); |
19 | } | 19 | } |
20 | ODateBookAccess::~ODateBookAccess() { | 20 | ODateBookAccess::~ODateBookAccess() { |
21 | } | 21 | } |
22 | 22 | ||
23 | /** | 23 | /** |
24 | * @return all events available | 24 | * @return all events available |
25 | */ | 25 | */ |
26 | ODateBookAccess::List ODateBookAccess::rawEvents()const { | 26 | ODateBookAccess::List ODateBookAccess::rawEvents()const { |
27 | QArray<int> ints = m_backEnd->rawEvents(); | 27 | QArray<int> ints = m_backEnd->rawEvents(); |
28 | 28 | ||
29 | List lis( ints, this ); | 29 | List lis( ints, this ); |
30 | return lis; | 30 | return lis; |
31 | } | 31 | } |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * @return all repeating events | 34 | * @return all repeating events |
35 | */ | 35 | */ |
36 | ODateBookAccess::List ODateBookAccess::rawRepeats()const { | 36 | ODateBookAccess::List ODateBookAccess::rawRepeats()const { |
37 | QArray<int> ints = m_backEnd->rawRepeats(); | 37 | QArray<int> ints = m_backEnd->rawRepeats(); |
38 | 38 | ||
39 | List lis( ints, this ); | 39 | List lis( ints, this ); |
40 | return lis; | 40 | return lis; |
41 | } | 41 | } |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * @return all non repeating events | 44 | * @return all non repeating events |
45 | */ | 45 | */ |
46 | ODateBookAccess::List ODateBookAccess::nonRepeats()const { | 46 | ODateBookAccess::List ODateBookAccess::nonRepeats()const { |
47 | QArray<int> ints = m_backEnd->nonRepeats(); | 47 | QArray<int> ints = m_backEnd->nonRepeats(); |
48 | 48 | ||
49 | List lis( ints, this ); | 49 | List lis( ints, this ); |
50 | return lis; | 50 | return lis; |
51 | } | 51 | } |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * @return dates in the time span between from and to | 54 | * @return dates in the time span between from and to |
55 | * @param from Include all events from... | 55 | * @param from Include all events from... |
56 | * @param to Include all events to... | 56 | * @param to Include all events to... |
57 | */ | 57 | */ |
58 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDate& from, const QDate& to ) { | 58 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDate& from, const QDate& to ) const { |
59 | return m_backEnd->effectiveEvents( from, to ); | 59 | return m_backEnd->effectiveEvents( from, to ); |
60 | } | 60 | } |
61 | /** | 61 | /** |
62 | * @return all events at a given datetime | 62 | * @return all events at a given datetime |
63 | */ | 63 | */ |
64 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDateTime& start ) { | 64 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDateTime& start ) const { |
65 | return m_backEnd->effectiveEvents( start ); | 65 | return m_backEnd->effectiveEvents( start ); |
66 | } | 66 | } |
67 | 67 | ||
68 | /** | 68 | /** |
69 | * @return non repeating dates in the time span between from and to | 69 | * @return non repeating dates in the time span between from and to |
70 | * @param from Include all events from... | 70 | * @param from Include all events from... |
71 | * @param to Include all events to... | 71 | * @param to Include all events to... |
72 | */ | 72 | */ |
73 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) { | 73 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) const { |
74 | return m_backEnd->effectiveNonRepeatingEvents( from, to ); | 74 | return m_backEnd->effectiveNonRepeatingEvents( from, to ); |
75 | } | 75 | } |
76 | /** | 76 | /** |
77 | * @return all non repeating events at a given datetime | 77 | * @return all non repeating events at a given datetime |
78 | */ | 78 | */ |
79 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDateTime& start ) { | 79 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDateTime& start ) const { |
80 | return m_backEnd->effectiveNonRepeatingEvents( start ); | 80 | return m_backEnd->effectiveNonRepeatingEvents( start ); |
81 | } | 81 | } |
diff --git a/libopie2/opiepim/core/odatebookaccess.cpp b/libopie2/opiepim/core/odatebookaccess.cpp index 82934f9..d95fed6 100644 --- a/libopie2/opiepim/core/odatebookaccess.cpp +++ b/libopie2/opiepim/core/odatebookaccess.cpp | |||
@@ -1,81 +1,81 @@ | |||
1 | #include "obackendfactory.h" | 1 | #include "obackendfactory.h" |
2 | #include "odatebookaccess.h" | 2 | #include "odatebookaccess.h" |
3 | 3 | ||
4 | /** | 4 | /** |
5 | * Simple constructor | 5 | * Simple constructor |
6 | * It takes a ODateBookAccessBackend as parent. If it is 0 the default implementation | 6 | * It takes a ODateBookAccessBackend as parent. If it is 0 the default implementation |
7 | * will be used! | 7 | * will be used! |
8 | * @param back The backend to be used or 0 for the default backend | 8 | * @param back The backend to be used or 0 for the default backend |
9 | * @param ac What kind of access is intended | 9 | * @param ac What kind of access is intended |
10 | */ | 10 | */ |
11 | ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac ) | 11 | ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac ) |
12 | : OPimAccessTemplate<OEvent>( back ) | 12 | : OPimAccessTemplate<OEvent>( back ) |
13 | { | 13 | { |
14 | if (!back ) | 14 | if (!back ) |
15 | back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null ); | 15 | back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null ); |
16 | 16 | ||
17 | m_backEnd = back; | 17 | m_backEnd = back; |
18 | setBackEnd( m_backEnd ); | 18 | setBackEnd( m_backEnd ); |
19 | } | 19 | } |
20 | ODateBookAccess::~ODateBookAccess() { | 20 | ODateBookAccess::~ODateBookAccess() { |
21 | } | 21 | } |
22 | 22 | ||
23 | /** | 23 | /** |
24 | * @return all events available | 24 | * @return all events available |
25 | */ | 25 | */ |
26 | ODateBookAccess::List ODateBookAccess::rawEvents()const { | 26 | ODateBookAccess::List ODateBookAccess::rawEvents()const { |
27 | QArray<int> ints = m_backEnd->rawEvents(); | 27 | QArray<int> ints = m_backEnd->rawEvents(); |
28 | 28 | ||
29 | List lis( ints, this ); | 29 | List lis( ints, this ); |
30 | return lis; | 30 | return lis; |
31 | } | 31 | } |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * @return all repeating events | 34 | * @return all repeating events |
35 | */ | 35 | */ |
36 | ODateBookAccess::List ODateBookAccess::rawRepeats()const { | 36 | ODateBookAccess::List ODateBookAccess::rawRepeats()const { |
37 | QArray<int> ints = m_backEnd->rawRepeats(); | 37 | QArray<int> ints = m_backEnd->rawRepeats(); |
38 | 38 | ||
39 | List lis( ints, this ); | 39 | List lis( ints, this ); |
40 | return lis; | 40 | return lis; |
41 | } | 41 | } |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * @return all non repeating events | 44 | * @return all non repeating events |
45 | */ | 45 | */ |
46 | ODateBookAccess::List ODateBookAccess::nonRepeats()const { | 46 | ODateBookAccess::List ODateBookAccess::nonRepeats()const { |
47 | QArray<int> ints = m_backEnd->nonRepeats(); | 47 | QArray<int> ints = m_backEnd->nonRepeats(); |
48 | 48 | ||
49 | List lis( ints, this ); | 49 | List lis( ints, this ); |
50 | return lis; | 50 | return lis; |
51 | } | 51 | } |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * @return dates in the time span between from and to | 54 | * @return dates in the time span between from and to |
55 | * @param from Include all events from... | 55 | * @param from Include all events from... |
56 | * @param to Include all events to... | 56 | * @param to Include all events to... |
57 | */ | 57 | */ |
58 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDate& from, const QDate& to ) { | 58 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDate& from, const QDate& to ) const { |
59 | return m_backEnd->effectiveEvents( from, to ); | 59 | return m_backEnd->effectiveEvents( from, to ); |
60 | } | 60 | } |
61 | /** | 61 | /** |
62 | * @return all events at a given datetime | 62 | * @return all events at a given datetime |
63 | */ | 63 | */ |
64 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDateTime& start ) { | 64 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDateTime& start ) const { |
65 | return m_backEnd->effectiveEvents( start ); | 65 | return m_backEnd->effectiveEvents( start ); |
66 | } | 66 | } |
67 | 67 | ||
68 | /** | 68 | /** |
69 | * @return non repeating dates in the time span between from and to | 69 | * @return non repeating dates in the time span between from and to |
70 | * @param from Include all events from... | 70 | * @param from Include all events from... |
71 | * @param to Include all events to... | 71 | * @param to Include all events to... |
72 | */ | 72 | */ |
73 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) { | 73 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) const { |
74 | return m_backEnd->effectiveNonRepeatingEvents( from, to ); | 74 | return m_backEnd->effectiveNonRepeatingEvents( from, to ); |
75 | } | 75 | } |
76 | /** | 76 | /** |
77 | * @return all non repeating events at a given datetime | 77 | * @return all non repeating events at a given datetime |
78 | */ | 78 | */ |
79 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDateTime& start ) { | 79 | OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents( const QDateTime& start ) const { |
80 | return m_backEnd->effectiveNonRepeatingEvents( start ); | 80 | return m_backEnd->effectiveNonRepeatingEvents( start ); |
81 | } | 81 | } |