richcallsettingsengine/rcse2/src/stubs/s_crcsesccpentry.cpp
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:  SCCP Setting entry, which is stored to db
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "crcsesccpentry.h"
       
    22 #include "rcsedefaults.h"
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CRCSESCCPEntry::NewL
       
    29 // Two-phased constructor.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C CRCSESCCPEntry* CRCSESCCPEntry::NewL()
       
    33     {
       
    34     CRCSESCCPEntry* self = NewLC();
       
    35     CleanupStack::Pop( self );
       
    36     return self;
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CRCSESCCPEntry::NewLC
       
    41 // Two-phased constructor.
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 EXPORT_C CRCSESCCPEntry* CRCSESCCPEntry::NewLC()
       
    45     {
       
    46     CRCSESCCPEntry* self = new (ELeave) CRCSESCCPEntry();
       
    47     CleanupStack::PushL( self );
       
    48     self->ResetDefaultValues();
       
    49     return self;
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CRCSESCCPEntry::CRCSESCCPEntry
       
    54 // C++ default constructor can NOT contain any code, that
       
    55 // might leave.
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 CRCSESCCPEntry::CRCSESCCPEntry()
       
    59     {
       
    60     }
       
    61     
       
    62 // Destructor
       
    63 EXPORT_C CRCSESCCPEntry::~CRCSESCCPEntry()
       
    64     {
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // CRCSESCCPEntry::ResetDefaultValues
       
    69 // Resets profile entry to default settings.
       
    70 // (other items were commented in a header).
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 void CRCSESCCPEntry::ResetDefaultValues()
       
    74     {
       
    75     iSCCPSettingId        = 0;
       
    76     iProfileName          = KRCSEDefaultSCCPProfileName;
       
    77     iVOIPLogin            = KRCSEDefaultVOIPLogin;
       
    78     iAccessPoint          = KNotSet;      
       
    79     
       
    80     // Reset iCallManager.
       
    81     for ( TInt i = 0; i < KMaxArray; i++ )
       
    82         {
       
    83         iCallManager[ i ] = KNullDesC;
       
    84         }
       
    85 
       
    86     iStackVersion         = KRCSEDefaultSCCPStack;
       
    87     iDHCPTFTPEnabled      = KRCSEDefaultDHCPTFTP;
       
    88     iTFTPServerAddress    = KRCSEDefaultTFTPAddress;
       
    89     iPhoneNumber          = KRCSEDefaultSCCPNumber;
       
    90     iSCCPCertificates     = KRCSEDefaultSCCPCertificates;
       
    91     iMusicServerAdd       = KRCSEDefaultMusicServerAdd;
       
    92     iCFUncondAdd          = KRCSEDefaultCFUncondAdd;
       
    93     iVoiceMailBoxURI      = KRCSEDefaultSCCPVoiceMailboxName;
       
    94     iSCCPIntCallPrefix    = KRCSEDefaultSCCPIntCallPrefix;
       
    95     }
       
    96 
       
    97 //  End of File