activityfw/storage/client/src/afstorageclient.cpp
changeset 124 e36b2f4799c0
parent 121 0b3699f6c654
equal deleted inserted replaced
121:0b3699f6c654 124:e36b2f4799c0
    68  * 2nd phase of construction
    68  * 2nd phase of construction
    69  */
    69  */
    70 void CAfStorageClient::ConstructL(MAfAsyncRequestObserver &observer)
    70 void CAfStorageClient::ConstructL(MAfAsyncRequestObserver &observer)
    71 {
    71 {
    72     d_ptr = CAfStorageClientPrivate::NewL(observer);
    72     d_ptr = CAfStorageClientPrivate::NewL(observer);
    73 }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 /**
       
    77  * Function add new activity
       
    78  * @param entry - activity entry data structure
       
    79  * @param imageHandle - handle for activity thumbnail
       
    80  * @return 0 on success, error code otherwise
       
    81  */
       
    82 EXPORT_C int CAfStorageClient::addActivity(const CAfEntry &entry, TInt imageHandle)
       
    83 {
       
    84     RDebug::Print(_L("This method is deprecated, please use CAfStorageClient::saveActivity instead"));
       
    85     return d_ptr->addActivity(entry, imageHandle);
       
    86 }
       
    87 
       
    88 // -----------------------------------------------------------------------------
       
    89 /**
       
    90  * Function update existing activity
       
    91  * @param entry - activity entry data structure
       
    92  * @param imageHandle - handle for activity thumbnail
       
    93  * @return 0 on success, error code otherwise
       
    94  */
       
    95 EXPORT_C int CAfStorageClient::updateActivity(const CAfEntry &entry, TInt imageHandle)
       
    96 {
       
    97     RDebug::Print(_L("This method is deprecated, please use CAfStorageClient::saveActivity instead"));
       
    98     return d_ptr->updateActivity(entry, imageHandle);
       
    99 }
    73 }
   100 
    74 
   101 // -----------------------------------------------------------------------------
    75 // -----------------------------------------------------------------------------
   102 /**
    76 /**
   103  * Function save an activity (add new one or update existing one)
    77  * Function save an activity (add new one or update existing one)
   187 {
   161 {
   188     return d_ptr->launchActivity(entry);
   162     return d_ptr->launchActivity(entry);
   189 }
   163 }
   190 
   164 
   191 // -----------------------------------------------------------------------------
   165 // -----------------------------------------------------------------------------
   192 EXPORT_C int CAfStorageClient::getThumbnail(const TSize &size, const TDesC &imagePath, void *userData)
   166 EXPORT_C int CAfStorageClient::getThumbnail(const TDesC &imagePath, void *userData)
   193 {
   167 {
   194     return d_ptr->getThumbnail(size, imagePath, userData);
   168     return d_ptr->getThumbnail(imagePath, userData);
   195 }
   169 }
   196 
   170 
   197 // -----------------------------------------------------------------------------
   171 // -----------------------------------------------------------------------------
   198 /**
   172 /**
   199  * Function subscribe launcher for data model changes
   173  * Function subscribe launcher for data model changes