creator/inc/enginewrapper.h
changeset 27 271e901a9423
parent 17 4f2773374eff
child 23 c9bf25a20c9f
equal deleted inserted replaced
26:41ebde60981f 27:271e901a9423
    22 #include <e32std.h>
    22 #include <e32std.h>
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <badesca.h>
    24 #include <badesca.h>
    25 #include <engine.h>
    25 #include <engine.h>
    26 
    26 
    27  #include <QObject> // for iProgressNote signal connect
    27 #include <QObject> // for iProgressNote signal connect
    28 
    28 
    29 
    29 
    30 class MainView;
    30 class MainView;
    31 class MemoryDetails;
    31 class MemoryDetails;
    32 class HbProgressDialog;
    32 class HbProgressDialog;
    33 class HbPopup;
    33 class HbPopup;
    34 class HbCommonNote;
    34 class HbCommonNote;
       
    35 class HbAction;
    35 
    36 
    36 
    37 
    37 /**
    38 /**
    38  * class that is used for communicating between Symbian and Qt code.
    39  * class that is used for communicating between Symbian and Qt code.
    39  */
    40  */
   100     void CloseProgressbar();	
   101     void CloseProgressbar();	
   101 	
   102 	
   102 	/**
   103 	/**
   103 	* Create entries query dialog
   104 	* Create entries query dialog
   104 	*/
   105 	*/
   105 	TBool EntriesQueryDialog(TInt& aNumberOfEntries, const TDesC& aPrompt, TBool aAcceptsZero = EFalse);
   106 	TBool EntriesQueryDialog(TInt* aNumberOfEntries, const TDesC& aPrompt, TBool aAcceptsZero = EFalse, MUIObserver* aObserver = NULL, int userData = 0);
   106 
   107 
   107 	/**
   108 	/**
   108 	* Create time query dialog
   109 	* Create time query dialog
   109 	*/    
   110 	*/    
   110     TBool TimeQueryDialog(TTime aTime, const TDesC& aPrompt);
   111     TBool TimeQueryDialog(TTime* aTime, const TDesC& aPrompt, MUIObserver* aObserver = NULL, int userData = 0);
   111 
   112 
   112 	/**
   113 	/**
   113 	* Create yes or no query dialog
   114 	* Create yes or no query dialog
   114 	*/    
   115 	*/    
   115     TBool YesNoQueryDialog(const TDesC& aPrompt);
   116     TBool YesNoQueryDialog(const TDesC& aPrompt, MUIObserver* aObserver = NULL, int userData = 0);
   116 	
   117 	
   117 	/**
   118 	/**
   118 	* Popup list dialog for selecting item from dialog list
   119 	* Popup list dialog for selecting item from dialog list
   119 	*/
   120 	*/
   120 	bool PopupListDialog(const TDesC& aPrompt, CDesCArray* aFileNameArray, TInt& aIndex); 
   121 	TBool PopupListDialog(const TDesC& aPrompt, const CDesCArray* aFileNameArray, TInt* aIndex, MUIObserver* aObserver = NULL, TInt aUserData=0); 
   121 	
   122 	
   122 	/**
   123 	/**
   123 	* Directory query dialog
   124 	* Directory query dialog
   124 	*/
   125 	*/
   125 	bool DirectoryQueryDialog(const TDesC& aPrompt, TFileName& aDirectory);
   126 	bool DirectoryQueryDialog(const TDesC& aPrompt, TFileName& aDirectory);
   126 	
   127 	
   127 	/**
   128 	/**
   128 	* Create list query single-selection dialog
   129 	* Create list query single-selection dialog
   129 	*/
   130 	*/
   130 	bool ListQueryDialog(const TDesC& aPrompt, TListQueryId aId, TInt& aIndex);
   131 	TBool ListQueryDialog(const TDesC& aPrompt, TListQueryId aId, TInt* aSeletedItem, MUIObserver* aObserver = NULL, TInt aUserData=0);
   131 
   132 
   132 	/**
   133 	/**
   133 	* Create list query multi-selection dialog
   134 	* Create list query multi-selection dialog
   134 	*/
   135 	*/
   135 	bool ListQueryDialog(const TDesC& aPrompt, TListQueryId aId, CArrayFixFlat<TInt>* aIndexes);
   136 	TBool ListQueryDialog(const TDesC& aPrompt, TListQueryId aId, CArrayFixFlat<TInt>* aSelectedItems, MUIObserver* aObserver = NULL, TInt aUserData=0);
   136 	
   137 	
   137 	
   138 	
   138 	/**
   139 	/**
   139 	* Close application when started from command line for script run.
   140 	* Close application when started from command line for script run.
   140 	*/
   141 	*/
   143 private slots:
   144 private slots:
   144 	
   145 	
   145 	/**
   146 	/**
   146 	* progress dialog cancelled
   147 	* progress dialog cancelled
   147 	*/
   148 	*/
   148 	void ProgressDialogCancelled();    
   149 	void ProgressDialogCancelled();
   149 	
   150 	
   150 private:
   151 private:
   151     
   152     
   152     
   153     
   153     /* Creator engine */
   154     /* Creator engine */
   154     CCreatorEngine* iEngine;
   155     CCreatorEngine* iEngine;
   155     
   156     
   156     /* progress dialog that is shown */
   157     /* progress dialog that is shown */
   157     HbProgressDialog* iProgressDialog;
   158     HbProgressDialog* iProgressDialog;
   158     
   159     
       
   160     MCreatorModuleBase *iModule;
   159 };
   161 };
   160 
   162 
   161 #endif //ENGINEWRAPPER_H
   163 #endif //ENGINEWRAPPER_H