bluetoothapitest/bluetoothsvs/T_BTSdpAPI/inc/T_DataSdpAttrValueUUID.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     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_DATA_SDP_ATTR_VALUE_UUID_H__ )
       
    20 #define __T_DATA_SDP_ATTR_VALUE_UUID_H__
       
    21 
       
    22 #include "T_DataSdpAttrValue.h"
       
    23 
       
    24 
       
    25 /**
       
    26  * Test Active Notification class
       
    27  *
       
    28  */
       
    29 class CT_DataSdpAttrValueUUID : public CT_DataSdpAttrValue
       
    30 	{
       
    31 public:
       
    32 	/**
       
    33 	* Two phase constructor
       
    34 	*/
       
    35 	static CT_DataSdpAttrValueUUID*	NewL();
       
    36 
       
    37 	/**
       
    38 	* Public destructor
       
    39 	*/
       
    40 	~CT_DataSdpAttrValueUUID();
       
    41 
       
    42 	/**
       
    43 	* Process a command read from the ini file
       
    44 	*
       
    45 	* @param aCommand			The command to process
       
    46 	* @param aSection			The section in the ini containing data for the command
       
    47 	* @param aAsyncErrorIndex	Command index for async calls to return errors to
       
    48 	*
       
    49 	* @return					ETrue if the command is processed
       
    50 	*
       
    51 	* @leave					System wide error
       
    52 	*/
       
    53 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    54 
       
    55 	/**
       
    56 	* Return a pointer to the object that the data wraps
       
    57 	*
       
    58 	* @return	pointer to the object that the data wraps
       
    59 	*/
       
    60 	virtual TAny*	GetObject()	{ return iAttrValUUID; }
       
    61 
       
    62 	/**
       
    63 	* Set the object that the data wraps
       
    64 	*
       
    65 	* @param	aObject object that the wrapper is testing
       
    66 	*
       
    67 	*/
       
    68 	virtual void	SetObjectL(TAny* aAny);
       
    69 
       
    70 	/**
       
    71 	* The object will no longer be owned by this
       
    72 	*
       
    73 	* @leave	KErrNotSupported if the the function is not supported
       
    74 	*/
       
    75 	virtual void	DisownObjectL();
       
    76 
       
    77 	inline virtual TCleanupOperation CleanupOperation();
       
    78 
       
    79 protected:
       
    80 	/**
       
    81 	* Protected constructor. First phase construction
       
    82 	*/
       
    83 	CT_DataSdpAttrValueUUID();
       
    84 
       
    85 	/**
       
    86 	* Second phase construction
       
    87 	*/
       
    88 	void	ConstructL();
       
    89 	virtual CSdpAttrValue*	GetSdpAttrValue() const;
       
    90 
       
    91 private:
       
    92 	void			DestroyData();
       
    93 	inline 	void	DoCmdNewUUIDL(const TDesC& aSection);
       
    94 	inline 	void	DoCmdDes(const TDesC& aSection);
       
    95 	inline	void	DoCmdDestructor();
       
    96 	
       
    97 	static void CleanupOperation(TAny* aAny);
       
    98 
       
    99 private:
       
   100 
       
   101 	CSdpAttrValueUUID*          iAttrValUUID;
       
   102 	};
       
   103 
       
   104 #endif /* __T_DATA_SDP_ATTR_VALUE_UUID_H__*/