#include <ClientTask.h>
Public Member Functions | |
ClientTask () | |
Constructor. | |
ClientTask (const ClientTask &c) | |
ClientTask | operator= (const ClientTask &c) |
~ClientTask () | |
Destructor. | |
void | setCOMPtr (_TaskItemPtr &ptr, const std::wstring &itemID) |
Set a COM pointer to this object: refresh all members. | |
void | setCOMPtr (_TaskItemPtr &ptr) |
_TaskItemPtr & | getCOMPtr () |
Returns a reference to the internal COM pointer. | |
ClientRecurrence * | getRecPattern () |
Returns a pointer to the internal ClientRecurrence object (NULL if not recurring). | |
int | clearRecPattern () |
Used to clear recurrence pattern. | |
int | saveItem () |
int | deleteItem () |
ClientItem * | copyItem () |
Returns a (new allocated) copy of this item. | |
Private Member Functions | |
void | createSafeTaskInstance () |
void | initializeRecPattern () |
bool | isSecureProperty (const std::wstring &propertyName) |
Moves this ClientTask into the passed destination folder. | |
bool | isComplexProperty (const std::wstring &propertyName) |
const std::wstring | getSafeProperty (const std::wstring &propertyName) |
const std::wstring | getComplexProperty (const std::wstring &propertyName) |
int | setComplexProperty (const std::wstring &propertyName, const std::wstring &propertyValue) |
Private Attributes | |
_TaskItemPtr | pTask |
Pointer to microsoft outlook objects. | |
Redemption::ISafeTaskItemPtr | pSafeTask |
Pointer to Redemption safe objects. | |
ClientRecurrence | recPattern |
Internal Object: to manage recurrence pattern. |
Implements methods to get/set specific properties for this object type. Contains a ClientRecurrence object that describes the recurrence pattern.
int ClientTask::clearRecPattern | ( | ) |
Used to clear recurrence pattern.
Throws a ClientException if operation fails. Returns 0 if no errors.
References ClientRecurrence::clearRecurrence(), getSafeItemName(), ClientItem::hr, pTask, recPattern, and throwClientException().
ClientItem * ClientTask::copyItem | ( | ) | [virtual] |
Returns a (new allocated) copy of this item.
Implements ClientItem.
References ClientTask(), pTask, and setCOMPtr().
ClientRecurrence * ClientTask::getRecPattern | ( | ) |
Returns a pointer to the internal ClientRecurrence object (NULL if not recurring).
Returns a pointer to the internal ClientRecurrence object Returns NULL if it's not recurring.
References pTask, recPattern, and vBoolToBOOL().
Referenced by convertToSyncItem(), and fillClientItem().
bool ClientTask::isSecureProperty | ( | const std::wstring & | propertyName | ) | [private, virtual] |
Moves this ClientTask into the passed destination folder.
The move operation changes only the item location in Outlook, so the item's ID is preserved.
destFolder | the destination ClientFolder to move this object to |
Implements ClientItem.
References safeTaskProps.