equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _INSTALLATIONFAILEDAPPSCACHE_H |
|
20 #define _INSTALLATIONFAILEDAPPSCACHE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32cmn.h> |
|
24 |
|
25 // It is assumed there is only ever ONE instance of this class |
|
26 class CInstallationFailedAppsCache : public CBase |
|
27 { |
|
28 public: |
|
29 |
|
30 static CInstallationFailedAppsCache *NewL(); |
|
31 |
|
32 ~CInstallationFailedAppsCache(); |
|
33 |
|
34 /** |
|
35 * Read the cache from disk |
|
36 */ |
|
37 void InitFromCacheFileL(); |
|
38 |
|
39 /** |
|
40 * Add new UID to cache. |
|
41 */ |
|
42 void AddPackageUID( TUid aUid ); |
|
43 |
|
44 /** |
|
45 * Check if given UID is found in cache. |
|
46 */ |
|
47 TBool HasPreviousInstallationFailed( TUid aUid ); |
|
48 |
|
49 /** |
|
50 * Flush cache to disk. Create new file if file not found. |
|
51 */ |
|
52 void FlushToDiskL(); |
|
53 |
|
54 private: |
|
55 |
|
56 CInstallationFailedAppsCache(); |
|
57 |
|
58 void ConstructL(); |
|
59 |
|
60 private: |
|
61 |
|
62 RArray<TUid> iUidsArray; // Array containing UIDs |
|
63 RFs iFs; |
|
64 TBool iNewUID; // Defines if new UID is added to array. |
|
65 }; |
|
66 |
|
67 #endif |