-rw-r--r-- | libopie2/opiepim/core/opimaccesstemplate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiepim/core/opimaccesstemplate.h b/libopie2/opiepim/core/opimaccesstemplate.h index 6f01b46..7ab1ea5 100644 --- a/libopie2/opiepim/core/opimaccesstemplate.h +++ b/libopie2/opiepim/core/opimaccesstemplate.h | |||
@@ -98,54 +98,54 @@ public: | |||
98 | */ | 98 | */ |
99 | bool wasChangedExternally()const; | 99 | bool wasChangedExternally()const; |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * return a List of records | 102 | * return a List of records |
103 | * you can iterate over them | 103 | * you can iterate over them |
104 | */ | 104 | */ |
105 | virtual List allRecords()const; | 105 | virtual List allRecords()const; |
106 | 106 | ||
107 | /** | 107 | /** |
108 | * return a List of records | 108 | * return a List of records |
109 | * that match the regex | 109 | * that match the regex |
110 | */ | 110 | */ |
111 | virtual List matchRegexp( const QRegExp &r ) const; | 111 | virtual List matchRegexp( const QRegExp &r ) const; |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * queryByExample. | 114 | * queryByExample. |
115 | * @see otodoaccess, ocontactaccess | 115 | * @see otodoaccess, ocontactaccess |
116 | */ | 116 | */ |
117 | virtual List queryByExample( const T& t, int querySettings, const QDateTime& d = QDateTime() ); | 117 | virtual List queryByExample( const T& t, int querySettings, const QDateTime& d = QDateTime() ); |
118 | 118 | ||
119 | /** | 119 | /** |
120 | * find the OPimRecord uid | 120 | * find the OPimRecord uid |
121 | */ | 121 | */ |
122 | virtual T find( int uid )const; | 122 | T find( int uid )const; |
123 | 123 | ||
124 | /** | 124 | /** |
125 | * read ahead cache find method ;) | 125 | * read ahead cache find method ;) |
126 | */ | 126 | */ |
127 | virtual T find( int uid, const QArray<int>&, | 127 | T find( int uid, const QArray<int>&, |
128 | uint current, typename OTemplateBase<T>::CacheDirection dir = OTemplateBase<T>::Forward )const; | 128 | uint current, typename OTemplateBase<T>::CacheDirection dir = OTemplateBase<T>::Forward )const; |
129 | 129 | ||
130 | 130 | ||
131 | /* invalidate cache here */ | 131 | /* invalidate cache here */ |
132 | /** | 132 | /** |
133 | * clears the backend and invalidates the backend | 133 | * clears the backend and invalidates the backend |
134 | */ | 134 | */ |
135 | void clear() ; | 135 | void clear() ; |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * add T to the backend | 138 | * add T to the backend |
139 | * @param t The item to add. | 139 | * @param t The item to add. |
140 | * @return <i>true</i> if added successfully. | 140 | * @return <i>true</i> if added successfully. |
141 | */ | 141 | */ |
142 | virtual bool add( const T& t ) ; | 142 | virtual bool add( const T& t ) ; |
143 | 143 | ||
144 | bool add( const OPimRecord& ); | 144 | bool add( const OPimRecord& ); |
145 | /** | 145 | /** |
146 | * Add an Opie PimRecord. | 146 | * Add an Opie PimRecord. |
147 | * Info: Take this if you are working with OPimRecords and you need to add it into any database. | 147 | * Info: Take this if you are working with OPimRecords and you need to add it into any database. |
148 | * But take care that the accessing database is compatible to the real type of OPimRecord !! | 148 | * But take care that the accessing database is compatible to the real type of OPimRecord !! |
149 | * Otherwise this access will be rejected ! | 149 | * Otherwise this access will be rejected ! |
150 | */ | 150 | */ |
151 | bool add( const OPimRecord* ); | 151 | bool add( const OPimRecord* ); |