epoc32/include/apgnotif.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000 (2010-03-16)
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // 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
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __APGNOTIF_H__
    17 #define __APGNOTIF_H__
    18 
    19 #include <apgcli.h>
    20 
    21 
    22 class MApaAppListServObserver
    23 /**
    24 MApaAppListServObserver
    25 
    26 @publishedPartner
    27 @released
    28 */
    29 	{
    30 public:
    31 	enum TApaAppListEvent
    32 		{
    33 		EAppListChanged=1
    34 		};
    35 	virtual void HandleAppListEvent(TInt aEvent)=0;
    36 protected:
    37 	IMPORT_C MApaAppListServObserver();
    38 private:
    39 	IMPORT_C virtual void MApaAppListServObserver_Reserved1();
    40 	IMPORT_C virtual void MApaAppListServObserver_Reserved2();
    41 private:
    42 	TInt iMApaAppListServObserver_Reserved1;
    43 	};
    44 
    45 
    46 class CApaAppListNotifier : public CActive
    47 /** An application list change notifier. 
    48 
    49 It provides notification whenever an application is added or deleted.
    50 
    51 @publishedPartner
    52 @released */
    53 	{
    54 public:
    55 	IMPORT_C ~CApaAppListNotifier();
    56 	IMPORT_C static CApaAppListNotifier* NewL(MApaAppListServObserver* aObserver, TPriority aPriority);
    57 private: // from CActive
    58 	void DoCancel();
    59 	void RunL();
    60 private:
    61 	CApaAppListNotifier(MApaAppListServObserver& aObserver, TPriority aPriority);
    62 	void ConstructL();
    63 private:
    64 	MApaAppListServObserver& iObserver;
    65 	RApaLsSession iLsSession;
    66 	};
    67 
    68 #endif