remotestoragefw/gsplugin/inc/rsfwgssettingsdata.h
branchRCL_3
changeset 20 1aa8c82cb4cb
parent 0 3ad9d5175a89
equal deleted inserted replaced
19:88ee4cf65e19 20:1aa8c82cb4cb
       
     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 #ifndef CRSFWGSSETTINGSDATA_H
       
    20 #define CRSFWGSSETTINGSDATA_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "rsfwgsplugin.hrh"
       
    26 
       
    27 
       
    28 // CONSTANTS
       
    29 const TInt KDefaultInactivityTimeout        = 600; // 5min
       
    30 
       
    31 /**
       
    32 *  CRsfwGsSettingsData holds single remote drive configuration
       
    33 */
       
    34 class CRsfwGsSettingsData : public CBase
       
    35     {
       
    36     public:
       
    37 
       
    38         /**
       
    39         * Default 1st phase factory method.
       
    40         * Creates an instance of CRsfwGsSettingsData
       
    41         */
       
    42       static CRsfwGsSettingsData* NewL();
       
    43       
       
    44         /**
       
    45         * Default 1st phase factory method.
       
    46         * Creates an instance of CRsfwGsSettingsData, leaves it on stack
       
    47         */
       
    48         static CRsfwGsSettingsData* NewLC();
       
    49         
       
    50         /**
       
    51         * Destructor
       
    52         */
       
    53       virtual ~CRsfwGsSettingsData();
       
    54       
       
    55         /**
       
    56         * Resets all data to initial values
       
    57         */
       
    58       void Reset();
       
    59       
       
    60     private:
       
    61 
       
    62         /**
       
    63         * 2nd Phase constructor
       
    64         */
       
    65       void ConstructL();
       
    66       
       
    67         /**
       
    68         * C++ Constructor
       
    69         */
       
    70       CRsfwGsSettingsData();
       
    71       
       
    72     public:
       
    73         
       
    74       // Buffer holding the remote drive friendly name
       
    75       TBuf<KMaxFriendlyNameLength>  iSettingName;
       
    76 
       
    77       // Access point number
       
    78       TInt32                          iAccessPoint;
       
    79       
       
    80       // Buffer holding the access point number as a descriptor
       
    81       TBuf<KMaxAccessPointDesLength>  iAccessPointDes;
       
    82       
       
    83       // Buffer holding the URL
       
    84       TBuf<KMaxURLLength>          iURL;
       
    85 
       
    86         // Buffer holding the User ID
       
    87       TBuf<KMaxUserIDLength>          iUserID;
       
    88       
       
    89       // Buffer holding the password
       
    90       TBuf<KMaxPasswordLength>        iPassword;
       
    91       
       
    92       // Buffer holding the access point name
       
    93       TBuf<KMaxAccessPointNameLength> iAccessPointName;
       
    94       
       
    95       // Inactivity timeout
       
    96       TBuf<KMaxInactivityTimeoutString> iInActivityTimeout;
       
    97       
       
    98       // drive letter
       
    99       TChar iDriveLetter;
       
   100     };
       
   101 
       
   102 #endif // CRSFWGSSETTINGSDATA_H