authenticationservices/authenticationserver/source/server/pluginobserver.h
changeset 29 ece3df019add
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/authenticationservices/authenticationserver/source/server/pluginobserver.h	Tue Nov 24 09:06:03 2009 +0200
@@ -0,0 +1,60 @@
+/*
+* 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