creator/src/engine.cpp
changeset 35 98924d2efce9
parent 23 c9bf25a20c9f
child 48 da3ec8478e66
equal deleted inserted replaced
34:e0ec97ec3cc4 35:98924d2efce9
    18 
    18 
    19 #include <eikenv.h>
    19 #include <eikenv.h>
    20 #include <s32file.h> 
    20 #include <s32file.h> 
    21 #include <coemain.h>
    21 #include <coemain.h>
    22 
    22 
       
    23 #include <driveinfo.h>
       
    24 
    23 #include <datacreator.rsg>
    25 #include <datacreator.rsg>
    24 
    26 
    25 #include "mainview.h"
    27 #include "mainview.h"
    26 #include "engine.h"
    28 #include "engine.h"
    27 #include "enginewrapper.h"
    29 #include "enginewrapper.h"
    29 
    31 
    30 #include <cntdb.h>//For Math
    32 #include <cntdb.h>//For Math
    31 
    33 
    32 #include "creator_scriptentry.h"
    34 #include "creator_scriptentry.h"
    33 #include "creator_modulebase.h"
    35 #include "creator_modulebase.h"
    34 #include "creator_browser.h"
    36 //#include "creator_browser.h"
    35 #include "creator_calendar.h"
    37 #include "creator_calendar.h"
    36 #include "creator_phonebookbase.h"
    38 #include "creator_phonebookbase.h"
    37 #include "creator_note.h"
    39 #include "creator_note.h"
    38 #include "creator_log.h"
    40 #include "creator_log.h"
    39 #include "creator_connectionmethodbase.h"
    41 //#include "creator_connectionmethodbase.h"
    40 #include "creator_mailbox.h"
    42 #include "creator_mailbox.h"
    41 //#include "creator_imps.h"
    43 //#include "creator_imps.h"
    42 #include "creator_message.h"
    44 #include "creator_message.h"
    43 #include "creator_landmark.h"
    45 #include "creator_landmark.h"
    44 
    46 
   138     iTimer.Close();
   140     iTimer.Close();
   139 
   141 
   140 
   142 
   141 	iEnv->DeleteResourceFile(iResourceFileId);
   143 	iEnv->DeleteResourceFile(iResourceFileId);
   142     
   144     
       
   145 	iMemoryDetailsList.Reset();
   143     delete iPictureFileArray;
   146     delete iPictureFileArray;
   144     delete iSoundFileArray;
   147     delete iSoundFileArray;
   145     delete iTempPath;
   148     delete iTempPath;
   146     delete iFrameImageData;
   149     delete iFrameImageData;
   147     delete iEncoder;
   150     delete iEncoder;
   172 
   175 
   173 // ---------------------------------------------------------------------------
   176 // ---------------------------------------------------------------------------
   174 	
   177 	
   175 void CCreatorEngine::RequestMemoryDetails() 
   178 void CCreatorEngine::RequestMemoryDetails() 
   176     {
   179     {
       
   180 
       
   181 	TDriveList dl;
   177     // variables for memory and disk handling
   182     // variables for memory and disk handling
   178     TDriveNumber cDrive=EDriveC;
       
   179     TDriveNumber dDrive=EDriveD;
       
   180     TDriveNumber eDrive=EDriveE;
       
   181     TVolumeInfo vinfo;
   183     TVolumeInfo vinfo;
   182     TBuf<16> cFree;
   184 
   183     TBuf<16> dFree;
   185     //*************************************************************************
   184     TBuf<16> eFree;
   186    
   185     TBuf<16> cSize;
   187     //*************************************************************************
   186     TBuf<16> dSize;
       
   187     TBuf<16> eSize;
       
   188 
       
   189     // get an access to file server
   188     // get an access to file server
   190     RFs& fsSession = CEikonEnv::Static()->FsSession();
   189     RFs& fsSession = CEikonEnv::Static()->FsSession();
   191 
   190 
   192     // check the C-drive
   191     fsSession.DriveList(dl);
   193     fsSession.Volume(vinfo, cDrive);
   192     
   194     iMemoryDetails.iCFree.Num(TInt64(vinfo.iFree/1024));
   193     for(TInt driveNum = EDriveC; driveNum <= EDriveZ ; driveNum ++ )
   195     iMemoryDetails.iCSize.Num(TInt64(vinfo.iSize/1024));
   194     	{
   196 
   195 		if( dl[driveNum] )
   197     // the same thing for D-drive
   196 			{
   198     fsSession.Volume(vinfo, dDrive);
   197 			TMemoryDetails *memDet = new TMemoryDetails;
   199 	iMemoryDetails.iDFree.Num(TInt64(vinfo.iFree/1024));
   198 			if(fsSession.Volume(vinfo, driveNum) == KErrNone)
   200 	iMemoryDetails.iDSize.Num(TInt64(vinfo.iSize/1024));
   199 				{
   201 
   200 				memDet->iFree.Num(TInt64(vinfo.iFree/1024));
   202     // the same thing for E-drive (MMC), if it exists 
   201 				memDet->iSize.Num(TInt64(vinfo.iSize/1024));
   203     if (MMC_OK())
   202 				}
   204         {
   203 			else
   205         fsSession.Volume(vinfo, eDrive);
   204 				{
   206         iMemoryDetails.iEFree.Num(TInt64(vinfo.iFree/1024));
   205 				memDet->iFree.Num( 0 );
   207 		iMemoryDetails.iESize.Num(TInt64(vinfo.iSize/1024));
   206 				memDet->iSize.Num( 0 );
   208 
   207 				}
   209         }
   208 			User::LeaveIfError(fsSession.DriveToChar(driveNum,memDet->iDriveLetter));
   210 	
   209 			iMemoryDetailsList.AppendL( memDet );
   211 	else {
   210 			}
   212 		iMemoryDetails.iEFree = KEDriveError;
   211     	}
   213 		iMemoryDetails.iENotAvailable = ETrue;
   212   
   214 		}
       
   215     // available work memory
   213     // available work memory
   216     TMemoryInfoV1Buf memory;
   214     TMemoryInfoV1Buf memory;
   217     UserHal::MemoryInfo(memory);
   215     UserHal::MemoryInfo(memory);
   218     TInt64 freeMemBytes=(TInt64)(memory().iFreeRamInBytes);
   216     TInt64 freeMemBytes=(TInt64)(memory().iFreeRamInBytes);
   219     TInt64 sizeMemBytes=(TInt64)(memory().iTotalRamInBytes);
   217     TInt64 sizeMemBytes=(TInt64)(memory().iTotalRamInBytes);
   220     TInt64 sizeWorkMemBytes = sizeMemBytes; 
   218     TInt64 sizeWorkMemBytes = sizeMemBytes; 
   221     iMemoryDetails.iHFree.Num(TInt64(freeMemBytes/1024));
   219     TInt64 sizeRomBytes = (TInt64)(memory().iTotalRomInBytes);
   222     iMemoryDetails.iHSize.Num(TInt64(sizeWorkMemBytes/1024));
   220     iMemoryDetails.iRamFree.Num(TInt64(freeMemBytes/1024));
       
   221     iMemoryDetails.iRamSize.Num(TInt64(sizeWorkMemBytes/1024));
       
   222     iMemoryDetails.iRomSize.Num(TInt64(sizeRomBytes/1024));
   223     }
   223     }
   224 
   224 
   225 // ---------------------------------------------------------------------------
   225 // ---------------------------------------------------------------------------
   226 	
   226 	
   227 TBool CCreatorEngine::MMC_OK() const
   227 TBool CCreatorEngine::MMC_OK() const
   302     // launch a command
   302     // launch a command
   303 
   303 
   304     TCreatorIds cmd = (TCreatorIds)iCommandArray->At(iCurrentEntry).iCommandId; 
   304     TCreatorIds cmd = (TCreatorIds)iCommandArray->At(iCurrentEntry).iCommandId; 
   305     switch( cmd )
   305     switch( cmd )
   306         {
   306         {
       
   307 /*        
   307 	    case ECmdCreateBrowserBookmarkEntries: { iBrowser->CreateBookmarkEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   308 	    case ECmdCreateBrowserBookmarkEntries: { iBrowser->CreateBookmarkEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   308 	    case ECmdCreateBrowserBookmarkFolderEntries: { iBrowser->CreateBookmarkFolderEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   309 	    case ECmdCreateBrowserBookmarkFolderEntries: { iBrowser->CreateBookmarkFolderEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   309 	    case ECmdCreateBrowserSavedPageEntries: { iBrowser->CreateSavedDeckEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   310 	    case ECmdCreateBrowserSavedPageEntries: { iBrowser->CreateSavedDeckEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   310 	    case ECmdCreateBrowserSavedPageFolderEntries: { iBrowser->CreateSavedDeckFolderEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   311 	    case ECmdCreateBrowserSavedPageFolderEntries: { iBrowser->CreateSavedDeckFolderEntryL(reinterpret_cast<CBrowserParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   311 	    
   312 */	    
   312         case ECmdCreateCalendarEntryAppointments: { iCalendar->CreateAppointmentEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   313         case ECmdCreateCalendarEntryAppointments: { iCalendar->CreateAppointmentEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   313 	    case ECmdCreateCalendarEntryEvents: { iCalendar->CreateEventEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   314 	    case ECmdCreateCalendarEntryEvents: { iCalendar->CreateEventEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   314 	    case ECmdCreateCalendarEntryAnniversaries: { iCalendar->CreateAnniversaryEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   315 	    case ECmdCreateCalendarEntryAnniversaries: { iCalendar->CreateAnniversaryEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   315 	    case ECmdCreateCalendarEntryToDos: { iCalendar->CreateTodoEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   316 	    case ECmdCreateCalendarEntryToDos: { iCalendar->CreateTodoEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   316         case ECmdCreateCalendarEntryReminders: { iCalendar->CreateReminderEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   317         case ECmdCreateCalendarEntryReminders: { iCalendar->CreateReminderEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   323 	    case ECmdCreateMiscEntryNotes: { iNotepad->CreateNoteEntryL(reinterpret_cast<CNotepadParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   324 	    case ECmdCreateMiscEntryNotes: { iNotepad->CreateNoteEntryL(reinterpret_cast<CNotepadParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   324 
   325 
   325 	    case ECmdCreateLogEntryMissedCalls: { iLogs->CreateMissedCallEntryL(reinterpret_cast<CLogsParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   326 	    case ECmdCreateLogEntryMissedCalls: { iLogs->CreateMissedCallEntryL(reinterpret_cast<CLogsParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   326 	    case ECmdCreateLogEntryReceivedCalls: { iLogs->CreateReceivedCallEntryL(reinterpret_cast<CLogsParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   327 	    case ECmdCreateLogEntryReceivedCalls: { iLogs->CreateReceivedCallEntryL(reinterpret_cast<CLogsParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   327 	    case ECmdCreateLogEntryDialledNumbers: { iLogs->CreateDialledNumberEntryL(reinterpret_cast<CLogsParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   328 	    case ECmdCreateLogEntryDialledNumbers: { iLogs->CreateDialledNumberEntryL(reinterpret_cast<CLogsParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   328 
   329 /*
   329         case ECmdCreateMiscEntryAccessPoints: { iAccessPoints->CreateConnectionSettingsEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   330         case ECmdCreateMiscEntryAccessPoints: { iAccessPoints->CreateConnectionSettingsEntryL(iCommandArray->At(iCurrentEntry).iParameters); } break;
   330         case ECmdDeleteIAPs: { iAccessPoints->DeleteAllL(); } break;
   331         case ECmdDeleteIAPs: { iAccessPoints->DeleteAllL(); } break;
   331         case ECmdDeleteCreatorIAPs: { iAccessPoints->DeleteAllCreatedByCreatorL(); } break;
   332         case ECmdDeleteCreatorIAPs: { iAccessPoints->DeleteAllCreatedByCreatorL(); } break;
   332 
   333 */
   333         case ECmdCreateMiscEntryLandmarks: { iLandmarks->CreateLandmarkEntryL(reinterpret_cast<CLandmarkParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   334         case ECmdCreateMiscEntryLandmarks: { iLandmarks->CreateLandmarkEntryL(reinterpret_cast<CLandmarkParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   334         
   335         
   335 	    case ECmdCreateMessagingEntryMailboxes: { iMailboxes->CreateMailboxEntryL(reinterpret_cast<CMailboxesParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   336 	    case ECmdCreateMessagingEntryMailboxes: { iMailboxes->CreateMailboxEntryL(reinterpret_cast<CMailboxesParameters*>(iCommandArray->At(iCurrentEntry).iParameters)); } break;
   336 /*
   337 /*
   337         #ifdef __PRESENCE
   338         #ifdef __PRESENCE
   492             }
   493             }
   493         case ECmdDeleteCreatorIMPSs:
   494         case ECmdDeleteCreatorIMPSs:
   494             {
   495             {
   495 //            iIMPS->DeleteAllCreatedByCreatorL();
   496 //            iIMPS->DeleteAllCreatedByCreatorL();
   496             break;
   497             break;
   497             }            
   498             }
       
   499 /*            
   498         case ECmdDeleteBrowserBookmarks:
   500         case ECmdDeleteBrowserBookmarks:
   499             {
   501             {
   500             iBrowser->DeleteAllBookmarksL();
   502             iBrowser->DeleteAllBookmarksL();
   501             break;
   503             break;
   502             }
   504             }
   533         case ECmdDeleteCreatorBrowserSavedPageFolders:
   535         case ECmdDeleteCreatorBrowserSavedPageFolders:
   534             {
   536             {
   535             iBrowser->DeleteAllSavedPageFoldersCreatedByCreatorL();
   537             iBrowser->DeleteAllSavedPageFoldersCreatedByCreatorL();
   536             break;
   538             break;
   537             }
   539             }
       
   540 */            
   538         case ECmdDeleteCreatorFiles:
   541         case ECmdDeleteCreatorFiles:
   539             {
   542             {
   540             iFiles->DeleteAllCreatedByCreatorL();
   543             iFiles->DeleteAllCreatedByCreatorL();
   541             break;
   544             break;
   542             }
   545             }
   721     __ASSERT_ALWAYS(!iCommandArray, User::Panic(_L("iCommandArray"), 701));
   724     __ASSERT_ALWAYS(!iCommandArray, User::Panic(_L("iCommandArray"), 701));
   722     iCommandArray = new(ELeave) CCommandArray(10000);
   725     iCommandArray = new(ELeave) CCommandArray(10000);
   723 
   726 
   724     // init all modules here
   727     // init all modules here
   725     TInt err(KErrNone);
   728     TInt err(KErrNone);
   726     TRAP(err, iBrowser = CCreatorBrowser::NewL(this));
   729 //    TRAP(err, iBrowser = CCreatorBrowser::NewL(this));
   727     TRAP(err, iCalendar = CCreatorInterimCalendar::NewL(this));
   730     TRAP(err, iCalendar = CCreatorInterimCalendar::NewL(this));
   728     TRAP(err, iPhonebook = (CCreatorPhonebookBase*)TCreatorFactory::CreatePhoneBookL(this)); 
   731     TRAP(err, iPhonebook = (CCreatorPhonebookBase*)TCreatorFactory::CreatePhoneBookL(this)); 
   729     TRAP(err, iNotepad = CCreatorNotepad::NewL(this));
   732     TRAP(err, iNotepad = CCreatorNotepad::NewL(this));
   730     TRAP(err, iLogs = CCreatorLogs::NewL(this));
   733     TRAP(err, iLogs = CCreatorLogs::NewL(this));
   731     TRAP(err, iAccessPoints = (CCreatorConnectionSettingsBase*)TCreatorFactory::CreateConnectionSettingsL(this));
   734 //    TRAP(err, iAccessPoints = (CCreatorConnectionSettingsBase*)TCreatorFactory::CreateConnectionSettingsL(this));
   732     TRAP(err, iMailboxes = CCreatorMailboxes::NewL(this));
   735     TRAP(err, iMailboxes = CCreatorMailboxes::NewL(this));
   733     TRAP(err, iFiles = CCreatorFiles::NewL(this));
   736     TRAP(err, iFiles = CCreatorFiles::NewL(this));
   734     TRAP(err, iMessages = CCreatorMessages::NewL(this));
   737     TRAP(err, iMessages = CCreatorMessages::NewL(this));
   735     TRAP(err, iLandmarks = CCreatorLandmarks::NewL(this));
   738     TRAP(err, iLandmarks = CCreatorLandmarks::NewL(this));
   736     ContactLinkCache::InitializeL();
   739     ContactLinkCache::InitializeL();
   765     iMessages = NULL;
   768     iMessages = NULL;
   766     delete iFiles;
   769     delete iFiles;
   767     iFiles = NULL;
   770     iFiles = NULL;
   768     delete iMailboxes;
   771     delete iMailboxes;
   769     iMailboxes = NULL;
   772     iMailboxes = NULL;
   770     delete iAccessPoints;
   773  //   delete iAccessPoints;
   771     iAccessPoints = NULL;
   774 //    iAccessPoints = NULL;
   772     delete iLogs;
   775     delete iLogs;
   773     iLogs = NULL;
   776     iLogs = NULL;
   774     delete iNotepad;
   777     delete iNotepad;
   775     iNotepad = NULL;
   778     iNotepad = NULL;
   776     delete iPhonebook;
   779     delete iPhonebook;
   777     iPhonebook = NULL;
   780     iPhonebook = NULL;
   778     delete iCalendar;
   781     delete iCalendar;
   779     iCalendar = NULL;
   782     iCalendar = NULL;
   780     delete iBrowser;
   783  //   delete iBrowser;
   781     iBrowser = NULL;
   784  //   iBrowser = NULL;
   782     delete iLandmarks;
   785     delete iLandmarks;
   783     iLandmarks = NULL;
   786     iLandmarks = NULL;
   784 
   787 
   785     ContactLinkCache::DestroyL();
   788     ContactLinkCache::DestroyL();
   786     // now delete the command array
   789     // now delete the command array
   943         {
   946         {
   944         case ECreatorEngineDeleteAllEntries:
   947         case ECreatorEngineDeleteAllEntries:
   945             AppendToCommandArrayL( ECmdDeleteContacts, NULL, 1 );
   948             AppendToCommandArrayL( ECmdDeleteContacts, NULL, 1 );
   946             AppendToCommandArrayL( ECmdDeleteContactGroups, NULL, 1 );
   949             AppendToCommandArrayL( ECmdDeleteContactGroups, NULL, 1 );
   947             AppendToCommandArrayL( ECmdDeleteCalendarEntries, NULL, 1 );
   950             AppendToCommandArrayL( ECmdDeleteCalendarEntries, NULL, 1 );
   948             AppendToCommandArrayL( ECmdDeleteBrowserBookmarks, NULL, 1 );
   951             //AppendToCommandArrayL( ECmdDeleteBrowserBookmarks, NULL, 1 );
   949             AppendToCommandArrayL( ECmdDeleteBrowserBookmarkFolders, NULL, 1 );
   952             //AppendToCommandArrayL( ECmdDeleteBrowserBookmarkFolders, NULL, 1 );
   950             AppendToCommandArrayL( ECmdDeleteBrowserSavedPages, NULL, 1 );
   953             //AppendToCommandArrayL( ECmdDeleteBrowserSavedPages, NULL, 1 );
   951             AppendToCommandArrayL( ECmdDeleteBrowserSavedPageFolders, NULL, 1 );
   954             //AppendToCommandArrayL( ECmdDeleteBrowserSavedPageFolders, NULL, 1 );
   952             AppendToCommandArrayL( ECmdDeleteLogs, NULL, 1 );
   955             AppendToCommandArrayL( ECmdDeleteLogs, NULL, 1 );
   953             AppendToCommandArrayL( ECmdDeleteMessages, NULL, 1 );
   956             AppendToCommandArrayL( ECmdDeleteMessages, NULL, 1 );
   954             AppendToCommandArrayL( ECmdDeleteIAPs, NULL, 1 );
   957             //AppendToCommandArrayL( ECmdDeleteIAPs, NULL, 1 );
   955             AppendToCommandArrayL( ECmdDeleteIMPSs, NULL, 1 );
   958             //AppendToCommandArrayL( ECmdDeleteIMPSs, NULL, 1 );
   956             AppendToCommandArrayL( ECmdDeleteNotes, NULL, 1 );
   959             AppendToCommandArrayL( ECmdDeleteNotes, NULL, 1 );
   957             AppendToCommandArrayL( ECmdDeleteLandmarks, NULL, 1 );
   960             AppendToCommandArrayL( ECmdDeleteLandmarks, NULL, 1 );
   958             AppendToCommandArrayL( ECmdDeleteCreatorFiles, NULL, 1 );
   961             AppendToCommandArrayL( ECmdDeleteCreatorFiles, NULL, 1 );
   959             
   962             
   960             // started exucuting delete commands
   963             // started exucuting delete commands
   962             break;
   965             break;
   963         case ECreatorEngineDeleteAllCreatorEntries:
   966         case ECreatorEngineDeleteAllCreatorEntries:
   964             AppendToCommandArrayL( ECmdDeleteCreatorContacts, NULL, 1 );
   967             AppendToCommandArrayL( ECmdDeleteCreatorContacts, NULL, 1 );
   965             AppendToCommandArrayL( ECmdDeleteCreatorContactGroups, NULL, 1 );
   968             AppendToCommandArrayL( ECmdDeleteCreatorContactGroups, NULL, 1 );
   966             AppendToCommandArrayL( ECmdDeleteCreatorCalendarEntries, NULL, 1 );
   969             AppendToCommandArrayL( ECmdDeleteCreatorCalendarEntries, NULL, 1 );
       
   970             /*
   967             AppendToCommandArrayL( ECmdDeleteCreatorBrowserBookmarks, NULL, 1 );
   971             AppendToCommandArrayL( ECmdDeleteCreatorBrowserBookmarks, NULL, 1 );
   968             AppendToCommandArrayL( ECmdDeleteCreatorBrowserBookmarkFolders, NULL, 1 );
   972             AppendToCommandArrayL( ECmdDeleteCreatorBrowserBookmarkFolders, NULL, 1 );
   969             AppendToCommandArrayL( ECmdDeleteCreatorBrowserSavedPages, NULL, 1 );
   973             AppendToCommandArrayL( ECmdDeleteCreatorBrowserSavedPages, NULL, 1 );
   970             AppendToCommandArrayL( ECmdDeleteCreatorBrowserSavedPageFolders, NULL, 1 );
   974             AppendToCommandArrayL( ECmdDeleteCreatorBrowserSavedPageFolders, NULL, 1 );
       
   975             */
   971             AppendToCommandArrayL( ECmdDeleteCreatorFiles, NULL, 1 );
   976             AppendToCommandArrayL( ECmdDeleteCreatorFiles, NULL, 1 );
   972             AppendToCommandArrayL( ECmdDeleteCreatorLogs, NULL, 1 );
   977             AppendToCommandArrayL( ECmdDeleteCreatorLogs, NULL, 1 );
   973             AppendToCommandArrayL( ECmdDeleteCreatorMessages, NULL, 1 );
   978             AppendToCommandArrayL( ECmdDeleteCreatorMessages, NULL, 1 );
   974             AppendToCommandArrayL( ECmdDeleteCreatorIAPs, NULL, 1 );
   979             //AppendToCommandArrayL( ECmdDeleteCreatorIAPs, NULL, 1 );
   975             AppendToCommandArrayL( ECmdDeleteCreatorIMPSs, NULL, 1 );
   980             //AppendToCommandArrayL( ECmdDeleteCreatorIMPSs, NULL, 1 );
   976             AppendToCommandArrayL( ECmdDeleteCreatorLandmarks, NULL, 1 );
   981             AppendToCommandArrayL( ECmdDeleteCreatorLandmarks, NULL, 1 );
   977             
   982             
   978             // started exucuting delete commands
   983             // started exucuting delete commands
   979             ExecuteFirstCommandL( KDeletingText );
   984             ExecuteFirstCommandL( KDeletingText );
   980             break;
   985             break;
   995     StartEnginesL();
  1000     StartEnginesL();
   996 
  1001 
   997     // set the home module
  1002     // set the home module
   998     switch(aCommand)
  1003     switch(aCommand)
   999         {
  1004         {
  1000 	    case ECmdCreateBrowserBookmarkEntries:
  1005 /*
       
  1006         case ECmdCreateBrowserBookmarkEntries:
  1001 	    case ECmdCreateBrowserBookmarkFolderEntries:
  1007 	    case ECmdCreateBrowserBookmarkFolderEntries:
  1002 	    case ECmdCreateBrowserSavedPageEntries:
  1008 	    case ECmdCreateBrowserSavedPageEntries:
  1003 	    case ECmdCreateBrowserSavedPageFolderEntries:
  1009 	    case ECmdCreateBrowserSavedPageFolderEntries:
  1004 	    case ECmdDeleteBrowserBookmarks:
  1010 	    case ECmdDeleteBrowserBookmarks:
  1005 	    case ECmdDeleteBrowserBookmarkFolders:
  1011 	    case ECmdDeleteBrowserBookmarkFolders:
  1011         case ECmdDeleteCreatorBrowserSavedPageFolders:
  1017         case ECmdDeleteCreatorBrowserSavedPageFolders:
  1012             {
  1018             {
  1013             iUsedOptionsMenuModule = iBrowser;
  1019             iUsedOptionsMenuModule = iBrowser;
  1014             }
  1020             }
  1015             break;
  1021             break;
  1016 	    
  1022 */	    
  1017         case ECmdCreateCalendarEntryAppointments:
  1023         case ECmdCreateCalendarEntryAppointments:
  1018 	    case ECmdCreateCalendarEntryEvents:
  1024 	    case ECmdCreateCalendarEntryEvents:
  1019 	    case ECmdCreateCalendarEntryAnniversaries:
  1025 	    case ECmdCreateCalendarEntryAnniversaries:
  1020 	    case ECmdCreateCalendarEntryToDos:
  1026 	    case ECmdCreateCalendarEntryToDos:
  1021 	    case ECmdCreateCalendarEntryReminders:
  1027 	    case ECmdCreateCalendarEntryReminders:
  1052 	    case ECmdDeleteCreatorLogs:
  1058 	    case ECmdDeleteCreatorLogs:
  1053             {
  1059             {
  1054             iUsedOptionsMenuModule = iLogs;
  1060             iUsedOptionsMenuModule = iLogs;
  1055             }
  1061             }
  1056             break;
  1062             break;
  1057 
  1063 /*
  1058 	    case ECmdCreateMiscEntryAccessPoints:
  1064 	    case ECmdCreateMiscEntryAccessPoints:
  1059 	    case ECmdDeleteIAPs:
  1065 	    case ECmdDeleteIAPs:
  1060 	    case ECmdDeleteCreatorIAPs:
  1066 	    case ECmdDeleteCreatorIAPs:
  1061             {
  1067             {
  1062             iUsedOptionsMenuModule = iAccessPoints;
  1068             iUsedOptionsMenuModule = iAccessPoints;
  1063             }
  1069             }
  1064             break;
  1070             break;
  1065 
  1071 */
  1066 	    case ECmdCreateMessagingEntryMailboxes:
  1072 	    case ECmdCreateMessagingEntryMailboxes:
  1067 	    case ECmdDeleteMailboxes:
  1073 	    case ECmdDeleteMailboxes:
  1068 	    case ECmdDeleteCreatorMailboxes:
  1074 	    case ECmdDeleteCreatorMailboxes:
  1069             {
  1075             {
  1070             iUsedOptionsMenuModule = iMailboxes;
  1076             iUsedOptionsMenuModule = iMailboxes;
  1833 
  1839 
  1834 TUint32 CCreatorEngine::AccessPointNameToIdL(const TDesC& aAPName, TBool aAnyIfNotFound )
  1840 TUint32 CCreatorEngine::AccessPointNameToIdL(const TDesC& aAPName, TBool aAnyIfNotFound )
  1835     {
  1841     {
  1836     LOGSTRING("Creator: CCreatorEngine::AccessPointNameToIdL");
  1842     LOGSTRING("Creator: CCreatorEngine::AccessPointNameToIdL");
  1837     // Accespoint impl moved from engine to accespoint implementations for supporting 3.0-3.1 and 3.2->
  1843     // Accespoint impl moved from engine to accespoint implementations for supporting 3.0-3.1 and 3.2->
  1838     return iAccessPoints->AccessPointNameToIdL(aAPName, aAnyIfNotFound );
  1844     //return iAccessPoints->AccessPointNameToIdL(aAPName, aAnyIfNotFound );
       
  1845     return 0;
  1839     }
  1846     }
  1840 
  1847 
  1841 static CCreatorEngine::TTestDataPath SoundFiles[] = {
  1848 static CCreatorEngine::TTestDataPath SoundFiles[] = {
  1842         CCreatorEngine::EMIDI_10kB,
  1849         CCreatorEngine::EMIDI_10kB,
  1843         CCreatorEngine::EWAVE_20kB,  
  1850         CCreatorEngine::EWAVE_20kB,