iptel_plat/richcallsettingsengine_api/inc/crcsesccpentry.h
changeset 0 a4daefaec16c
equal deleted inserted replaced
-1:000000000000 0:a4daefaec16c
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Single SCCP entry, which is stored to RCSE
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CRCSEPSCCPENTRY_H
       
    21 #define CRCSEPSCCPENTRY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <badesca.h>
       
    26 
       
    27 #include <crcseprofileentry.h>
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // OMA Provisioning Content 1.1 defines the minimum lengths of
       
    32 // these constants. These constants are doubled.
       
    33 
       
    34 const TInt KMaxSCCPStackNameLength = 16;
       
    35 
       
    36 const TInt KMaxTFTPServerAddressLength = 64;
       
    37 
       
    38 const TInt KMaxCallManagerAddressLength = 64;
       
    39 
       
    40 const TInt KMaxSCCPNumberLength = 64;
       
    41 
       
    42 const TInt KMaxSCCPCertificatesNameLength = 128;
       
    43 
       
    44 const TInt KMaxMusicServerAddressLength = 128;
       
    45 
       
    46 const TInt KMaxCFUncondAddLength = 64;
       
    47 
       
    48 const TInt KMaxArray = 5;
       
    49 
       
    50 const TInt KMaxSCCPProfileNameLength = 64;
       
    51 
       
    52 const TInt KMaxSCCPVoiceMailboxLength = 128;
       
    53 
       
    54 const TInt KMaxSCCPIntCallPrefixLength = 20;
       
    55 
       
    56 // CLASS DECLARATION
       
    57 
       
    58 /**
       
    59 *  SCCP setting entry, which is stored to RCSE.
       
    60 *
       
    61 *  @lib RCSE.lib
       
    62 *  @since S60 3.0
       
    63 */
       
    64 class CRCSESCCPEntry : public CBase
       
    65     {
       
    66     public: // Enums
       
    67 
       
    68     enum TOnOff
       
    69         {
       
    70         EOONotSet = KNotSet,
       
    71         EOff = 0,
       
    72         EOn = 1
       
    73         };
       
    74     
       
    75     enum TManualAutomatic
       
    76         {
       
    77         EManual = 0,
       
    78         EAutomatic = 1    
       
    79         };
       
    80 
       
    81     public:  // Constructors and destructor
       
    82         
       
    83         /**
       
    84         * Two-phased constructor.
       
    85         */
       
    86         IMPORT_C static CRCSESCCPEntry* NewL();
       
    87 
       
    88         /**
       
    89         * Two-phased constructor.
       
    90         */
       
    91         IMPORT_C static CRCSESCCPEntry* NewLC();
       
    92 
       
    93         /**
       
    94         * Destructor.
       
    95         */
       
    96         IMPORT_C virtual ~CRCSESCCPEntry();
       
    97         
       
    98     public: // New methods
       
    99                     
       
   100         /**
       
   101         * Resets entry to default values.
       
   102         * @since S60 3.0
       
   103         */
       
   104         void ResetDefaultValues();
       
   105 
       
   106     private:
       
   107 
       
   108         /**
       
   109         * C++ default constructor.
       
   110         * Initialises values to ENotSet.
       
   111         */
       
   112         CRCSESCCPEntry();
       
   113         
       
   114     public:     // Data        
       
   115     
       
   116         // Identifier of profile. This values is set by CRCSESCCPSetting, when
       
   117         // profile entry is got from CRCSESCCPSetting.
       
   118         TUint32 iSCCPSettingId;
       
   119 
       
   120         // SCCP Profile name
       
   121         TBuf<KMaxSCCPProfileNameLength> iProfileName;
       
   122     
       
   123         // Voip login.
       
   124         TManualAutomatic iVOIPLogin;
       
   125         
       
   126         // ID of the access used access point.
       
   127         TInt32    iAccessPoint;
       
   128 
       
   129         // Array of call manager addresses(0-5).        
       
   130         TBuf<100> iCallManager[KMaxArray];
       
   131                 
       
   132         // SCCP stack version.
       
   133         TBuf<KMaxSCCPStackNameLength> iStackVersion; 
       
   134         
       
   135         // Usage of TFTP server and DHCP services.
       
   136         TOnOff iDHCPTFTPEnabled;
       
   137         
       
   138         // TFTP server address.
       
   139         TBuf<KMaxTFTPServerAddressLength> iTFTPServerAddress;
       
   140         
       
   141         // SCCP profile phone number.
       
   142         TBuf<KMaxSCCPNumberLength> iPhoneNumber;
       
   143         
       
   144         // List of SCCP certificates.
       
   145         TBuf<KMaxSCCPCertificatesNameLength> iSCCPCertificates;
       
   146         
       
   147         // Music server address.
       
   148         TBuf<KMaxMusicServerAddressLength> iMusicServerAdd;
       
   149         
       
   150         // CFUncond address.
       
   151         TBuf<KMaxCFUncondAddLength> iCFUncondAdd;
       
   152 
       
   153         // SCCP Voice Mailbox address
       
   154         TBuf<KMaxSCCPVoiceMailboxLength> iVoiceMailBoxURI;
       
   155 
       
   156         // SCCP International call  prefix
       
   157         TBuf<KMaxSCCPIntCallPrefixLength> iSCCPIntCallPrefix;
       
   158     };
       
   159 
       
   160 #endif      // CRCSESCCPENTRY_H   
       
   161             
       
   162 // End of File