ClientTask Class Reference
[Items]

Wraps the Outlook task object. More...

#include <ClientTask.h>

Inheritance diagram for ClientTask:
[legend]
Collaboration diagram for ClientTask:
[legend]

List of all members.

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.
ClientRecurrencegetRecPattern ()
 Returns a pointer to the internal ClientRecurrence object (NULL if not recurring).
int clearRecPattern ()
 Used to clear recurrence pattern.
int saveItem ()
int deleteItem ()
ClientItemcopyItem ()
 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.


Detailed Description

Wraps the Outlook task object.

Implements methods to get/set specific properties for this object type. Contains a ClientRecurrence object that describes the recurrence pattern.


Member Function Documentation

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.

Returns:
: a pointer to the new ClientItem object (must bee deleted by the caller). NULL in case of errors.

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.

Parameters:
destFolder the destination ClientFolder to move this object to
Returns:
0 if no errors

Implements ClientItem.

References safeTaskProps.


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

Generated on Tue Apr 6 13:00:41 2010 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1