Diffstat (limited to 'libopie2/opiepim/core/odatebookaccess.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/odatebookaccess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiepim/core/odatebookaccess.cpp b/libopie2/opiepim/core/odatebookaccess.cpp index 29298ea..5f471cf 100644 --- a/libopie2/opiepim/core/odatebookaccess.cpp +++ b/libopie2/opiepim/core/odatebookaccess.cpp | |||
@@ -21,49 +21,49 @@ | |||
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | #include <opie2/obackendfactory.h> | 29 | #include <opie2/obackendfactory.h> |
30 | #include <opie2/odatebookaccess.h> | 30 | #include <opie2/odatebookaccess.h> |
31 | #include <opie2/opimresolver.h> | 31 | #include <opie2/opimresolver.h> |
32 | 32 | ||
33 | namespace Opie { | 33 | namespace Opie { |
34 | /** | 34 | /** |
35 | * Simple constructor | 35 | * Simple constructor |
36 | * It takes a ODateBookAccessBackend as parent. If it is 0 the default implementation | 36 | * It takes a ODateBookAccessBackend as parent. If it is 0 the default implementation |
37 | * will be used! | 37 | * will be used! |
38 | * @param back The backend to be used or 0 for the default backend | 38 | * @param back The backend to be used or 0 for the default backend |
39 | * @param ac What kind of access is intended | 39 | * @param ac What kind of access is intended |
40 | */ | 40 | */ |
41 | ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac ) | 41 | ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac ) |
42 | : OPimAccessTemplate<OPimEvent>( back ) | 42 | : OPimAccessTemplate<OPimEvent>( back ) |
43 | { | 43 | { |
44 | if (!back ) | 44 | if (!back ) |
45 | back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null ); | 45 | back = OBackendFactory<ODateBookAccessBackend>::defaultBackend("datebook", QString::null ); |
46 | 46 | ||
47 | m_backEnd = back; | 47 | m_backEnd = back; |
48 | setBackEnd( m_backEnd ); | 48 | setBackEnd( m_backEnd ); |
49 | } | 49 | } |
50 | ODateBookAccess::~ODateBookAccess() { | 50 | ODateBookAccess::~ODateBookAccess() { |
51 | } | 51 | } |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * @return all events available | 54 | * @return all events available |
55 | */ | 55 | */ |
56 | ODateBookAccess::List ODateBookAccess::rawEvents()const { | 56 | ODateBookAccess::List ODateBookAccess::rawEvents()const { |
57 | QArray<int> ints = m_backEnd->rawEvents(); | 57 | QArray<int> ints = m_backEnd->rawEvents(); |
58 | 58 | ||
59 | List lis( ints, this ); | 59 | List lis( ints, this ); |
60 | return lis; | 60 | return lis; |
61 | } | 61 | } |
62 | 62 | ||
63 | /** | 63 | /** |
64 | * @return all repeating events | 64 | * @return all repeating events |
65 | */ | 65 | */ |
66 | ODateBookAccess::List ODateBookAccess::rawRepeats()const { | 66 | ODateBookAccess::List ODateBookAccess::rawRepeats()const { |
67 | QArray<int> ints = m_backEnd->rawRepeats(); | 67 | QArray<int> ints = m_backEnd->rawRepeats(); |
68 | 68 | ||
69 | List lis( ints, this ); | 69 | List lis( ints, this ); |