XDMSettingsUI/inc/SettingsData.h
branchGCC_SURGE
changeset 28 d9861ae9169c
parent 23 77cb48a03620
parent 26 04ca1926b01c
equal deleted inserted replaced
23:77cb48a03620 28:d9861ae9169c
     1 /*
       
     2 * Copyright (c) 2005-2007 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:    XDM GS plugin data holding class for XDM setting list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __SettingsData_H__
       
    22 #define __SettingsData_H__
       
    23 
       
    24 // INCLUDE FILES
       
    25 #include <e32base.h>
       
    26 #include <in_sock.h>
       
    27 
       
    28 #include "XDMPlugin.hrh"
       
    29 
       
    30 
       
    31 /**
       
    32 *  CSettingsData data holding class for an XDM set
       
    33 */
       
    34 class CSettingsData : public CBase
       
    35     {
       
    36     public:
       
    37 
       
    38         /**
       
    39         * Default 1st phase factory method.
       
    40         * Creates an instance of CSettingsData
       
    41         */
       
    42       static CSettingsData* NewL();
       
    43       
       
    44         /**
       
    45         * Default 1st phase factory method.
       
    46         * Creates an instance of CSettingsData, leaves it on stack
       
    47         */
       
    48         static CSettingsData* NewLC();
       
    49         
       
    50         /**
       
    51         * Destructor
       
    52         */
       
    53       virtual ~CSettingsData();
       
    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       CSettingsData();
       
    71       
       
    72     public:
       
    73         
       
    74         // Buffer holding the XDM set name
       
    75       TBuf<KMaxSettingSetNameLength>  iSettingName;
       
    76 
       
    77       // Buffer holding the XDM set name with localized digits for display
       
    78       TBuf<KMaxSettingSetNameLength>  iSettingNameDisp;
       
    79 
       
    80         // Buffer holding the XDM set server address
       
    81       TBuf<KMaxServerAddressLength>   iServerAddress;
       
    82       
       
    83       // Access point number
       
    84       TInt32                          iAccessPoint;
       
    85       
       
    86       // Buffer holding the access point number as a descriptor
       
    87       TBuf<KMaxAccessPointDesLength>  iAccessPointDes;
       
    88       
       
    89       // Buffer holding the SIP URL
       
    90       TBuf<KMaxSIPURLLength>          iSipURL;
       
    91 
       
    92         // Buffer holding the User ID
       
    93       TBuf<KMaxUserIDLength>          iUserID;
       
    94       
       
    95       // Buffer holding the password
       
    96       TBuf<KMaxPasswordLength>        iPassword;
       
    97       
       
    98       // Buffer holding the access point name
       
    99       TBuf<KMaxAccessPointNameLength> iAccessPointName;
       
   100       
       
   101       // XDM setting, settings id, used to identify in XDM settings API
       
   102       TInt32                          iSettingId;
       
   103     };
       
   104 
       
   105 #endif // __SettingsData_H__