javaextensions/pim/agnadapter/inc.s60/cpimtodolistadapter.h
changeset 76 4ad59aaee882
parent 26 dc7c549001d5
child 83 26b2b12093af
equal deleted inserted replaced
69:773449708c84 76:4ad59aaee882
    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 DoCreateToDoItemL(MPIMToDoItem& aToDoItem);
   138     void CPIMToDoListAdapter::DoCreateToDoItemL(
       
   139         MPIMToDoItem& aToDoItem);
   138 
   140 
   139     /**
   141     /**
   140      * Reads an existing To-Do item from the Agenda File.
   142      * Reads an existing To-Do item from the Agenda File.
   141      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   143      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   142      * entry identifier, reads the entry and sets the data of
   144      * entry identifier, reads the entry and sets the data of
   157      *        native Agenda File.
   159      *        native Agenda File.
   158      * @li Other - The list adapter is non-functional.
   160      * @li Other - The list adapter is non-functional.
   159      */
   161      */
   160     void ReadToDoItemL(MPIMToDoItem& aToDoItem);
   162     void ReadToDoItemL(MPIMToDoItem& aToDoItem);
   161 
   163 
   162     void DoReadToDoItemL(MPIMToDoItem& aToDoItem);
   164     void CPIMToDoListAdapter::DoReadToDoItemL(
       
   165         MPIMToDoItem& aToDoItem);
   163 
   166 
   164     /**
   167     /**
   165      * Writes an existing To-Do item to the native Agenda File.
   168      * Writes an existing To-Do item to the native Agenda File.
   166      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   169      * The adapter maps the Item ID in \a aToDoItem to a native Agenda Model
   167      * entry identifier, reads the entry and sets the data of the entry
   170      * entry identifier, reads the entry and sets the data of the entry
   183      *        client. The operation may succeed later.
   186      *        client. The operation may succeed later.
   184      * @li Other - The list adapter is non-functional.
   187      * @li Other - The list adapter is non-functional.
   185      */
   188      */
   186     void WriteToDoItemL(MPIMToDoItem& aToDoItem);
   189     void WriteToDoItemL(MPIMToDoItem& aToDoItem);
   187 
   190 
   188     void DoWriteToDoItemL(MPIMToDoItem& aToDoItem);
   191     void CPIMToDoListAdapter::DoWriteToDoItemL(
       
   192         MPIMToDoItem& aToDoItem);
   189 
   193 
   190     /**
   194     /**
   191      * Removes an existing To-Do from the native Agenda File.
   195      * Removes an existing To-Do from the native Agenda File.
   192      * The adapter maps \a aItemID to a native Agenda Model entry and removes
   196      * The adapter maps \a aItemID to a native Agenda Model entry and removes
   193      * it.
   197      * it.
   203      *        client. The operation may succeed later.
   207      *        client. The operation may succeed later.
   204      * @li Other - The list adapter is non-functional.
   208      * @li Other - The list adapter is non-functional.
   205      */
   209      */
   206     void RemoveToDoItemL(TPIMItemID aItemID);
   210     void RemoveToDoItemL(TPIMItemID aItemID);
   207 
   211 
   208     void DoRemoveToDoItemL(TPIMItemID aItemID);
   212     void CPIMToDoListAdapter::DoRemoveToDoItemL(
       
   213         TPIMItemID aItemID);
   209 
   214 
   210 protected:
   215 protected:
   211 
   216 
   212     /**
   217     /**
   213      * C++ default constructor.
   218      * C++ default constructor.
   215     CPIMToDoListAdapter(java::util::FunctionServer* aFuncServer);
   220     CPIMToDoListAdapter(java::util::FunctionServer* aFuncServer);
   216 
   221 
   217     /**
   222     /**
   218      * By default Symbian 2nd phase constructor is private.
   223      * By default Symbian 2nd phase constructor is private.
   219      */
   224      */
   220     void ConstructL();
   225     void ConstructL(TInt aCalSessionInt);
   221 
   226 
   222 private: // Member data
   227 private: // Member data
   223 
   228 
   224     CDesCArrayFlat* iToDoCategoryArray;
   229     CDesCArrayFlat* iToDoCategoryArray;
   225     CPIMAgnToDoAdapter* iAgnToDoAdapter;
   230     CPIMAgnToDoAdapter* iAgnToDoAdapter;