wlanapitest/wlanhaitest/wlan/inc/T_RSocketServData.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 #ifndef T_RSOCKETSERVDATA_H_
       
    21 #define T_RSOCKETSERVDATA_H_
       
    22 
       
    23 //User Includes
       
    24 #include "datawrapperbase.h"
       
    25 
       
    26 //Epoc includes
       
    27 #include <es_sock.h> // RSocketServ, RConnection
       
    28 
       
    29 class CT_RSocketServData: public CDataWrapperBase
       
    30 	{
       
    31 public:
       
    32 	static CT_RSocketServData* NewL();
       
    33 	virtual ~CT_RSocketServData();
       
    34 
       
    35 public:	
       
    36 	virtual TAny* GetObject();
       
    37 	virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);		
       
    38 	void SetIapID(TUint32 );
       
    39 	TUint32 GetIapID(){return iIapID;}
       
    40 
       
    41 protected:
       
    42 	CT_RSocketServData();
       
    43 	void ConstructL();
       
    44 
       
    45 private:
       
    46 	void DoCmdSetOutgoingIap(const TTEFSectionName& aSection);
       
    47 	void DoCmdConnect();
       
    48 	void DoCmdClose();
       
    49 	void Close();
       
    50 	
       
    51 private:
       
    52 	/**
       
    53 	 * Wrapped object
       
    54 	 */
       
    55 	RSocketServ*	iSocketServ;
       
    56 	/**
       
    57 	 * Flag to review RSocketServ is in Connected state
       
    58 	 */
       
    59 	TBool			iSocketServConnected;
       
    60 	/**
       
    61 	 * Store de ID of the IAP
       
    62 	 */
       
    63 	TUint32			iIapID;
       
    64 	
       
    65 	};
       
    66 #endif /*T_RSOCKETSERVDATA_H_*/