richcallsettingsengine/rcse2/src/stubs/s_crcsesccpentry.cpp
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:29:57 +0100
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  SCCP Setting entry, which is stored to db
*
*/



// INCLUDE FILES
#include "crcsesccpentry.h"
#include "rcsedefaults.h"


// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CRCSESCCPEntry::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
EXPORT_C CRCSESCCPEntry* CRCSESCCPEntry::NewL()
    {
    CRCSESCCPEntry* self = NewLC();
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CRCSESCCPEntry::NewLC
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
EXPORT_C CRCSESCCPEntry* CRCSESCCPEntry::NewLC()
    {
    CRCSESCCPEntry* self = new (ELeave) CRCSESCCPEntry();
    CleanupStack::PushL( self );
    self->ResetDefaultValues();
    return self;
    }

// -----------------------------------------------------------------------------
// CRCSESCCPEntry::CRCSESCCPEntry
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
CRCSESCCPEntry::CRCSESCCPEntry()
    {
    }
    
// Destructor
EXPORT_C CRCSESCCPEntry::~CRCSESCCPEntry()
    {
    }

// -----------------------------------------------------------------------------
// CRCSESCCPEntry::ResetDefaultValues
// Resets profile entry to default settings.
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void CRCSESCCPEntry::ResetDefaultValues()
    {
    iSCCPSettingId        = 0;
    iProfileName          = KRCSEDefaultSCCPProfileName;
    iVOIPLogin            = KRCSEDefaultVOIPLogin;
    iAccessPoint          = KNotSet;      
    
    // Reset iCallManager.
    for ( TInt i = 0; i < KMaxArray; i++ )
        {
        iCallManager[ i ] = KNullDesC;
        }

    iStackVersion         = KRCSEDefaultSCCPStack;
    iDHCPTFTPEnabled      = KRCSEDefaultDHCPTFTP;
    iTFTPServerAddress    = KRCSEDefaultTFTPAddress;
    iPhoneNumber          = KRCSEDefaultSCCPNumber;
    iSCCPCertificates     = KRCSEDefaultSCCPCertificates;
    iMusicServerAdd       = KRCSEDefaultMusicServerAdd;
    iCFUncondAdd          = KRCSEDefaultCFUncondAdd;
    iVoiceMailBoxURI      = KRCSEDefaultSCCPVoiceMailboxName;
    iSCCPIntCallPrefix    = KRCSEDefaultSCCPIntCallPrefix;
    }

//  End of File