creator/inc/creator_scriptelement.h
branchRCL_3
changeset 60 6646c35e558c
parent 50 9b2cffad4b5e
equal deleted inserted replaced
50:9b2cffad4b5e 60:6646c35e558c
   225     virtual TBool IsCacheNeeded();
   225     virtual TBool IsCacheNeeded();
   226     virtual void AddToCacheL(CCreatorScriptElementCache& aCache);
   226     virtual void AddToCacheL(CCreatorScriptElementCache& aCache);
   227     virtual void AddToCacheL();
   227     virtual void AddToCacheL();
   228     virtual TBool IsCommandElement() const;
   228     virtual TBool IsCommandElement() const;
   229     virtual void ExecuteCommandL();
   229     virtual void ExecuteCommandL();
   230     
       
   231     void AsyncExecuteCommand();
       
   232     //virtual void SaveCommandResultsL();
   230     //virtual void SaveCommandResultsL();
   233     //virtual void DiscardCommandResultsL();
   231     //virtual void DiscardCommandResultsL();
   234     virtual TBool IsRoot() const;
   232     virtual TBool IsRoot() const;
   235     virtual RPointerArray<CCreatorModuleBaseParameters>& CommandParameters();
   233     virtual RPointerArray<CCreatorModuleBaseParameters>& CommandParameters();
   236     virtual const RPointerArray<CCreatorModuleBaseParameters>& CommandParameters() const;
   234     virtual const RPointerArray<CCreatorModuleBaseParameters>& CommandParameters() const;
   237     
       
   238     void AsyncExecuteCommandAndWaitL();
       
   239     
   235     
   240 protected:
   236 protected:
   241 
   237 
   242     /**
   238     /**
   243      * Constructors. 
   239      * Constructors. 
   288      * @param aIncreased on return contains the increased number.
   284      * @param aIncreased on return contains the increased number.
   289      *        The buffer must be allocated by the caller.
   285      *        The buffer must be allocated by the caller.
   290      */
   286      */
   291     void IncreasePhoneNumL( const TDesC& aOriginal, TInt aDelta, HBufC* aIncreased ) const;
   287     void IncreasePhoneNumL( const TDesC& aOriginal, TInt aDelta, HBufC* aIncreased ) const;
   292     
   288     
   293     static TInt ExecuteCommandCB( TAny *aPtr );
       
   294     virtual void AsyncExecuteCommandL();
       
   295     void StartNextLoop();
       
   296     void AsyncCommandFinished();
       
   297 
       
   298 protected:
   289 protected:
   299     
   290     
   300     // Sub-element array
   291     // Sub-element array
   301     RPointerArray<CCreatorScriptElement> iSubElements;
   292     RPointerArray<CCreatorScriptElement> iSubElements;
   302     // Attribute array
   293     // Attribute array
   310     
   301     
   311     TBool iIsCommandElement;
   302     TBool iIsCommandElement;
   312     TBool iIsRoot;
   303     TBool iIsRoot;
   313     CCreatorEngine* iEngine;
   304     CCreatorEngine* iEngine;
   314     RPointerArray<CCreatorModuleBaseParameters> iParameters;
   305     RPointerArray<CCreatorModuleBaseParameters> iParameters;
   315     
       
   316     CAsyncCallBack iAsyncCallback;
       
   317     CActiveSchedulerWait iWaiter;
       
   318     volatile TInt iAsyncOpError;
       
   319     TInt iLoopIndex;
       
   320 };
   306 };
   321 
   307 
   322 /**
   308 /**
   323  * Script element
   309  * Script element
   324  */
   310  */
   343     static CCreatorCalendarElementBase* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
   329     static CCreatorCalendarElementBase* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
   344 protected:
   330 protected:
   345     CCreatorCalendarElementBase(CCreatorEngine* aEngine);
   331     CCreatorCalendarElementBase(CCreatorEngine* aEngine);
   346 };
   332 };
   347 
   333 
       
   334 /**
       
   335  * Message elements
       
   336  */
       
   337 
       
   338 /**
       
   339  * Base class for message elements
       
   340  */
       
   341 class CCreatorMessageElementBase : public CCreatorScriptElement
       
   342 {
       
   343 public:
       
   344     static CCreatorMessageElementBase* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
   345 protected:
       
   346     CCreatorMessageElementBase(CCreatorEngine* aEngine);
       
   347 };
       
   348 
   348 #endif /*CREATORSCRIPTELEMENT_H_*/
   349 #endif /*CREATORSCRIPTELEMENT_H_*/