diff -r 6ca72c0fe49a -r a941bc465d9f PECengine/PresenceManager2/SrcReactAuth/CPEngAuthorizationRespond.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PECengine/PresenceManager2/SrcReactAuth/CPEngAuthorizationRespond.cpp Wed Sep 01 12:31:13 2010 +0100 @@ -0,0 +1,125 @@ +/* +* 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: Reactive authorization responds implementation. +* +*/ + +// INCLUDE FILES +#include "CPEngAuthorizationRespond.h" +#include "MPEngAuthorizationManager.h" +#include + + + +// ============================ MEMBER FUNCTIONS =============================== + + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::NewLC +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CPEngAuthorizationRespond* CPEngAuthorizationRespond::NewLC() + { + CPEngAuthorizationRespond* self = new( ELeave ) + CPEngAuthorizationRespond; + + CleanupStack::PushL( self ); + return self; + } + + +// Destructor +CPEngAuthorizationRespond::~CPEngAuthorizationRespond() + { + if ( iAuthManager ) + { + iAuthManager->RemoveAllAuthorizationResponses(); + iAuthManager->Close(); + } + } + + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::CPEngAuthorizationRespond +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CPEngAuthorizationRespond::CPEngAuthorizationRespond() + { + } + + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::Extension() +// ----------------------------------------------------------------------------- +// +MPEngAuthorizationRespondExt* CPEngAuthorizationRespond::Extension() + { + return NULL; + } + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::Extension() +// ----------------------------------------------------------------------------- +// +const MPEngAuthorizationRespondExt* CPEngAuthorizationRespond::Extension() const + { + return NULL; + } + + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::Advanced() +// ----------------------------------------------------------------------------- +// +const MPEngAuthorizationRespondAdvanced* CPEngAuthorizationRespond::Advanced() const + { + return NULL; + } + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::Advanced() +// ----------------------------------------------------------------------------- +// +MPEngAuthorizationRespondAdvanced* CPEngAuthorizationRespond::Advanced() + { + return NULL; + } + + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::Close() +// ----------------------------------------------------------------------------- +// +void CPEngAuthorizationRespond::Close() + { + delete this; + } + + +// ----------------------------------------------------------------------------- +// CPEngAuthorizationRespond::LockRespondToAuthManagerL() +// ----------------------------------------------------------------------------- +// +void CPEngAuthorizationRespond::LockRespondToAuthManagerL( + MPEngAuthorizationManager& aAuthMan ) + { + iAuthManager = &aAuthMan; + } + + + +// End of File