creator/inc/engine.h
changeset 55 2d9cac8919d3
parent 53 819e59dfc032
child 56 392f7045e621
equal deleted inserted replaced
53:819e59dfc032 55:2d9cac8919d3
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CREATORENGINE_H__
       
    20 #define __CREATORENGINE_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <e32hal.h>
       
    26 #include <s32file.h>
       
    27 #include <s32mem.h>
       
    28 #include <w32std.h>
       
    29 
       
    30 //#include <aknenv.h>
       
    31 #include <coeutils.h>
       
    32 #include <apparc.h>
       
    33 #include <eikenv.h>
       
    34 //#include <eikprogi.h>
       
    35 #include <bautils.h>
       
    36 #include <commdb.h>
       
    37 #include <imageconversion.h> //TFrameInfo
       
    38 
       
    39 #include "creator.hrh"
       
    40 #include "creator_std.h"
       
    41 #include "creator_randomdataparser.h"
       
    42 
       
    43 //class CCreatorAppUi;
       
    44 class TCommand;
       
    45 class CCreatorBrowser;
       
    46 class CCreatorCalendarBase;
       
    47 class CCreatorNotepad;
       
    48 class CCreatorLogs;
       
    49 //class CCreatorAccessPoints;
       
    50 class CCreatorMailboxes;
       
    51 class CCreatorIMPS;
       
    52 class CCreatorFiles;
       
    53 class CCreatorMessages;
       
    54 class CCreatorLandmarks;
       
    55 class MCreatorModuleBase;
       
    56 class CCreatorPhonebookBase;
       
    57 class CCreatorModuleBaseParameters;
       
    58 //class CCreatorConnectionSettingsBase;
       
    59 class CDictionaryFileStore;
       
    60 class CImageDecoder;
       
    61 class CFbsBitmap;
       
    62 class CBitmapScaler;
       
    63 class CCommandParser;
       
    64 class EngineWrapper;
       
    65 class CCreatorCmdScriptRun;
       
    66 
       
    67 static const TUid KUidCreatorApp = {0x20011383};
       
    68 
       
    69 enum TListQueryId
       
    70 	{
       
    71 	R_GROUP_CREATION_TYPE_QUERY,
       
    72 	R_CONTACT_CREATION_TYPE_QUERY,
       
    73 	R_MESSAGE_TYPE_QUERY,
       
    74 	R_FOLDER_TYPE_QUERY,
       
    75 	R_UNREAD_QUERY,
       
    76 	R_ATTACHMENT_MULTI_SELECTION_QUERY,
       
    77 	R_AMS_ATTACHMENT_SINGLE_SELECTION_QUERY,
       
    78 	R_ATTACHMENT_SINGLE_SELECTION_QUERY
       
    79 	};
       
    80 
       
    81 /*
       
    82  * Interface for UI dialogs
       
    83  */
       
    84 class MUIObserver
       
    85     {
       
    86 public:
       
    87     /**
       
    88      * Called when some dialog in UI is closed
       
    89      *
       
    90      * @since S60 10.1
       
    91      * @param aPositiveAction ETrue if "Ok", "Yes" or other "positive" button was pressed
       
    92      * @param aUserData number that was passed to UI before dialog was opened
       
    93      * @return None.
       
    94      */
       
    95     virtual void QueryDialogClosedL(TBool aPositiveAction, TInt aUserData) = 0;
       
    96 
       
    97     };
       
    98 
       
    99 /*
       
   100  * Interface for CCommandParser
       
   101  */
       
   102 class MCommandParserObserver
       
   103     {
       
   104 public:
       
   105     /**
       
   106      * Called when CCommandParser user has choosen script file
       
   107      *
       
   108      * @since S60 10.1
       
   109      * @param aSuccess ETrue if "Ok", "Yes" or other "positive" button was pressed
       
   110      * @param aFileName filename chosen by user
       
   111      * @return None.
       
   112      */
       
   113     virtual void ScriptChosenL(TBool aSuccess, const TDesC& aFileName = KNullDesC) = 0;
       
   114 
       
   115     /**
       
   116      * Called when CCommandParser user has choosen random data file
       
   117      *
       
   118      * @since S60 10.1
       
   119      * @param aSuccess ETrue if "Ok", "Yes" or other "positive" button was pressed
       
   120      * @param aFileName filename chosen by user
       
   121      * @return None.
       
   122      */
       
   123     virtual void RandomDataFileChosenL(TBool aSuccess, const TDesC& aFileName = KNullDesC) = 0;
       
   124     };
       
   125 
       
   126 /**
       
   127  * Device memory information
       
   128  */
       
   129 class TMemoryDetails
       
   130 	{
       
   131 public:
       
   132 	
       
   133 	TBuf<16> iFree;
       
   134 	TBuf<16> iSize;
       
   135 	TChar iDriveLetter;
       
   136 
       
   137     TBuf<16> iRamFree;
       
   138     TBuf<16> iRomFree;
       
   139     
       
   140 	TBool    iENotAvailable;
       
   141 
       
   142 	TBuf<16> iRamSize;
       
   143 	TBuf<16> iRomSize;
       
   144 	};
       
   145 // Common constant for undefined integer value:
       
   146 const TInt KUndef = KErrNotFound;
       
   147 
       
   148 class CCreatorEngine : public CActive, public MUIObserver, public MCommandParserObserver
       
   149 	{
       
   150 enum ECreatorEngineState{
       
   151     ECreatorEngineDeleteAllEntries,
       
   152     ECreatorEngineDeleteAllCreatorEntries,
       
   153 };
       
   154 public:
       
   155     
       
   156     enum TRandomStringType
       
   157         {
       
   158         EFirstName = 0,
       
   159         ESurname,
       
   160         ECompany,
       
   161         EAddress,
       
   162         EJobTitle,
       
   163         EPhoneNumber,
       
   164         EGroupName,
       
   165         EMeetingReason,
       
   166         EMeetingPlace,
       
   167         EMemoText,
       
   168         EAnniversaryReason,
       
   169         EToDoText,
       
   170         EReminderText,
       
   171         EMessageSubject,
       
   172         EMessageText,
       
   173         ECity,
       
   174         ECountry,
       
   175         EPostcode,        
       
   176         EState,
       
   177         EPobox,
       
   178         EPrefix,
       
   179         ESuffix,
       
   180         ELandmarkName,
       
   181         ELandmarkDescription
       
   182         };
       
   183 
       
   184 
       
   185 // note! changing order will cause regression in other modules
       
   186 
       
   187     enum TTestDataPath
       
   188         {
       
   189         EJPEG_25kB = 0,
       
   190         EJPEG_200kB,
       
   191         EJPEG_500kB,
       
   192         EPNG_15kB,
       
   193         EGIF_2kB,
       
   194         ERNG_1kB,
       
   195         EMIDI_10kB,
       
   196         EWAVE_20kB,
       
   197         EAMR_20kB,
       
   198         EExcel_15kB,
       
   199         EWord_20kB,
       
   200         EPowerPoint_40kB,
       
   201         EText_10kB,
       
   202         EText_70kB,
       
   203         E3GPP_70kB,
       
   204         EMP3_250kB,
       
   205         EAAC_100kB,
       
   206         ERM_95kB,
       
   207         EBMP_25kB,
       
   208         EHTML_20kB,
       
   209         EJAD_1kB,
       
   210         EJAR_10kB,
       
   211         EJP2_65kB,
       
   212         EMP4_200kB,
       
   213         EMXMF_40kB,
       
   214         ERAM_1kB,
       
   215         ESVG_15kB,
       
   216         ESWF_15kB,
       
   217         ETIF_25kB,
       
   218         EVCF_1kB,
       
   219         EVCS_1kB,
       
   220         ESISX_10kB,
       
   221         EWMA_50kB,
       
   222         EWMV_200kB,
       
   223         ESavedDeck_1kB,
       
   224         LAST_FILE_ID//When you add new items to enum, add them before last item, so random number generations does not need to be updated also         
       
   225         };
       
   226         
       
   227     enum TRandomDateType
       
   228         {
       
   229         EDatePast,
       
   230         EDateFuture    
       
   231         };
       
   232 
       
   233 public:
       
   234     /**
       
   235      * Constructor: NewL
       
   236      */
       
   237     static CCreatorEngine* NewL(EngineWrapper *aEngineWrapper);
       
   238     /**
       
   239      * Constructor: NewLC
       
   240      */
       
   241     static CCreatorEngine* NewLC(EngineWrapper *aEngineWrapper);	
       
   242     ~CCreatorEngine();
       
   243 	
       
   244     inline const RPointerArray<TMemoryDetails>& GetMemoryDetailsList(){ return iMemoryDetailsList; };
       
   245 	inline const TMemoryDetails& GetMemoryDetails(){ return iMemoryDetails; };
       
   246 	inline EngineWrapper* GetEngineWrapper(){ return iEngineWrapper; };
       
   247 	inline CCreatorPhonebookBase* GetPhonebook(){ return  iPhonebook; };
       
   248 	
       
   249 private:
       
   250     CCreatorEngine();
       
   251     /**
       
   252      * EPOC default constructor for performing 2nd stage construction
       
   253      */
       
   254     void ConstructL(EngineWrapper *aEngineWrapper);
       
   255 	
       
   256 	void RequestMemoryDetails();
       
   257     TBool MMC_OK() const;
       
   258     void Init();
       
   259     void RunL();
       
   260     TInt RunError(TInt aError);
       
   261     void DoCancel();
       
   262 
       
   263     void ExecuteCommand();
       
   264     void StartEnginesL();
       
   265     void CheckForMoreCommandsL();
       
   266     
       
   267     TBool IsDeleteCommand( TInt aCommand );
       
   268     
       
   269     TInt ReadRandomDataL(const TRandomStringType aRandomStringType,
       
   270     		             const TInt aResourceId,
       
   271     		             const TDesC& aFilename,
       
   272     		             const CCreatorRandomDataParser::TRandomDataType aRandomDataType);
       
   273     void GenerateSourceImageFileL( const TTestDataPath aFileType, const TDesC& aFileName );
       
   274     void GenereteSourceTextFileL( const TDesC& aFileName, TInt aSize );
       
   275 
       
   276 public: // from MUIObserver
       
   277     /**
       
   278      * Called when some dialog in UI is closed
       
   279      *
       
   280      * @since S60 10.1
       
   281      * @param aPositiveAction ETrue if "Ok", "Yes" or other "positive" button was pressed
       
   282      * @param aUserData number that was passed to UI before dialog was opened
       
   283      * @return ?description
       
   284      */
       
   285     virtual void QueryDialogClosedL(TBool aPositiveAction, TInt aUserData);
       
   286     
       
   287 public: // from MCommandParserObserver
       
   288     /**
       
   289      * Called when CCommandParser user has choosen script file
       
   290      *
       
   291      * @since S60 10.1
       
   292      * @param aSuccess ETrue if "Ok", "Yes" or other "positive" button was pressed
       
   293      * @param aFileName filename chosen by user
       
   294      * @return None.
       
   295      */
       
   296     virtual void ScriptChosenL(TBool aSuccess, const TDesC& aFileName = KNullDesC);
       
   297     
       
   298     /**
       
   299      * Called when CCommandParser user has choosen random data file
       
   300      *
       
   301      * @since S60 10.1
       
   302      * @param aSuccess ETrue if "Ok", "Yes" or other "positive" button was pressed
       
   303      * @param aFileName filename chosen by user
       
   304      * @return None.
       
   305      */
       
   306     virtual void RandomDataFileChosenL(TBool aSuccess, const TDesC& aFileName = KNullDesC);
       
   307     
       
   308 public:
       
   309     void ExecuteOptionsMenuCommandL(TInt aCommand);
       
   310     void RunScriptL();
       
   311     TInt RunScriptL(const TDesC& aScriptFile);
       
   312     void ShutDownEnginesL();
       
   313     void ExecuteFirstCommandL(const TDesC& aText);
       
   314     
       
   315     void AppendToCommandArrayL(TInt aCommand, CCreatorModuleBaseParameters* aParameters, TInt aNumberOfEntries = 1);
       
   316     TInt CommandArrayCount();
       
   317  
       
   318     TPtrC TestDataPathL(enum TTestDataPath aTestDataPath);
       
   319     TPtrC RandomSoundFileL(); // Returns temporary path, which will be removed on shutdown 
       
   320     void RandomPictureFileL(TDes& aPath);  // aPath temporary path, which will be removed on shutdown
       
   321     TPtrC CreateRandomSoundFileL(); // Copies file to new location and returns the new path
       
   322     TPtrC CreateSoundFileL(TTestDataPath aId); // Copies file to new location and returns the new path
       
   323     
       
   324     void CopyFileL(const TFileName& aSourceFile, const TFileName& aTargetFile, TBool aOverwrite = EFalse );
       
   325     /*
       
   326      * Gets attacment file id based on the file id string
       
   327      * @return Attachment file id
       
   328      * @param aAttachmentIdStr Attachment file id string
       
   329      */
       
   330     TInt GetAttachmentIdL( const TDesC& aAttachmentIdStr ) const;    
       
   331 
       
   332     TUint32 GetDefaultIAPL();
       
   333     TUint32 AccessPointNameToIdL(const TDesC& aAPName, TBool aAnyIfNotFound = EFalse );
       
   334 
       
   335     TPtrC RandomString(enum TRandomStringType aRandomStringType);    
       
   336     TInt RandomNumber(TInt aRange);
       
   337     TInt RandomNumber(TInt aMin, TInt aMax);
       
   338     TTime RandomDate(TRandomDateType type, TInt aMinDays = 0, TInt aMaxDays = 360 );
       
   339     TTime RandomDate(TTime baseTime, TRandomDateType type, TInt aMinDays = 0, TInt aMaxDays = 360);  
       
   340     TTime RandomTime(TTime baseTime, TRandomDateType type, TInt aMinHours=0, TInt aMaxHours=24, TInt aMinMinutes=0, TInt aMaxMinutes=60 );
       
   341     CDesCArrayFlat* SoundFilesL();
       
   342     CDesCArrayFlat* PictureFilesL();
       
   343     
       
   344     HBufC* CreateEmailAddressLC();
       
   345     HBufC* CreateHTTPUrlLC();
       
   346     HBufC* CreateRandomStringLC(TInt aStrLen);
       
   347     
       
   348     HBufC* CreateEmailAddressLC(
       
   349             const TDesC& firstname,
       
   350             const TDesC& lastname,
       
   351             const TDesC& domain,
       
   352             const TDesC& country ) const;
       
   353     
       
   354     HBufC* CreateUrlLC(
       
   355             const TDesC& protocol,
       
   356             const TDesC& prefix,
       
   357             const TDesC& domain,
       
   358             const TDesC& country) const;
       
   359     
       
   360     void SetDefaultPathForFileCommandL(TInt aCommand, TFileName& aPath);
       
   361 
       
   362     TBool GetRandomDataL();
       
   363     TBool GetRandomDataFromFileL(const TDesC& aFilename);
       
   364     void CancelComplete();
       
   365     CDictionaryFileStore* FileStoreLC();
       
   366     void ReadEntryIdsFromStoreL( RArray<TInt>& aEntryIds, const TUid aModuleUid );
       
   367     void WriteEntryIdsToStoreL( RArray<TInt>& aEntryIds, const TUid aModuleUid );
       
   368     void ReadEntryIdsFromStoreL( RArray<TUint32>& aEntryIds, const TUid aModuleUid );
       
   369     void WriteEntryIdsToStoreL( RArray<TUint32>& aEntryIds, const TUid aModuleUid );
       
   370     void RemoveStoreL( const TUid aModuleUid );
       
   371 	void ProgressDialogCancelledL();
       
   372 	
       
   373 	void SortCommands();
       
   374     
       
   375 private:
       
   376     // needed by the engine itself
       
   377     RTimer iTimer;
       
   378     CEikonEnv* iEnv;
       
   379     //CCreatorAppUi* iAppUi;
       
   380     TInt iCurrentEntry;
       
   381     TInt iFailedCommands;
       
   382 
       
   383     CDesCArrayFlat* iSoundFileArray;
       
   384     CDesCArrayFlat* iPictureFileArray;
       
   385     CCommandArray* iCommandArray;
       
   386     RPointerArray<CCreatorModuleBaseParameters> iParameterArray;
       
   387     // progress bar
       
   388     //CAknProgressDialog* iProgressDialog;
       
   389     //CEikProgressInfo* iProgressInfo;
       
   390         
       
   391     // for the random data generator
       
   392     TInt64 iSeed;
       
   393     
       
   394     class TStringArrayPtr
       
   395         {
       
   396         public:
       
   397         TStringArrayPtr(TRandomStringType aType, CDesCArray* aPtr)
       
   398             {
       
   399             iStringType = aType;
       
   400             iArrayPtr = aPtr;
       
   401             };
       
   402         TRandomStringType iStringType;
       
   403         CDesCArray* iArrayPtr;
       
   404         }; 
       
   405     
       
   406     RArray<TStringArrayPtr> iStringArrays;
       
   407     
       
   408     // modules
       
   409     CCreatorBrowser* iBrowser;
       
   410     CCreatorCalendarBase* iCalendar;
       
   411     CCreatorPhonebookBase* iPhonebook;
       
   412     CCreatorNotepad* iNotepad;
       
   413     CCreatorLogs* iLogs;
       
   414 //    CCreatorConnectionSettingsBase* iAccessPoints;
       
   415     CCreatorMailboxes* iMailboxes;
       
   416     CCreatorIMPS* iIMPS;
       
   417     CCreatorFiles* iFiles;
       
   418     CCreatorMessages* iMessages;
       
   419     CCreatorLandmarks* iLandmarks;
       
   420 	CCreatorCmdScriptRun* iCmdScriptRun;
       
   421 	CCommandParser* iCommandParser;
       
   422 
       
   423     // options menu command home module
       
   424     MCreatorModuleBase* iUsedOptionsMenuModule;
       
   425     
       
   426     HBufC* iTempPath;
       
   427     
       
   428     RPointerArray<HBufC> iAllocatedFilePaths;
       
   429     TBool iUserCancelled;
       
   430     
       
   431     // For generating missing bitmaps
       
   432     HBufC8* iBitmapData;
       
   433     CFbsBitmap* iBitmap;
       
   434     CFbsBitmap* iScaledBitmap;
       
   435     CImageDecoder* iDecoder;
       
   436     TFrameInfo iFrameinfo;
       
   437     CImageEncoder* iEncoder;
       
   438     CFrameImageData* iFrameImageData;
       
   439     CBitmapScaler* iScaler;
       
   440 
       
   441     EngineWrapper* iEngineWrapper; // Enginewrapper that is used for communicating between QT and Symbian
       
   442 	TMemoryDetails iMemoryDetails;
       
   443 	
       
   444 	RPointerArray<TMemoryDetails> iMemoryDetailsList;
       
   445 	
       
   446 	TInt iResourceFileId;
       
   447 
       
   448 	HBufC* iCommandLineScriptName;
       
   449 	HBufC* iCommandLineRandomDataFileName;
       
   450 	};
       
   451 
       
   452 // this class contains a command which will be executed
       
   453 class TCommand
       
   454     {
       
   455 public:
       
   456     TInt iCommandId;
       
   457     CCreatorModuleBaseParameters* iParameters;
       
   458 public:
       
   459     TCommand(TInt aCommandId, CCreatorModuleBaseParameters* aParameters);
       
   460     ~TCommand();
       
   461 
       
   462     };
       
   463 
       
   464 
       
   465 // utility class for waiting for asychronous requests
       
   466 class CAsyncWaiter : public CActive
       
   467 	{
       
   468 public:
       
   469 	static CAsyncWaiter* NewL( TInt aPriority = EPriorityStandard );
       
   470 	static CAsyncWaiter* NewLC( TInt aPriority = EPriorityStandard );
       
   471 	~CAsyncWaiter();
       
   472 	
       
   473 	void StartAndWait();
       
   474 	TInt Result() const;
       
   475 	
       
   476 private:
       
   477 	CAsyncWaiter( TInt aPriority );
       
   478 	
       
   479 	// from CActive
       
   480 	void RunL();
       
   481 	void DoCancel();
       
   482 	
       
   483 private:
       
   484     CActiveSchedulerWait iWait;
       
   485 	TInt iError;
       
   486     };
       
   487 	
       
   488 	
       
   489 /*
       
   490  * Maps file id string (file name) to TTestDataPath (file id) and TCreatorIds (command id)
       
   491  */
       
   492 // File ids:
       
   493 	
       
   494 	_LIT(K3GPP_70KB, "3GPP-70kB");
       
   495 	_LIT(KAAC_100KB, "AAC-100kB");
       
   496 	_LIT(KAMR_20KB, "AMR-20kB");
       
   497 	_LIT(KXLS_15KB, "XLS-15kB");
       
   498 	_LIT(KGIF_2KB, "GIF-2kB");
       
   499 	_LIT(KJPEG_200KB, "JPEG-200kB");
       
   500 	_LIT(KJPEG_25KB, "JPEG-25kB");
       
   501 	_LIT(KJPEG_500KB, "JPEG-500kB");
       
   502 	_LIT(KMIDI_10KB, "MIDI-10kB");
       
   503 	_LIT(KMP3_250KB, "MP3-250kB");
       
   504 	_LIT(KPNG_15KB, "PNG-15kB");
       
   505 	_LIT(KPPT_40KB, "PPT-40kB");
       
   506 	_LIT(KRM_95KB, "RM-95kB");
       
   507 	_LIT(KRNG_1KB, "RNG-1kB");
       
   508 	_LIT(KTXT_10KB, "TXT-10kB");
       
   509 	_LIT(KTXT_70KB, "TXT-70kB");
       
   510 	_LIT(KWAV_20KB, "WAV-20kB");
       
   511 	_LIT(KDOC_20KB, "DOC-20kB");
       
   512 	_LIT(KSWF_15KB, "SWF-15kB");
       
   513 	_LIT(KJAD_1KB, "JAD-1kB");
       
   514 	_LIT(KJAR_10KB, "JAR-10kB");
       
   515 	_LIT(KTIF_25KB, "TIF-25kB");
       
   516 	_LIT(KMXMF_40KB, "MXMF-40kB");
       
   517 	_LIT(KBMP_25KB, "BMP-25kB");
       
   518 	_LIT(KJP2_25KB, "JP2-25kB");
       
   519 	_LIT(KSVG_15KB, "SVG-15kB");
       
   520 	_LIT(KHTML_20KB, "HTML-20kB");
       
   521 	_LIT(KVCF_1KB, "VCF-1kB");
       
   522 	_LIT(KVCS_1KB, "VCS-1kB");
       
   523 	_LIT(KMP4_200KB, "MP4-200kB");
       
   524 	_LIT(KSISX_10KB, "SISX-10kB");
       
   525 	_LIT(KRAM_1KB, "RAM-1kB");
       
   526     _LIT(KDECK_1KB, "DECK-1kB");
       
   527     _LIT(KWMA_50KB, "WMA-50kB");
       
   528     _LIT(KWMV_200KB, "WMV-200kB");
       
   529 	
       
   530 class FileMapping
       
   531     {
       
   532 	public:
       
   533 	FileMapping(const TDesC& aFileName, TInt aFileId, TInt aCommandId );
       
   534 	const TDesC& FileName() const;
       
   535 	TInt FileId() const;
       
   536 	TInt CommandId() const;
       
   537 
       
   538 	private:
       
   539 	const TDesC& iFileName;
       
   540 	TInt  iFileId;
       
   541 	TInt  iCommandId;
       
   542 	};
       
   543 	
       
   544 	/*
       
   545 	 * This table contains the string <-> TTestDataPath mappings for the file types
       
   546 	 */
       
   547 	static FileMapping FileMap[] = 
       
   548 	    {
       
   549       
       
   550 	    FileMapping(K3GPP_70KB, CCreatorEngine::E3GPP_70kB, ECmdCreateFileEntry3GPP_70kB),
       
   551 	    FileMapping(KAAC_100KB, CCreatorEngine::EAAC_100kB, ECmdCreateFileEntryAAC_100kB),
       
   552 	    FileMapping(KAMR_20KB, CCreatorEngine::EAMR_20kB, ECmdCreateFileEntryAMR_20kB),
       
   553 	    FileMapping(KXLS_15KB, CCreatorEngine::EExcel_15kB, ECmdCreateFileEntryXLS_15kB),
       
   554 	    FileMapping(KGIF_2KB, CCreatorEngine::EGIF_2kB, ECmdCreateFileEntryGIF_2kB),
       
   555 	    FileMapping(KJPEG_200KB, CCreatorEngine::EJPEG_200kB, ECmdCreateFileEntryJPEG_200kB),
       
   556 	    FileMapping(KJPEG_25KB, CCreatorEngine::EJPEG_25kB, ECmdCreateFileEntryJPEG_25kB),
       
   557 	    FileMapping(KJPEG_500KB, CCreatorEngine::EJPEG_500kB, ECmdCreateFileEntryJPEG_500kB),
       
   558 	    FileMapping(KMIDI_10KB, CCreatorEngine::EMIDI_10kB, ECmdCreateFileEntryMIDI_10kB),
       
   559 	    FileMapping(KMP3_250KB, CCreatorEngine::EMP3_250kB, ECmdCreateFileEntryMP3_250kB),
       
   560 	    FileMapping(KPNG_15KB, CCreatorEngine::EPNG_15kB, ECmdCreateFileEntryPNG_15kB),
       
   561 	    FileMapping(KPPT_40KB, CCreatorEngine::EPowerPoint_40kB, ECmdCreateFileEntryPPT_40kB),
       
   562 	    FileMapping(KRM_95KB, CCreatorEngine::ERM_95kB, ECmdCreateFileEntryRM_95kB),
       
   563 	    FileMapping(KRNG_1KB, CCreatorEngine::ERNG_1kB, ECmdCreateFileEntryRNG_1kB),
       
   564 	    FileMapping(KTXT_10KB, CCreatorEngine::EText_10kB, ECmdCreateFileEntryTXT_10kB),
       
   565 	    FileMapping(KTXT_70KB, CCreatorEngine::EText_70kB, ECmdCreateFileEntryTXT_70kB),
       
   566 	    FileMapping(KWAV_20KB, CCreatorEngine::EWAVE_20kB, ECmdCreateFileEntryWAV_20kB),
       
   567 	    FileMapping(KDOC_20KB, CCreatorEngine::EWord_20kB, ECmdCreateFileEntryDOC_20kB),
       
   568 	    FileMapping(KBMP_25KB, CCreatorEngine::EBMP_25kB, ECmdCreateFileEntryBMP_25kB),
       
   569 	    FileMapping(KDECK_1KB, CCreatorEngine::ESavedDeck_1kB, ECmdCreateFileEntryDeck_1kB),
       
   570 	    FileMapping(KHTML_20KB, CCreatorEngine::EHTML_20kB, ECmdCreateFileEntryHTML_20kB),
       
   571 	    FileMapping(KJAD_1KB, CCreatorEngine::EJAD_1kB, ECmdCreateFileEntryJAD_1kB),
       
   572 	    FileMapping(KJAR_10KB, CCreatorEngine::EJAR_10kB, ECmdCreateFileEntryJAR_10kB),
       
   573 	    FileMapping(KJP2_25KB, CCreatorEngine::EJP2_65kB, ECmdCreateFileEntryJP2_65kB),
       
   574 	    FileMapping(KMP4_200KB, CCreatorEngine::EMP4_200kB, ECmdCreateFileEntryMP4_200kB),
       
   575 	    FileMapping(KMXMF_40KB, CCreatorEngine::EMXMF_40kB, ECmdCreateFileEntryMXMF_40kB),
       
   576 	    FileMapping(KRAM_1KB, CCreatorEngine::ERAM_1kB, ECmdCreateFileEntryRAM_1kB),
       
   577 	    FileMapping(KSVG_15KB, CCreatorEngine::ESVG_15kB, ECmdCreateFileEntrySVG_15kB),
       
   578 	    FileMapping(KSWF_15KB, CCreatorEngine::ESWF_15kB, ECmdCreateFileEntrySWF_15kB),
       
   579 	    FileMapping(KTIF_25KB, CCreatorEngine::ETIF_25kB, ECmdCreateFileEntryTIF_25kB),
       
   580 	    FileMapping(KVCF_1KB, CCreatorEngine::EVCF_1kB, ECmdCreateFileEntryVCF_1kB),
       
   581 	    FileMapping(KVCS_1KB, CCreatorEngine::EVCS_1kB, ECmdCreateFileEntryVCS_1kB),
       
   582 	    FileMapping(KSISX_10KB, CCreatorEngine::ESISX_10kB, ECmdCreateFileEntrySISX_10kB),
       
   583 	    FileMapping(KWMA_50KB, CCreatorEngine::EWMA_50kB, ECmdCreateFileEntryWMA_50kB),
       
   584 	    FileMapping(KWMV_200KB, CCreatorEngine::EWMV_200kB, ECmdCreateFileEntryWMV_200kB)
       
   585 	    };
       
   586 
       
   587 #endif // __CREATORENGINE_H__
       
   588