javaextensions/pim/agnadapter/inc.s60/cpimtodolistadapter.h
changeset 23 98ccebc37403
parent 21 2a9601315dfc
child 25 9ac0a0a7da70
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
    42 public: // Constructor and destructor
    42 public: // Constructor and destructor
    43 
    43 
    44     /**
    44     /**
    45      * Two-phased constructor.
    45      * Two-phased constructor.
    46      */
    46      */
    47     static CPIMToDoListAdapter* NewL(java::util::FunctionServer* aFuncServer);
    47     static CPIMToDoListAdapter* NewL(java::util::FunctionServer* aFuncServer,
       
    48         CCalSession *aCalSession);
    48 
    49 
    49     /**
    50     /**
    50      * Destructor.
    51      * Destructor.
    51      */
    52      */
    52     ~CPIMToDoListAdapter();
    53     ~CPIMToDoListAdapter();
   132      * The method leaves on error. Such error always means that the list
   133      * The method leaves on error. Such error always means that the list
   133      * adapter is non-functional.
   134      * adapter is non-functional.
   134      */
   135      */
   135     void CreateToDoItemL(MPIMToDoItem& aToDoItem);
   136     void CreateToDoItemL(MPIMToDoItem& aToDoItem);
   136 
   137 
   137     void CPIMToDoListAdapter::DoCreateToDoItemL(
   138     void DoCreateToDoItemL(MPIMToDoItem& aToDoItem);
   138         MPIMToDoItem& aToDoItem);
       
   139 
   139 
   140     /**
   140     /**
   141      * Reads an existing To-Do item from the Agenda File.
   141      * Reads an existing To-Do item from the Agenda File.
   142      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   142      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   143      * entry identifier, reads the entry and sets the data of
   143      * entry identifier, reads the entry and sets the data of
   158      *        native Agenda File.
   158      *        native Agenda File.
   159      * @li Other - The list adapter is non-functional.
   159      * @li Other - The list adapter is non-functional.
   160      */
   160      */
   161     void ReadToDoItemL(MPIMToDoItem& aToDoItem);
   161     void ReadToDoItemL(MPIMToDoItem& aToDoItem);
   162 
   162 
   163     void CPIMToDoListAdapter::DoReadToDoItemL(
   163     void DoReadToDoItemL(MPIMToDoItem& aToDoItem);
   164         MPIMToDoItem& aToDoItem);
       
   165 
   164 
   166     /**
   165     /**
   167      * Writes an existing To-Do item to the native Agenda File.
   166      * Writes an existing To-Do item to the native Agenda File.
   168      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   167      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   169      * entry identifier, reads the entry and sets the data of the entry
   168      * entry identifier, reads the entry and sets the data of the entry
   185      *        client. The operation may succeed later.
   184      *        client. The operation may succeed later.
   186      * @li Other - The list adapter is non-functional.
   185      * @li Other - The list adapter is non-functional.
   187      */
   186      */
   188     void WriteToDoItemL(MPIMToDoItem& aToDoItem);
   187     void WriteToDoItemL(MPIMToDoItem& aToDoItem);
   189 
   188 
   190     void CPIMToDoListAdapter::DoWriteToDoItemL(
   189     void DoWriteToDoItemL(MPIMToDoItem& aToDoItem);
   191         MPIMToDoItem& aToDoItem);
       
   192 
   190 
   193     /**
   191     /**
   194      * Removes an existing To-Do from the native Agenda File.
   192      * Removes an existing To-Do from the native Agenda File.
   195      * The adapter maps \a aItemID to a native Agenda Model entry and removes
   193      * The adapter maps \a aItemID to a native Agenda Model entry and removes
   196      * it.
   194      * it.
   206      *        client. The operation may succeed later.
   204      *        client. The operation may succeed later.
   207      * @li Other - The list adapter is non-functional.
   205      * @li Other - The list adapter is non-functional.
   208      */
   206      */
   209     void RemoveToDoItemL(TPIMItemID aItemID);
   207     void RemoveToDoItemL(TPIMItemID aItemID);
   210 
   208 
   211     void CPIMToDoListAdapter::DoRemoveToDoItemL(
   209     void DoRemoveToDoItemL(TPIMItemID aItemID);
   212         TPIMItemID aItemID);
       
   213 
   210 
   214 protected:
   211 protected:
   215 
   212 
   216     /**
   213     /**
   217      * C++ default constructor.
   214      * C++ default constructor.
   219     CPIMToDoListAdapter(java::util::FunctionServer* aFuncServer);
   216     CPIMToDoListAdapter(java::util::FunctionServer* aFuncServer);
   220 
   217 
   221     /**
   218     /**
   222      * By default Symbian 2nd phase constructor is private.
   219      * By default Symbian 2nd phase constructor is private.
   223      */
   220      */
   224     void ConstructL();
   221     void ConstructL(TInt aCalSessionInt );
   225 
   222 
   226 private: // Member data
   223 private: // Member data
   227 
   224 
   228     CDesCArrayFlat* iToDoCategoryArray;
   225     CDesCArrayFlat* iToDoCategoryArray;
   229     CPIMAgnToDoAdapter* iAgnToDoAdapter;
   226     CPIMAgnToDoAdapter* iAgnToDoAdapter;