authenticationservices/authenticationserver/source/server/pluginobserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Sat, 20 Feb 2010 00:36:18 +0200
branchRCL_3
changeset 43 9b5a3a9fddf8
parent 19 ece3df019add
permissions -rw-r--r--
Revision: 201007 Kit: 201007

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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: 
*
*/


/**
 @file 
 @internalComponent
*/
  
#ifndef PLUGINOBSERVER_H
#define PLUGINOBSERVER_H

#include <e32cmn.h>
#include <ecom/ecom.h>

namespace AuthServer
{
class CPluginMgr;

class CPluginObserver : public CActive
	{
public:

	static CPluginObserver* NewLC(CPluginMgr& aPluginMgr);
	static CPluginObserver* NewL(CPluginMgr& aPluginMgr);
	virtual ~CPluginObserver();	
	
private:

	// From CActive, used for dynamically updating the list of authentication plugins.
	virtual void DoCancel();
	virtual void RunL();
	TInt RunError(TInt aError);
	
	CPluginObserver(CPluginMgr& aPluginMgr);
	void ConstructL();

private:
	
	REComSession* iEcomSession;
	CPluginMgr& iPluginMgr;
	};
	
}	//namespace

#endif