realtimenetprots/sipfw/ProfileAgent/PluginMgr/Src/SipProfileAgentConfigExtension.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Name          : SipProfileAgentConfigExtension.cpp
       
    15 // Part of       : SIP / SIP Profile Server
       
    16 //
       
    17 
       
    18 #include <sipprofileagentextensionparams.h>
       
    19 #include "SipProfileAgentConfigRetriever.h"
       
    20 
       
    21 // -----------------------------------------------------------------------------
       
    22 // CSipProfileAgentConfigExtension::NewL
       
    23 // -----------------------------------------------------------------------------
       
    24 //
       
    25 CSipProfileAgentConfigExtension* CSipProfileAgentConfigExtension::NewL()
       
    26     {
       
    27     CSipProfileAgentConfigExtension* self = CSipProfileAgentConfigExtension::NewLC();
       
    28     CleanupStack::Pop(self);
       
    29     return self;
       
    30     }
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CSipProfileAgentConfigExtension::NewLC
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 CSipProfileAgentConfigExtension* CSipProfileAgentConfigExtension::NewLC()
       
    37     {
       
    38     CSipProfileAgentConfigExtension* self = new (ELeave) CSipProfileAgentConfigExtension();
       
    39     CleanupStack::PushL(self);
       
    40     self->ConstructL();
       
    41     return self;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CSipProfileAgentConfigExtension::CSipProfileAgentConfigExtension
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 CSipProfileAgentConfigExtension::CSipProfileAgentConfigExtension()
       
    49     {
       
    50     
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CSipProfileAgentConfigExtension::~CSipProfileAgentConfigExtension
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 CSipProfileAgentConfigExtension::~CSipProfileAgentConfigExtension()
       
    58     {
       
    59     delete iConfigRetriever;
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // CSipProfileAgentConfigExtension::ConstructL
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 void CSipProfileAgentConfigExtension::ConstructL()
       
    67     {
       
    68     iConfigRetriever = CSipProfileAgentConfigRetriever::NewL();
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // CSipProfileAgentConfigExtension::ExpiryValueL
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 TUint CSipProfileAgentConfigExtension::ExpiryValueL(TSIPProfileTypeInfo::TSIPProfileClass aClass,TProfileProperty aProperty)
       
    76     {
       
    77     return iConfigRetriever->ExpiryValueL(aClass,aProperty);
       
    78     }