javaextensions/pim/agnadapter/src.s60/cpimeventadapteraccess.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
   137     JELOG2(EPim);
   137     JELOG2(EPim);
   138     // no Contact lists
   138     // no Contact lists
   139     return EFalse;
   139     return EFalse;
   140 }
   140 }
   141 
   141 
   142 TBool CPIMEventAdapterAccess::OpenEventListL(CCalSession* aCalSession,
   142 TBool CPIMEventAdapterAccess::OpenEventListL(const TDesC* aListName,
   143         const TDesC* aListName,
       
   144         MPIMEventAdapterManager** aRetAdapterManager,
   143         MPIMEventAdapterManager** aRetAdapterManager,
   145         MPIMEventListAdapter** aRetListAdapter,
   144         MPIMEventListAdapter** aRetListAdapter,
   146         MPIMLocalizationData** aRetLocalizationData)
   145         MPIMLocalizationData** aRetLocalizationData)
   147 {
   146 {
   148     JELOG2(EPim);
   147     JELOG2(EPim);
   180         CleanupDeletePushL(adapterManager);
   179         CleanupDeletePushL(adapterManager);
   181 
   180 
   182         CPIMAgnApptAdapter* adapter = CPIMAgnApptAdapter::NewL(iFuncServer);
   181         CPIMAgnApptAdapter* adapter = CPIMAgnApptAdapter::NewL(iFuncServer);
   183         CleanupStack::PushL(adapter);
   182         CleanupStack::PushL(adapter);
   184 
   183 
   185         listAdapter = CPIMEventListAdapter::NewL(CCalEntry::EAppt,adapter,
   184         listAdapter = CPIMEventListAdapter::NewL(CCalEntry::EAppt, adapter,
   186                       iFuncServer, aCalSession);
   185                       iFuncServer);
   187 
   186 
   188         CleanupStack::Pop(adapter);
   187         CleanupStack::Pop(adapter);
   189         CleanupStack::Pop(adapterManager);
   188         CleanupStack::Pop(adapterManager);
   190 
   189 
   191         localizationData = iApptLocalizationData;
   190         localizationData = iApptLocalizationData;
   199         CleanupDeletePushL(adapterManager);
   198         CleanupDeletePushL(adapterManager);
   200 
   199 
   201         CPIMAgnMemoAdapter* adapter = CPIMAgnMemoAdapter::NewL(iFuncServer);
   200         CPIMAgnMemoAdapter* adapter = CPIMAgnMemoAdapter::NewL(iFuncServer);
   202         CleanupStack::PushL(adapter);
   201         CleanupStack::PushL(adapter);
   203 
   202 
   204         listAdapter = CPIMEventListAdapter::NewL(CCalEntry::EEvent,adapter,
   203         listAdapter = CPIMEventListAdapter::NewL(CCalEntry::EEvent, adapter,
   205                       iFuncServer, aCalSession);
   204                       iFuncServer);
   206 
   205 
   207         CleanupStack::Pop(adapter);
   206         CleanupStack::Pop(adapter);
   208         CleanupStack::Pop(adapterManager);
   207         CleanupStack::Pop(adapterManager);
   209 
   208 
   210         localizationData = iMemoLocalizationData;
   209         localizationData = iMemoLocalizationData;
   218         CleanupDeletePushL(adapterManager);
   217         CleanupDeletePushL(adapterManager);
   219 
   218 
   220         CPIMAgnAnnivAdapter* adapter = CPIMAgnAnnivAdapter::NewL(iFuncServer);
   219         CPIMAgnAnnivAdapter* adapter = CPIMAgnAnnivAdapter::NewL(iFuncServer);
   221         CleanupStack::PushL(adapter);
   220         CleanupStack::PushL(adapter);
   222 
   221 
   223         listAdapter = CPIMEventListAdapter::NewL(CCalEntry::EAnniv,adapter,
   222         listAdapter = CPIMEventListAdapter::NewL(CCalEntry::EAnniv, adapter,
   224                       iFuncServer, aCalSession);
   223                       iFuncServer);
   225 
   224 
   226         CleanupStack::Pop(adapter);
   225         CleanupStack::Pop(adapter);
   227         CleanupStack::Pop(adapterManager);
   226         CleanupStack::Pop(adapterManager);
   228 
   227 
   229         localizationData = iAnnivLocalizationData;
   228         localizationData = iAnnivLocalizationData;
   243     *aRetLocalizationData = localizationData;
   242     *aRetLocalizationData = localizationData;
   244 
   243 
   245     return ETrue;
   244     return ETrue;
   246 }
   245 }
   247 
   246 
   248 TBool CPIMEventAdapterAccess::OpenToDoListL(CCalSession* /*aCalSession*/,
   247 TBool CPIMEventAdapterAccess::OpenToDoListL(const TDesC* /*aListName*/,
   249         const TDesC* /*aListName*/,
       
   250         MPIMToDoAdapterManager** /*aRetAdapterManager*/,
   248         MPIMToDoAdapterManager** /*aRetAdapterManager*/,
   251         MPIMToDoListAdapter** /*aRetListAdapter*/,
   249         MPIMToDoListAdapter** /*aRetListAdapter*/, MPIMLocalizationData** /*aRetLocalizationData*/)
   252         MPIMLocalizationData** /*aRetLocalizationData*/)
       
   253 {
   250 {
   254     JELOG2(EPim);
   251     JELOG2(EPim);
   255     // no ToDo lists
   252     // no ToDo lists
   256     return EFalse;
   253     return EFalse;
   257 }
   254 }