remotestoragefw/gsplugin/src/rsfwgssettingsdata.cpp
branchRCL_3
changeset 19 88ee4cf65e19
parent 16 87c71b25c937
child 20 1aa8c82cb4cb
equal deleted inserted replaced
16:87c71b25c937 19:88ee4cf65e19
     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:  Rsfw GS plugin data holding class for Rsfw setting list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "rsfwgssettingsdata.h"
       
    21 
       
    22 _LIT(KDefaultAddress, "https://");
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CRsfwGsSettingsData::NewL
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 CRsfwGsSettingsData *CRsfwGsSettingsData::NewL()
       
    29     {
       
    30     CRsfwGsSettingsData *self = CRsfwGsSettingsData::NewLC();
       
    31     CleanupStack::Pop(self);
       
    32     return self;
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CRsfwGsSettingsData::NewLC()
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 CRsfwGsSettingsData *CRsfwGsSettingsData::NewLC()
       
    40     {
       
    41     CRsfwGsSettingsData *self = new (ELeave) CRsfwGsSettingsData();
       
    42     CleanupStack::PushL(self);
       
    43 
       
    44     self->ConstructL();
       
    45 
       
    46     return self;
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CRsfwGsSettingsData::~CRsfwGsSettingsData()
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 CRsfwGsSettingsData::~CRsfwGsSettingsData()
       
    54     {
       
    55     }
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // CRsfwGsSettingsData::CRsfwGsSettingsData()
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 CRsfwGsSettingsData::CRsfwGsSettingsData()
       
    62     {
       
    63     // initialise local data
       
    64     Reset();
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // CRsfwGsSettingsData::ConstructL() 
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 void CRsfwGsSettingsData::ConstructL() 
       
    72     {
       
    73     iURL = KNullDesC;
       
    74     iURL.Copy(KDefaultAddress);
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CRsfwGsSettingsData::Reset()
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 void CRsfwGsSettingsData::Reset()
       
    82     {
       
    83     iSettingName = KNullDesC;
       
    84     iAccessPoint = KErrNotFound;
       
    85     iAccessPointDes = KNullDesC;
       
    86     iURL = KNullDesC;
       
    87     iURL.Copy(KDefaultAddress);
       
    88     iUserID= KNullDesC;
       
    89     iPassword = KNullDesC;
       
    90     iAccessPointName = KNullDesC; 
       
    91     iInActivityTimeout.Num(KDefaultInactivityTimeout);
       
    92     iDriveLetter = 0;
       
    93     }
       
    94 
       
    95 //  End of File
       
    96