summaryrefslogtreecommitdiff
path: root/libopie/pim/opimaccessbackend.h
Unidiff
Diffstat (limited to 'libopie/pim/opimaccessbackend.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/pim/opimaccessbackend.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie/pim/opimaccessbackend.h b/libopie/pim/opimaccessbackend.h
index 0bd2723..4f00bc9 100644
--- a/libopie/pim/opimaccessbackend.h
+++ b/libopie/pim/opimaccessbackend.h
@@ -48,25 +48,25 @@ public:
48 * queryByExample for T with the SortOrder 48 * queryByExample for T with the SortOrder
49 * sort 49 * sort
50 */ 50 */
51 virtual QArray<int> queryByExample( const T& t, int sort ) = 0; 51 virtual QArray<int> queryByExample( const T& t, int sort ) = 0;
52 52
53 /** 53 /**
54 * find the OPimRecord with uid @param uid 54 * find the OPimRecord with uid @param uid
55 * returns T and T.isEmpty() if nothing was found 55 * returns T and T.isEmpty() if nothing was found
56 */ 56 */
57 virtual T find(int uid )const = 0; 57 virtual T find(int uid )const = 0;
58 58
59 virtual T find(int uid, const QArray<int>& items, 59 virtual T find(int uid, const QArray<int>& items,
60 uint current, Frontend::CacheDirection )const ; 60 uint current, typename Frontend::CacheDirection )const ;
61 /** 61 /**
62 * clear the back end 62 * clear the back end
63 */ 63 */
64 virtual void clear() = 0; 64 virtual void clear() = 0;
65 65
66 /** 66 /**
67 * add T 67 * add T
68 */ 68 */
69 virtual bool add( const T& t ) = 0; 69 virtual bool add( const T& t ) = 0;
70 70
71 /** 71 /**
72 * remove 72 * remove
@@ -118,24 +118,24 @@ void OPimAccessBackend<T>::setFrontend( Frontend* fr ) {
118template <class T> 118template <class T>
119void OPimAccessBackend<T>::cache( const T& t )const { 119void OPimAccessBackend<T>::cache( const T& t )const {
120 if (m_front ) 120 if (m_front )
121 m_front->cache( t ); 121 m_front->cache( t );
122} 122}
123template <class T> 123template <class T>
124void OPimAccessBackend<T>::setSaneCacheSize( int size) { 124void OPimAccessBackend<T>::setSaneCacheSize( int size) {
125 if (m_front ) 125 if (m_front )
126 m_front->setSaneCacheSize( size ); 126 m_front->setSaneCacheSize( size );
127} 127}
128template <class T> 128template <class T>
129T OPimAccessBackend<T>::find( int uid, const QArray<int>&, 129T OPimAccessBackend<T>::find( int uid, const QArray<int>&,
130 uint, Frontend::CacheDirection )const { 130 uint, typename Frontend::CacheDirection )const {
131 return find( uid ); 131 return find( uid );
132} 132}
133template <class T> 133template <class T>
134void OPimAccessBackend<T>::setReadAhead( uint count ) { 134void OPimAccessBackend<T>::setReadAhead( uint count ) {
135 m_read = count; 135 m_read = count;
136} 136}
137template <class T> 137template <class T>
138uint OPimAccessBackend<T>::readAhead()const { 138uint OPimAccessBackend<T>::readAhead()const {
139 return m_read; 139 return m_read;
140} 140}
141#endif 141#endif