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