|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Non-closeable app list class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TSFSALWAYSSHOWNAPPLIST_H |
|
20 #define TSFSALWAYSSHOWNAPPLIST_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <apgcli.h> |
|
24 |
|
25 /** |
|
26 * List of always shown applications. |
|
27 */ |
|
28 NONSHARABLE_CLASS( CTsFsAlwaysShownAppList ) : public CBase |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * Two-phased constructor. |
|
33 * |
|
34 * @param aParent |
|
35 */ |
|
36 static CTsFsAlwaysShownAppList* NewL(); |
|
37 |
|
38 /* |
|
39 * Default C++ constructor |
|
40 */ |
|
41 CTsFsAlwaysShownAppList(); |
|
42 |
|
43 /* |
|
44 * Destructor |
|
45 */ |
|
46 ~CTsFsAlwaysShownAppList(); |
|
47 |
|
48 /** |
|
49 * Initializes the list that stores applications that are always |
|
50 * shown in the fast swap provided they have been installed |
|
51 * in the phone rom |
|
52 * @return - |
|
53 */ |
|
54 void InitializeAlwaysShownListL(); |
|
55 |
|
56 /** |
|
57 * If application uid exists in the always shown application list |
|
58 * @return ETrue application uid exists in the list |
|
59 * EFalse application uid doesn't exist in the list |
|
60 * @param TUid aAppUid the application uid |
|
61 */ |
|
62 TBool IsAlwaysShownApp( TUid aAppUid ); |
|
63 |
|
64 /** |
|
65 * Returning reference to iAppList |
|
66 */ |
|
67 RArray<TUid>& AppList() { return iAppList; } |
|
68 |
|
69 private: |
|
70 void ConstructL(); |
|
71 RArray<TUid> iAppList; |
|
72 RApaLsSession iAppArcSession; |
|
73 }; |
|
74 |
|
75 #endif |