diff -r 000000000000 -r 307788aac0a8 sipplugins/sippsipsettingsui/src/sipsettlistsipsrvsetmodel.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sipplugins/sippsipsettingsui/src/sipsettlistsipsrvsetmodel.cpp Tue Feb 02 01:03:15 2010 +0200 @@ -0,0 +1,116 @@ +/* +* Copyright (c) 2005 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: The model of the server setting views +* +*/ + + + +// INCLUDE FILES +#include "sipsettlistsipsrvsetmodel.h" +#include +#include //GUI Resource +#include +#include +#include "gssippluginlogger.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CSIPSettListSIPSrvSetModel::CSIPSettListSIPSrvSetModel +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CSIPSettListSIPSrvSetModel::CSIPSettListSIPSrvSetModel( + TGSSIPServerData& aData, + TSIPProfileTypeInfo::TSIPProfileClass aProfileType, + TBool aLocked ) + : iData( aData ), + iProfileType( aProfileType ), + iLocked( aLocked ) + { + __GSLOGSTRING("CSIPSettListSIPSrvSetModel::CSIPSettListSIPSrvSetModel" ) + } + +// ----------------------------------------------------------------------------- +// CSIPSettListSIPSrvSetModel::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CSIPSettListSIPSrvSetModel::ConstructL() + { + __GSLOGSTRING("CSIPSettListSIPSrvSetModel::ConstructL" ) + } + +// ----------------------------------------------------------------------------- +// CSIPSettListSIPSrvSetModel::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CSIPSettListSIPSrvSetModel* CSIPSettListSIPSrvSetModel::NewL( + TGSSIPServerData& aData, + TSIPProfileTypeInfo::TSIPProfileClass aProfileType, + TBool aLocked ) + { + __GSLOGSTRING("CSIPSettListSIPSrvSetModel::NewL" ) + CSIPSettListSIPSrvSetModel* self = + new ( ELeave ) CSIPSettListSIPSrvSetModel( + aData, aProfileType, aLocked ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + + return self; + } + + +// Destructor +CSIPSettListSIPSrvSetModel::~CSIPSettListSIPSrvSetModel() + { + __GSLOGSTRING("CSIPSettListSIPSrvSetModel::~CSIPSettListSIPSrvSetModel" ) + } + +// ----------------------------------------------------------------------------- +// CSIPSettListSIPSrvSetModel::Settings +// Fetches the settings of the modified server +// ----------------------------------------------------------------------------- +// +TGSSIPServerData* CSIPSettListSIPSrvSetModel::Settings() + { + return &iData; + } + +// ----------------------------------------------------------------------------- +// CGSSettListSIPSrvSetModel::ProfileType +// Returns selected service profile type +// ----------------------------------------------------------------------------- +// +TSIPProfileTypeInfo::TSIPProfileClass CSIPSettListSIPSrvSetModel::ProfileType() + { + return iProfileType; + } + +// ----------------------------------------------------------------------------- +// CGSSettListSIPSrvSetModel::ProfileLocked +// Checks is currently shown profile locked +// ----------------------------------------------------------------------------- +// +TBool CSIPSettListSIPSrvSetModel::ProfileLocked() + { + return iLocked; + } + +// End of File