1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/sipprofileagent.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,79 @@
1.4 +/*
1.5 +* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* Name : sipprofileagent.inl
1.19 +* Part of : sip profile agent
1.20 +* inline functions
1.21 +* Version : 1.0
1.22 +*
1.23 +*/
1.24 +
1.25 +
1.26 +
1.27 +const TUid KSIPProfileAgentInterfaceUid = {0x101F4136};
1.28 +
1.29 +
1.30 +// ============================ MEMBER FUNCTIONS ===============================
1.31 +
1.32 +
1.33 +// Destructor
1.34 +inline CSIPProfileAgent::~CSIPProfileAgent()
1.35 + {
1.36 + REComSession::DestroyedImplementation(iDtor_ID_Key);
1.37 + }
1.38 +
1.39 +// -----------------------------------------------------------------------------
1.40 +// CSIPProfileAgent::CSIPProfileAgent
1.41 +// C++ default constructor can NOT contain any code, that
1.42 +// might leave.
1.43 +// -----------------------------------------------------------------------------
1.44 +//
1.45 +inline CSIPProfileAgent::CSIPProfileAgent()
1.46 + {
1.47 + }
1.48 +
1.49 +// -----------------------------------------------------------------------------
1.50 +// CSIPProfileAgent::NewL
1.51 +// Two-phased constructor.
1.52 +// -----------------------------------------------------------------------------
1.53 +//
1.54 +inline CSIPProfileAgent* CSIPProfileAgent::NewL(
1.55 + const TDesC8& aProfileType,
1.56 + TSIPProfileAgentInitParams& aSIPProfileAgentInitParams)
1.57 +
1.58 + {
1.59 + TEComResolverParams resolverParams;
1.60 + resolverParams.SetDataType(aProfileType);
1.61 + return reinterpret_cast<CSIPProfileAgent*>(
1.62 + REComSession::CreateImplementationL(
1.63 + KSIPProfileAgentInterfaceUid,
1.64 + _FOFF(CSIPProfileAgent,iDtor_ID_Key),
1.65 + &aSIPProfileAgentInitParams,
1.66 + resolverParams));
1.67 + }
1.68 +
1.69 +// -----------------------------------------------------------------------------
1.70 +// CSIPProfileAgent::ListAllImplementationsL
1.71 +// lists all interface implementations
1.72 +// (other items were commented in a header).
1.73 +// -----------------------------------------------------------------------------
1.74 +//
1.75 +
1.76 +inline void CSIPProfileAgent::ListAllImplementationsL(
1.77 + RImplInfoPtrArray& aImplInfoArray)
1.78 + {
1.79 + REComSession::ListImplementationsL(
1.80 + KSIPProfileAgentInterfaceUid,
1.81 + aImplInfoArray);
1.82 + }