nettools/conntest/src/SettingData.cpp
changeset 0 857a3e953887
equal deleted inserted replaced
-1:000000000000 0:857a3e953887
       
     1 /*
       
     2 * Copyright (c) 2006-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: CSettingsData stores the settings for ConnTest
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include <eikenv.h>
       
    20 #include "SettingData.h"
       
    21 
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =========================================
       
    24 // ----------------------------------------------------------------------------
       
    25 // CSettingData::NewL()
       
    26 // Two-phase constructor
       
    27 // ----------------------------------------------------------------------------
       
    28 //
       
    29 CSettingData* CSettingData::NewL()
       
    30     {
       
    31     CSettingData* data = new(ELeave) CSettingData;
       
    32     CleanupStack::PushL(data);
       
    33     data->ConstructL();
       
    34     CleanupStack::Pop(data); // data
       
    35     return data;
       
    36     }
       
    37 
       
    38 // ----------------------------------------------------------------------------
       
    39 // CSettingData::~CSettingData()
       
    40 // Destructor
       
    41 // ----------------------------------------------------------------------------
       
    42 //
       
    43 CSettingData::~CSettingData()
       
    44     {
       
    45     }
       
    46 
       
    47 // ----------------------------------------------------------------------------
       
    48 // CSettingData::CSettingData()
       
    49 // Constructor
       
    50 // ----------------------------------------------------------------------------
       
    51 //
       
    52 CSettingData::CSettingData()
       
    53     {
       
    54     }
       
    55 
       
    56 // ----------------------------------------------------------------------------
       
    57 // CSettingData::CSettingData()
       
    58 // Epoc default constructor
       
    59 // ----------------------------------------------------------------------------
       
    60 //
       
    61 void CSettingData::ConstructL()
       
    62     {
       
    63     //CEikonEnv* env = CEikonEnv::Static();
       
    64 
       
    65     // Default data
       
    66     iServerName.Copy(_L("www.google.com"));
       
    67     iPort = 80;
       
    68     iPacketSize = 5;
       
    69     iPackets = 1;
       
    70     iDelay = 500;
       
    71     iProtocol = 0;
       
    72     iRoaming = 1;
       
    73     iHttpPage.Copy(_L("index.html"));
       
    74     }
       
    75 
       
    76 // End of File