messagingfw/msgtestfw/TestActions/Mms/inc/CMtfTestActionCreateMmsMessageFromSmilFile.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 /**
       
     2 * Copyright (c) 2003-2009 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 
       
    20 /**
       
    21  @file
       
    22 */
       
    23 
       
    24 
       
    25 #ifndef __CMTF_TEST_ACTION_CREATE_MMS_MESSAGE_FROM_SMIL_FILE_H__
       
    26 #define __CMTF_TEST_ACTION_CREATE_MMS_MESSAGE_FROM_SMIL_FILE_H__
       
    27 
       
    28 
       
    29 #include "CMtfTestAction.h"
       
    30 #include "CMtfTestActionUtilsConfigFileParser.h"
       
    31 
       
    32 #include <f32file.h>
       
    33 #include <GmXmlParser.h>
       
    34 #include <SmilDtd.h>
       
    35 
       
    36 
       
    37 _LIT(KTestActionCreateMmsMessageFromSmilFile,"CreateMmsMessageFromSmilFile");
       
    38 
       
    39 
       
    40 class XmlParserObserver : public MMDXMLParserObserver
       
    41 	{
       
    42 public:
       
    43 	XmlParserObserver(TRequestStatus* aStatus) {iStatus = aStatus;}
       
    44 	virtual ~XmlParserObserver() {};
       
    45 	void ParseFileCompleteL() {User::RequestComplete(iStatus,KErrNone);}
       
    46 
       
    47 private:
       
    48 	TRequestStatus* iStatus;
       
    49 	};
       
    50 
       
    51 
       
    52 class CMtfTestActionCreateMmsMessageFromSmilFile : public CMtfTestAction
       
    53 	{
       
    54 public:
       
    55 	static CMtfTestAction* NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* ActionParameters);
       
    56 	virtual ~CMtfTestActionCreateMmsMessageFromSmilFile(); 
       
    57 
       
    58 public:
       
    59 	virtual void ExecuteActionL();
       
    60 
       
    61 protected:
       
    62 	void DoCancel();
       
    63 	void RunL();
       
    64 
       
    65 private:
       
    66 	CMtfTestActionCreateMmsMessageFromSmilFile(CMtfTestCase& aTestCase);
       
    67 
       
    68 private:
       
    69 	RFs iFs;
       
    70 	CSMILDtd* iSmilDtd; 
       
    71 	XmlParserObserver* iParserObserver;	
       
    72 	CMDXMLParser* iXmlParser;	
       
    73 	CMtfTestActionUtilsConfigFileParser* iConfigParser;
       
    74 	};
       
    75 
       
    76 
       
    77 #endif