authenticationservices/authenticationserver/source/server/pluginobserver.h
author hgs
Tue, 25 May 2010 00:47:47 +0530
changeset 65 970c0057d9bc
parent 19 ece3df019add
permissions -rw-r--r--
201019_03

/*
* 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