OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PIMContactItemIndex.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 PIMCONTACTITEMINDEX_HPP_
11 #define PIMCONTACTITEMINDEX_HPP_
12 
13 #include "PIMItem/PIMItemIndex.hpp"
17 namespace OpenAB {
18 
26 {
27  public:
32 
36  virtual ~PIMContactItemIndex();
37 
46  bool operator==(const PIMItemIndex& other) const;
47 
56  bool operator!=(const PIMItemIndex& other) const;
57 
66  bool operator<(const PIMItemIndex& other) const;
67 
75  bool operator==(const PIMContactItemIndex& other) const;
76 
84  bool operator!=(const PIMContactItemIndex& other) const;
85 
93  bool operator<(const PIMContactItemIndex& other) const;
94 
95  bool compare(const PIMItemIndex& other) const;
96 
105  bool compare(const PIMContactItemIndex& other) const;
106 
107  std::string toString() const;
108  std::string toStringFull() const;
109 
117  static bool addCheck(const std::string& fieldName,
119 
125  static bool removeCheck(const std::string& fieldName);
126 
136  static bool disableCheck(const std::string& fieldName);
137 
144  static bool enableCheck(const std::string& fieldName);
145 
150  static void enableAllChecks();
151 
155  static void clearAllChecks();
156 
161  static std::vector<PIMItemCheck> getAllChecks();
162 
163  private:
168 
172  PIMContactItemIndex& operator=(PIMContactItemIndex const &other);
173 
174  static std::vector<PIMItemCheck> fields_desc;
175  static bool anyCheckDisabled;
176 };
177 
178 } // namespace OpenAB
179 
180 #endif // PIMCONTACTITEMINDEX_HPP_
eFieldRole
Definition: PIMItemIndex.hpp:60
static bool enableCheck(const std::string &fieldName)
Enables PIMItemCheck for PIMContactItem objects.
Definition: PIMContactItemIndex.cpp:253
bool operator!=(const PIMItemIndex &other) const
Compare operator. Checks if two PIMItemIndex not matches (are totally different)
Definition: PIMContactItemIndex.cpp:116
virtual ~PIMContactItemIndex()
Destructor, virtual by default.
Definition: PIMContactItemIndex.cpp:23
static bool removeCheck(const std::string &fieldName)
Removes check for PIMContactItem objects.
Definition: PIMContactItemIndex.cpp:222
static void clearAllChecks()
Removes all defined PIMItemCheck for PIMContactItem.
Definition: PIMContactItemIndex.cpp:195
static bool addCheck(const std::string &fieldName, PIMItemCheck::eFieldRole role)
Defines new PIMItemCheck for PIMContactItem objects.
Definition: PIMContactItemIndex.cpp:205
static std::vector< PIMItemCheck > getAllChecks()
Returns all defined PIMItemCheck for PIMContactItem objects.
Definition: PIMContactItemIndex.cpp:200
Documentation for class PIMContactItemIndex. It implements PIMItemIndex for OpenAB::eContact type...
Definition: PIMContactItemIndex.hpp:25
static bool disableCheck(const std::string &fieldName)
Disables PIMItemCheck for PIMContactItem objects.
Definition: PIMContactItemIndex.cpp:237
std::string toString() const
Returns string version of PIMItemIndex. It contains only PIMItemCheck::eKey fields.
Definition: PIMContactItemIndex.cpp:166
bool operator==(const PIMItemIndex &other) const
Compare operator. Checks if two PIMItemIndex matches (may not be exactly the same) ...
Definition: PIMContactItemIndex.cpp:107
static void enableAllChecks()
Enables all PIMItemCheck for PIMContactItem objects.
Definition: PIMContactItemIndex.cpp:285
std::string toStringFull() const
Returns string version of PIMItemIndex. It contains both PIMItemCheck::eKey and PIMItemCheck::eConfli...
Definition: PIMContactItemIndex.cpp:181
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.
Definition: PIMContactItemIndex.cpp:28
PIMContactItemIndex()
Constructor.
Definition: PIMContactItemIndex.cpp:18
Documentation for class PIMItemIndex. PIMItemIndex is a PIMItem representation used to match and comp...
Definition: PIMItemIndex.hpp:37
bool operator<(const PIMItemIndex &other) const
Compare operator.
Definition: PIMContactItemIndex.cpp:135