OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenAB_Storage::StorageItem Class Reference

This object associates OpenAB::PIMItem with its unique ID from OpenAB_Storage::Storage. Additionally it stores status flag used in synchronization process. More...

#include <StorageItem.hpp>

Collaboration diagram for OpenAB_Storage::StorageItem:

Public Types

enum  {
  ITEM_ADDED, ITEM_MODIFIED, ITEM_FOUND, ITEM_REMOVED,
  ITEM_NOT_FOUND
}
 

Public Member Functions

 StorageItem ()
 Default constructor. More...
 
 StorageItem (std::string i, OpenAB::PIMItem *v)
 Constructor. More...
 
 StorageItem (std::string i, OpenAB::SmartPtr< OpenAB::PIMItem > v)
 Constructor. More...
 
 StorageItem (const StorageItem &other)
 Copy constructor. More...
 
 ~StorageItem ()
 Destructor. More...
 
bool operator== (const StorageItem &lhs)
 Comparison operator. Compares id, status and OpenAB::PIMItemIndex of both instance. More...
 

Public Attributes

std::string id
 OpenAB_Storage::Storage unique ID of the item. More...
 
OpenAB::SmartPtr< OpenAB::PIMItemitem
 PIMItem. More...
 
enum
OpenAB_Storage::StorageItem:: { ... }  
status
 

Detailed Description

This object associates OpenAB::PIMItem with its unique ID from OpenAB_Storage::Storage. Additionally it stores status flag used in synchronization process.

Member Enumeration Documentation

anonymous enum
Enumerator
ITEM_ADDED 
ITEM_MODIFIED 
ITEM_FOUND 
ITEM_REMOVED 
ITEM_NOT_FOUND 

Constructor & Destructor Documentation

OpenAB_Storage::StorageItem::StorageItem ( )
inline

Default constructor.

OpenAB_Storage::StorageItem::StorageItem ( std::string  i,
OpenAB::PIMItem v 
)
inline

Constructor.

Parameters
[in]iunique ID of item.
[in]vraw pointer to OpenAB::PIMItem. Ownership of v pointer is moved to StorageItem (it will be converted to OpenAB::SmartPtr and will be freed automatically).
OpenAB_Storage::StorageItem::StorageItem ( std::string  i,
OpenAB::SmartPtr< OpenAB::PIMItem v 
)
inline

Constructor.

Parameters
[in]iunique ID of item.
[in]vOpenAB::SmartPtr to OpenAB::PIMItem.
OpenAB_Storage::StorageItem::StorageItem ( const StorageItem other)
inline

Copy constructor.

Parameters
[in]otherinstance to copy from.
OpenAB_Storage::StorageItem::~StorageItem ( )
inline

Destructor.

Member Function Documentation

bool OpenAB_Storage::StorageItem::operator== ( const StorageItem lhs)
inline

Comparison operator. Compares id, status and OpenAB::PIMItemIndex of both instance.

Parameters
[in]lhsinstance to compare with

Member Data Documentation

std::string OpenAB_Storage::StorageItem::id

OpenAB_Storage::Storage unique ID of the item.

OpenAB::SmartPtr<OpenAB::PIMItem> OpenAB_Storage::StorageItem::item

PIMItem.

enum { ... } OpenAB_Storage::StorageItem::status

The documentation for this class was generated from the following file: