OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
EDSCalendarStorageItemIterator.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 EDSCALENDARSTORAGEITEMITERATOR_HPP_
11 #define EDSCALENDARSTORAGEITEMITERATOR_HPP_
12 
14 #include <fstream>
15 #include <list>
16 #include <set>
17 #include "OpenAB_eds_global.h"
18 
23 {
24  public:
29 
34 
38  };
39  enum eCursorInit cursorInit(const std::string& dbFileName);
40 
42 
45 
46  unsigned int getSize() const;
47 
48  private:
53 
58 
59  enum eFetchEvents {
60  eFetchEventsOK,
61  eFetchEventsEND,
62  eFetchEventsFail
63  };
64  enum eFetchEvents fetchEvents(int fetchsize);
65 
67  std::ifstream databaseFile;
68  int total;
69  std::list<std::string> events;
70 };
71 
72 #endif // EDSCALENDARSTORAGEITEMITERATOR_HPP_
Documentation for class EDSCalendarStorageItemIterator.
Definition: EDSCalendarStorageItemIterator.hpp:22
unsigned int getSize() const
Retrieve number of items in interator.
Definition: EDSCalendarStorageItemIterator.cpp:145
OpenAB_Storage::StorageItem * next()
Retrieve the next StorageItem.
Definition: EDSCalendarStorageItemIterator.cpp:49
OpenAB_Storage::StorageItem operator*()
Retrieve the current StorageItem.
Definition: EDSCalendarStorageItemIterator.cpp:135
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
virtual ~EDSCalendarStorageItemIterator()
Destructor, virtual by default.
Definition: EDSCalendarStorageItemIterator.cpp:23
EDSCalendarStorageItemIterator()
Constructor.
Definition: EDSCalendarStorageItemIterator.cpp:15
The StorageItemIterator is mainly used to quickly browse the Storage contents.
Definition: StorageItem.hpp:97
Definition: EDSCalendarStorageItemIterator.hpp:36
Definition: EDSCalendarStorageItemIterator.hpp:37
enum eCursorInit cursorInit(const std::string &dbFileName)
Definition: EDSCalendarStorageItemIterator.cpp:28
OpenAB_Storage::StorageItem * operator->()
Retrieve the current StorageItem.
Definition: EDSCalendarStorageItemIterator.cpp:140
eCursorInit
Definition: EDSCalendarStorageItemIterator.hpp:35