localisation/apparchitecture/inc/apgnotif.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/localisation/apparchitecture/inc/apgnotif.h	Thu Jan 21 12:53:44 2010 +0000
@@ -0,0 +1,68 @@
+// Copyright (c) 1997-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 "Symbian Foundation License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#ifndef __APGNOTIF_H__
+#define __APGNOTIF_H__
+
+#include <apgcli.h>
+
+
+class MApaAppListServObserver
+/**
+MApaAppListServObserver
+
+@publishedPartner
+@released
+*/
+	{
+public:
+	enum TApaAppListEvent
+		{
+		EAppListChanged=1
+		};
+	virtual void HandleAppListEvent(TInt aEvent)=0;
+protected:
+	IMPORT_C MApaAppListServObserver();
+private:
+	IMPORT_C virtual void MApaAppListServObserver_Reserved1();
+	IMPORT_C virtual void MApaAppListServObserver_Reserved2();
+private:
+	TInt iMApaAppListServObserver_Reserved1;
+	};
+
+
+class CApaAppListNotifier : public CActive
+/** An application list change notifier. 
+
+It provides notification whenever an application is added or deleted.
+
+@publishedPartner
+@released */
+	{
+public:
+	IMPORT_C ~CApaAppListNotifier();
+	IMPORT_C static CApaAppListNotifier* NewL(MApaAppListServObserver* aObserver, TPriority aPriority);
+private: // from CActive
+	void DoCancel();
+	void RunL();
+private:
+	CApaAppListNotifier(MApaAppListServObserver& aObserver, TPriority aPriority);
+	void ConstructL();
+private:
+	MApaAppListServObserver& iObserver;
+	RApaLsSession iLsSession;
+	};
+
+#endif