creator/engine/inc/creator_cmdscriptrun.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 __CREATORCMDSCRIPTRUN_H__
       
    20 #define __CREATORCMDSCRIPTRUN_H__
       
    21 
       
    22 #include "engine.h"
       
    23 
       
    24 class CCreatorCmdScriptRun : public CBase, public MBeating
       
    25     {
       
    26 public:
       
    27 
       
    28     static CCreatorCmdScriptRun* NewL(CCreatorEngine* aEngine);
       
    29 	static CCreatorCmdScriptRun* NewLC(CCreatorEngine* aEngine);
       
    30 	~CCreatorCmdScriptRun();
       
    31 
       
    32     // callback from engine when the commands from the script file have been executed
       
    33     void RunScriptDone();
       
    34 
       
    35     // from MBeating
       
    36     void Beat();
       
    37     void Synchronize();
       
    38 	
       
    39 private:
       
    40     CCreatorCmdScriptRun();
       
    41     void ConstructL(CCreatorEngine* aEngine);
       
    42 	void TickL();
       
    43 	
       
    44 private:
       
    45     CCreatorEngine* iEngine;
       
    46 	HBufC* iCommandLineScriptName;
       
    47 	HBufC* iCommandLineRandomDataFileName;
       
    48 	CHeartbeat* iTimer;
       
    49 	enum TTimerMode
       
    50 		{
       
    51 		ETimerModeNone,
       
    52 		ETimerModeStartScript,
       
    53 		ETimerModeExitAppUi
       
    54 		};
       
    55 	TTimerMode iMode;
       
    56 	TInt iTickCount;
       
    57     };
       
    58 	
       
    59 #endif // __CREATORCMDSCRIPTRUN_H__