OpenAB
1.0.1
|
Documentation for class PIMCalendarItemIndex. It implements PIMItemIndex for OpenAB::eEvent or OpenAB::eTask type, additionally allows to define which PIMItemCheck should be used to construct PIMCalendarItemIndex objects. More...
#include <PIMCalendarItemIndex.hpp>
Public Member Functions | |
PIMCalendarItemIndex (PIMItemType t) | |
Constructor. More... | |
virtual | ~PIMCalendarItemIndex () |
Destructor, virtual by default. More... | |
std::string | toString () const |
Returns string version of PIMItemIndex. It contains only PIMItemCheck::eKey fields. More... | |
std::string | toStringFull () const |
Returns string version of PIMItemIndex. It contains both PIMItemCheck::eKey and PIMItemCheck::eConflict fields. More... | |
bool | operator== (const PIMItemIndex &other) const |
Compare operator. Checks if two PIMItemIndex matches (may not be exactly the same) More... | |
bool | operator!= (const PIMItemIndex &other) const |
Compare operator. Checks if two PIMItemIndex not matches (are totally different) More... | |
bool | operator< (const PIMItemIndex &other) const |
Compare operator. More... | |
bool | compare (const PIMItemIndex &other) const |
Compares two PIMItemIndex object, checks if two PIMItemIndex are exactly the same. In opposite to compare operator it checks PIMItemCheck::eConflict fields. More... | |
Public Member Functions inherited from OpenAB::PIMItemIndex | |
PIMItemIndex (OpenAB::PIMItemType t) | |
Constructor. More... | |
virtual | ~PIMItemIndex () |
Destructor, virtual by default. More... | |
virtual void | addKeyField (const std::string &name, const std::string &value) |
Adds new PIMItemCheck::eKey field. More... | |
virtual void | addConflictField (const std::string &name, const std::string &value) |
Adds new PIMItemCheck::eConflict field. More... | |
OpenAB::PIMItemType | getType () const |
Returns type of item that index is representing. More... | |
Static Public Member Functions | |
static bool | addCheck (const std::string &fieldName, PIMItemCheck::eFieldRole role) |
Defines new PIMItemCheck for PIMCalendarItemIndex objects. More... | |
static bool | removeCheck (const std::string &fieldName) |
Removes check for PIMCalendarItemIndex objects. More... | |
static void | clearAllChecks () |
Removes all defined PIMItemCheck for PIMCalendarItemIndex. More... | |
static std::vector< PIMItemCheck > | getAllChecks () |
Returns all defined PIMItemCheck for PIMCalendarItemIndex objects. More... | |
Protected Member Functions | |
virtual bool | equal (const PIMItemIndex &other) const |
virtual bool | notEqual (const PIMItemIndex &other) const |
virtual bool | lessThan (const PIMItemIndex &other) const |
virtual bool | compareWith (const PIMItemIndex &other) const |
Protected Member Functions inherited from OpenAB::PIMItemIndex | |
bool | compareVectors (const std::vector< std::string > &v1, const std::vector< std::string > &v2) const |
Static Protected Attributes | |
static std::vector< PIMItemCheck > | fields_desc |
Additional Inherited Members | |
Protected Attributes inherited from OpenAB::PIMItemIndex | |
std::vector< std::string > | key_fields |
std::vector< std::string > | conflict_fields |
std::vector< std::string > | key_fields_names |
std::vector< std::string > | conflict_fields_names |
std::string | cached_to_string |
Documentation for class PIMCalendarItemIndex. It implements PIMItemIndex for OpenAB::eEvent or OpenAB::eTask type, additionally allows to define which PIMItemCheck should be used to construct PIMCalendarItemIndex objects.
OpenAB::PIMCalendarItemIndex::PIMCalendarItemIndex | ( | PIMItemType | t | ) |
Constructor.
|
virtual |
Destructor, virtual by default.
|
static |
Defines new PIMItemCheck for PIMCalendarItemIndex objects.
[in] | fieldName | name of iCalendar field to be checked |
[in] | role | role of field check |
|
static |
Removes all defined PIMItemCheck for PIMCalendarItemIndex.
|
virtual |
Compares two PIMItemIndex object, checks if two PIMItemIndex are exactly the same. In opposite to compare operator it checks PIMItemCheck::eConflict fields.
[in] | other | instance of PIMItemIndex to be compared with. |
Implements OpenAB::PIMItemIndex.
|
protectedvirtual |
|
protectedvirtual |
|
static |
Returns all defined PIMItemCheck for PIMCalendarItemIndex objects.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Compare operator. Checks if two PIMItemIndex not matches (are totally different)
[in] | other | instance of PIMItemIndex to be compared with. |
Implements OpenAB::PIMItemIndex.
|
virtual |
Compare operator.
[in] | other | instance of PIMItemIndex to be compared with. |
Implements OpenAB::PIMItemIndex.
|
virtual |
Compare operator. Checks if two PIMItemIndex matches (may not be exactly the same)
[in] | other | instance of PIMItemIndex to be compared with. |
Implements OpenAB::PIMItemIndex.
|
static |
Removes check for PIMCalendarItemIndex objects.
[in] | fieldName | name of iCalendar field |
|
virtual |
Returns string version of PIMItemIndex. It contains only PIMItemCheck::eKey fields.
Implements OpenAB::PIMItemIndex.
|
virtual |
Returns string version of PIMItemIndex. It contains both PIMItemCheck::eKey and PIMItemCheck::eConflict fields.
Implements OpenAB::PIMItemIndex.
|
staticprotected |