os/boardsupport/haitest/bspsvs/suite/e32/inc/T_TCommCapsV02Data.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 #if (!defined __T_TCOMM_CAPS_V02_DATA_H__)
    20 #define __T_TCOMM_CAPS_V02_DATA_H__
    21 
    22 //	User Includes
    23 #include "T_TCommCapsV01Data.h"
    24 
    25 /**
    26  * Test Active Notification class
    27  *
    28  */
    29 class CT_TCommCapsV02Data : public CT_TCommCapsV01Data
    30 	{
    31 public:
    32 	CT_TCommCapsV02Data();
    33 	~CT_TCommCapsV02Data();
    34 
    35 	//	CT_TCommCapsV01Data implementation
    36 	virtual TDes8*	Descriptor();
    37 
    38 	virtual TAny*	GetObject();
    39 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    40 
    41 protected:
    42 	//	CT_TCommCapsV01Data implementation
    43 	virtual TCommCapsV01&		GetCommCapsV01();
    44 
    45 	virtual TCommCapsV02&		GetCommCapsV02();
    46 
    47 private:
    48 	void	DestroyData();
    49 
    50 	TBool 	ReadFlowControlCaps(const TDesC& aSection, const TDesC& aKeyName, TUint& aFlowControlCaps);
    51 	TBool 	ReadNotificationCaps(const TDesC& aSection, const TDesC& aKeyName, TUint& aNotificationCaps);
    52 	TBool 	ReadRoleCaps(const TDesC& aSection, const TDesC& aKeyName, TUint& aRoleCaps);
    53 
    54 	TInt	DoCmdConstructor();
    55 	void	DoCmdDestructor();
    56 	void	DoCmdiFlowControlCaps(const TDesC& aSection);
    57 	void	DoCmdiNotificationCaps(const TDesC& aSection);
    58 	void	DoCmdiRoleCaps(const TDesC& aSection);
    59 
    60 private:
    61 	TCommCaps2*	iCommCaps2;
    62 	static const TEnumEntryTable	iEnumTableFlowControlCaps[];
    63 	static const TEnumEntryTable	iEnumTableNotificationCaps[];
    64 	static const TEnumEntryTable	iEnumTableRoleCaps[];
    65 	};
    66 
    67 #endif /* __T_TCOMM_CAPS_V02_DATA_H__ */