epoc32/include/apgnotif.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/apgnotif.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,68 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __APGNOTIF_H__
    1.20 +#define __APGNOTIF_H__
    1.21 +
    1.22 +#include <apgcli.h>
    1.23 +
    1.24 +
    1.25 +class MApaAppListServObserver
    1.26 +/**
    1.27 +MApaAppListServObserver
    1.28 +
    1.29 +@publishedPartner
    1.30 +@released
    1.31 +*/
    1.32 +	{
    1.33 +public:
    1.34 +	enum TApaAppListEvent
    1.35 +		{
    1.36 +		EAppListChanged=1
    1.37 +		};
    1.38 +	virtual void HandleAppListEvent(TInt aEvent)=0;
    1.39 +protected:
    1.40 +	IMPORT_C MApaAppListServObserver();
    1.41 +private:
    1.42 +	IMPORT_C virtual void MApaAppListServObserver_Reserved1();
    1.43 +	IMPORT_C virtual void MApaAppListServObserver_Reserved2();
    1.44 +private:
    1.45 +	TInt iMApaAppListServObserver_Reserved1;
    1.46 +	};
    1.47 +
    1.48 +
    1.49 +class CApaAppListNotifier : public CActive
    1.50 +/** An application list change notifier. 
    1.51 +
    1.52 +It provides notification whenever an application is added or deleted.
    1.53 +
    1.54 +@publishedPartner
    1.55 +@released */
    1.56 +	{
    1.57 +public:
    1.58 +	IMPORT_C ~CApaAppListNotifier();
    1.59 +	IMPORT_C static CApaAppListNotifier* NewL(MApaAppListServObserver* aObserver, TPriority aPriority);
    1.60 +private: // from CActive
    1.61 +	void DoCancel();
    1.62 +	void RunL();
    1.63 +private:
    1.64 +	CApaAppListNotifier(MApaAppListServObserver& aObserver, TPriority aPriority);
    1.65 +	void ConstructL();
    1.66 +private:
    1.67 +	MApaAppListServObserver& iObserver;
    1.68 +	RApaLsSession iLsSession;
    1.69 +	};
    1.70 +
    1.71 +#endif