messagingappbase/smilparser/SMILdtd/tinc/t_ScriptRunner.h
changeset 31 ebfee66fde93
parent 0 72b543305e3a
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Parsing and Processing of script commands, to test the
       
    15 // SMIL DOM classes.
       
    16 // 
       
    17 //
       
    18 
       
    19 
       
    20 #ifndef __T_SCRIPTRUNNER_H
       
    21 #define __T_SCRIPTRUNNER_H
       
    22 
       
    23 #include "t_TestScript.h"
       
    24 #include "t_LogFileWriter.h"
       
    25 #include <badesca.h>
       
    26 #include <MDXMLSMIL.h>  // The SMIL DOM classes we are testing
       
    27 
       
    28 // Enum used to choose an element-specific Id operation.
       
    29 typedef enum
       
    30 	{
       
    31 	KIdSetOp,
       
    32 	KIdGetOp,
       
    33 	KIdRemoveOp
       
    34 	} TIdOp;
       
    35 
       
    36 //
       
    37 //
       
    38 // CScriptRunner
       
    39 //
       
    40 
       
    41 class CScriptRunner : public CBase
       
    42 	{
       
    43 public:
       
    44 	static CScriptRunner* NewL();
       
    45 	~CScriptRunner();
       
    46 
       
    47 	void ParseL(const TDesC& aCommand);
       
    48 
       
    49 private:
       
    50 	CScriptRunner();
       
    51 	void ConstructL();
       
    52 
       
    53 	void ProcessL();
       
    54 	void IdAttTestL( TIdOp aOp );
       
    55 
       
    56 private:
       
    57 	HBufC*				iCurrentCommand;
       
    58 	CDesCArrayFlat*		iArgumentList;
       
    59 	CTestDataWriter*	iWriter;
       
    60 	CMDXMLElement*		iCurrentElement; // Just a pointer, nothing is owned
       
    61 	CMDXMLSMILDocument*	iDOMtreeRoot;
       
    62 	};
       
    63 
       
    64 
       
    65 #endif