cellularsrvapitest/telephonyhaitest/etelmm/inc/T_RMmCustomAPIData.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /*
       
     2 * Copyright (c) 2005-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 #ifndef T_RMMCUSTOMAPI_DATA_H
       
    20 #define T_RMMCUSTOMAPI_DATA_H
       
    21 
       
    22 #include "datawrapperbase.h"
       
    23 
       
    24 // CBase
       
    25 #include <e32base.h>
       
    26 // TDesC
       
    27 #include <e32cmn.h>
       
    28 // For ETel API.
       
    29 #include <etel.h>
       
    30 #include <etelmm.h>
       
    31 #include <rmmcustomapi.h>
       
    32 
       
    33 class CT_RMmCustomApiData : public CDataWrapperBase
       
    34 	{
       
    35 public:
       
    36 	~CT_RMmCustomApiData();
       
    37 	static	CT_RMmCustomApiData* NewL();
       
    38 
       
    39 	virtual TAny*	GetObject();
       
    40 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    41 
       
    42 protected:
       
    43 	CT_RMmCustomApiData();
       
    44 	void	ConstructL();
       
    45 
       
    46 private:
       
    47 	void RunL(CActive* aActive, TInt aIndex); 
       
    48 	
       
    49 	void DoCmdGetCurrentSystemNetworkModes(const TInt aAsyncErrorIndex);
       
    50 	void DoCmdUtilityModeCheck(const TTEFSectionName& aSection);
       
    51 	void DoCmdSetSystemNetworkMode(const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    52 
       
    53 	void DoCmdOpen(const TTEFSectionName& aSection);
       
    54 	void DoCmdClose();
       
    55 
       
    56 	TUint32 GetPhoneNetworkMode();
       
    57 	TBool CheckNetworkMode(TInt aNetworkMode);
       
    58 	
       
    59 private:
       
    60 	CActiveCallback* 	iActiveCallback;
       
    61 	TUint32 iNetworkMode;
       
    62 
       
    63 	/**
       
    64 	 * Access to functionality assosiated with a specific mobile line.
       
    65 	 */
       
    66 	RMmCustomAPI *iCustomPhone; //Wrapped object
       
    67 	
       
    68 	static const TEnumEntryTable iEnumTestCaseMode[];
       
    69 
       
    70 	};
       
    71 
       
    72 #endif // T_RMMCUSTOMAPI_DATA_H
       
    73 	
       
    74