wlanapitest/wlanhaitest/wlan/inc/T_RConnectionData.h
branchRCL_3
changeset 18 d3d7683d16f5
parent 0 c40eb8fe8501
equal deleted inserted replaced
17:a828660c511c 18:d3d7683d16f5
       
     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 
       
    20 
       
    21 #ifndef T_RCONNECTIONDATA_H_
       
    22 #define T_RCONNECTIONDATA_H_
       
    23 
       
    24 //User Includes
       
    25 #include "datawrapperbase.h"
       
    26  
       
    27 //Epoc includes
       
    28 #include <es_sock.h> //RConnection
       
    29 
       
    30 class CT_RConnectionData: public CDataWrapperBase
       
    31 	{
       
    32 	public:
       
    33 	static CT_RConnectionData* NewL();
       
    34 	virtual ~CT_RConnectionData();
       
    35 
       
    36 public:	
       
    37 	virtual TAny* GetObject();
       
    38 	virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);	
       
    39 
       
    40 protected:
       
    41 	CT_RConnectionData();
       
    42 	void ConstructL();
       
    43 
       
    44 private:
       
    45    void DoCmdOpen(const TTEFSectionName& aSection);
       
    46    void DoCmdStart(const TTEFSectionName& aSection);   
       
    47    void DoCmdClose();
       
    48    void Close();
       
    49 
       
    50 private:
       
    51 	/**
       
    52 	 * Wrapped object
       
    53 	 */
       
    54 	RConnection* 			iConnection;
       
    55 	};
       
    56 #endif /*T_RCONNECTIONDATA_H_*/