dbgagents/trkagent/app/s60/TrkSettingsData.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 /*
       
     2 * Copyright (c) 2005 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 __TrkSettingsData_h__
       
    20 #define __TrkSettingsData_h__
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "trksrvclisession.h"
       
    26 #include "TrkConnData.h"
       
    27 
       
    28 /**
       
    29 * CTrkSettingsData 
       
    30 */
       
    31 class CTrkSettingsData : public CBase
       
    32 {
       
    33     public:
       
    34         static CTrkSettingsData* NewL(RTrkSrvCliSession& aTrkSession);
       
    35         ~CTrkSettingsData();
       
    36         TInt SaveSettings();
       
    37 
       
    38     private:
       
    39         CTrkSettingsData(RTrkSrvCliSession& aTrkSession);
       
    40         void ConstructL();
       
    41 		TInt GetIndexForBaudRate(TUint aRate);
       
    42 		TUint GetBaudRateForIndex(TInt aIndex);
       
    43     public:       	
       
    44     	TInt 	  iConnTypeIndex;
       
    45     	TInt      iPortNumber;
       
    46     	TInt	  iBaudRateIndex;
       
    47     	TInt      iPlugAndPlay;
       
    48     	TInt      iPlugAndPlayType;
       
    49     	
       
    50     	TTrkConnData iTrkConnData;
       
    51     
       
    52     private:
       
    53         RTrkSrvCliSession& iTrkSession;
       
    54 };
       
    55 
       
    56 
       
    57 #endif //__TrkSettingsData_h__
       
    58 
       
    59 // End of File