cellularsrvapitest/datatransferhaitest/esock/inc/T_RConnectionData.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 #ifndef T_RCONNECTIONDATA_H
       
    20 #define T_RCONNECTIONDATA_H
       
    21 
       
    22 #include "DataWrapperBase.h"
       
    23 
       
    24 #include <es_sock.h>
       
    25 #include <commdbconnpref.h>
       
    26 #include <commdb.h>
       
    27 #include <mmlist.h>
       
    28 #include <mmretrieve.h>
       
    29 
       
    30 class CT_RConnectionData: public CDataWrapperBase
       
    31 	{
       
    32 public:
       
    33 	static CT_RConnectionData* NewL();
       
    34 	virtual ~CT_RConnectionData();
       
    35 
       
    36 	void RunL(CActive* aActive, TInt aIndex);
       
    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 DoCmdOpenL(const TTEFSectionName& aSection);
       
    46 	void DoCmdStart(const TTEFSectionName& aSection);
       
    47 	void DoCmdStop();
       
    48 	void DoCmdClose();
       
    49 	void DoCmdSelectOutgoingIAPL(const TTEFSectionName& aSection);
       
    50 
       
    51 private:
       
    52 	TCommDbConnPref* CT_RConnectionData::SelectOutgoingIAPL(const TDesC& aIAPName);
       
    53    
       
    54 private:
       
    55 	RConnection* 		iConnection;
       
    56 	CActiveCallback*	iActiveCallback;
       
    57 	/**
       
    58 	 * Connection preferences to setup the data connection with
       
    59 	 * RConnection class.
       
    60 	 */
       
    61 	TCommDbConnPref*	iCommDbConnPref;
       
    62 	/**
       
    63 	 * IAP ID for used IAP.
       
    64 	 */
       
    65 	TUint32				iIAP;
       
    66 	};
       
    67 	
       
    68 #endif // T_RCONNECTIONDATA_H
       
    69 
       
    70