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