|
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" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.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 |