-rw-r--r-- | libopie2/opiepim/core/opimaccessfactory.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libopie2/opiepim/core/opimaccessfactory.h b/libopie2/opiepim/core/opimaccessfactory.h index eecfa96..283b6ab 100644 --- a/libopie2/opiepim/core/opimaccessfactory.h +++ b/libopie2/opiepim/core/opimaccessfactory.h | |||
@@ -52,17 +52,16 @@ namespace Opie { | |||
52 | * Example for getting an access object for the XML database of todolist: | 52 | * Example for getting an access object for the XML database of todolist: |
53 | * <pre> | 53 | * <pre> |
54 | * OPimTodoAccess* access = OPimAccessFactory<OPimTodoAccess>::create( OPimGlobal::TODOLIST, OPimGlobal::XML, "example" ); | 54 | * OPimTodoAccess* access = OPimAccessFactory<OPimTodoAccess>::create( OPimGlobal::TODOLIST, OPimGlobal::XML, "example" ); |
55 | * </pre> | 55 | * </pre> |
56 | * | 56 | * |
57 | * @author Stefan Eilers | 57 | * @author Stefan Eilers |
58 | * @version 0.1 | 58 | * @version 0.1 |
59 | */ | 59 | */ |
60 | */ | ||
61 | 60 | ||
62 | template<class T> | 61 | template<class T> |
63 | class OPimAccessFactory | 62 | class OPimAccessFactory |
64 | { | 63 | { |
65 | public: | 64 | public: |
66 | 65 | ||
67 | // Maybe we should introduce a global class for storing such global enums | 66 | // Maybe we should introduce a global class for storing such global enums |
68 | // (something like opimglobal.h) ? (eilers) | 67 | // (something like opimglobal.h) ? (eilers) |
@@ -100,19 +99,19 @@ class OPimAccessFactory | |||
100 | * the directory "Settings" | 99 | * the directory "Settings" |
101 | * @param type Type of the selected database (addressbook, todolist or datebook) | 100 | * @param type Type of the selected database (addressbook, todolist or datebook) |
102 | * @param appName "Name" of your application. This should be any constant string which is used | 101 | * @param appName "Name" of your application. This should be any constant string which is used |
103 | * by some backends for creating special files (i.e.journal files). Please keep the | 102 | * by some backends for creating special files (i.e.journal files). Please keep the |
104 | * string unique for your application ! | 103 | * string unique for your application ! |
105 | * @see OPimGlobal | 104 | * @see OPimGlobal |
106 | * | 105 | * |
107 | */ | 106 | */ |
108 | static T* default( OPimGlobal::PimType type, const QString& appName ){ | 107 | static T* default( typename OPimGlobal::PimType type, const QString& appName ){ |
109 | 108 | ||
110 | return create( type, OPimGlobal::DEFAULT, appName ) | 109 | return create( type, OPimGlobal::DEFAULT, appName ); |
111 | 110 | ||
112 | } | 111 | } |
113 | }; | 112 | }; |
114 | 113 | ||
115 | } | 114 | } |
116 | 115 | ||
117 | 116 | ||
118 | #endif | 117 | #endif |