OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
EDSContactsStorageItemIterator.hpp
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
10 #ifndef EDSCONTACTSSTORAGEITEMITERATOR_HPP_
11 #define EDSCONTACTSSTORAGEITEMITERATOR_HPP_
12 
14 #include "OpenAB_eds_global.h"
19 {
20  public:
25 
30 
34  };
35  enum eCursorInit cursorInit(EBookClient*);
36 
38 
41 
42  unsigned int getSize() const;
43 
44  private:
49 
54 
55  enum eFetchContacts {
56  eFetchContactsOK,
57  eFetchContactsEND,
58  eFetchContactsFail
59  };
60  enum eFetchContacts fetchContacts(int fetchsize);
61 
63  EBookClientCursor * cursor;
64  GSList * contacts;
65  int total;
66 };
67 
68 #endif // EDSCONTACTSSTORAGEITEMITERATOR_HPP_
OpenAB_Storage::StorageItem operator*()
Retrieve the current StorageItem.
Definition: EDSContactsStorageItemIterator.cpp:137
enum eCursorInit cursorInit(EBookClient *)
Definition: EDSContactsStorageItemIterator.cpp:31
OpenAB_Storage::StorageItem * next()
Retrieve the next StorageItem.
Definition: EDSContactsStorageItemIterator.cpp:57
virtual ~EDSContactsStorageItemIterator()
Destructor, virtual by default.
Definition: EDSContactsStorageItemIterator.cpp:23
Definition: EDSContactsStorageItemIterator.hpp:33
This object associates OpenAB::PIMItem with its unique ID from OpenAB_Storage::Storage. Additionally it stores status flag used in synchronization process.
Definition: StorageItem.hpp:22
Documentation for class EDSStorageItemIterator.
Definition: EDSContactsStorageItemIterator.hpp:18
unsigned int getSize() const
Retrieve number of items in interator.
Definition: EDSContactsStorageItemIterator.cpp:147
The StorageItemIterator is mainly used to quickly browse the Storage contents.
Definition: StorageItem.hpp:97
Definition: EDSContactsStorageItemIterator.hpp:32
OpenAB_Storage::StorageItem * operator->()
Retrieve the current StorageItem.
Definition: EDSContactsStorageItemIterator.cpp:142
EDSContactsStorageItemIterator()
Constructor.
Definition: EDSContactsStorageItemIterator.cpp:13
eCursorInit
Definition: EDSContactsStorageItemIterator.hpp:31