1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
|
14 // apsnnapps.h |
14 // |
15 // |
15 |
16 |
16 #ifndef APSNNAPPS_H |
17 #ifndef APSNNAPPS_H |
17 #define APSNNAPPS_H |
18 #define APSNNAPPS_H |
18 |
19 |
19 #include <e32base.h> |
20 #include <e32base.h> |
20 #include <f32file.h> |
21 #include <f32file.h> |
21 #include <s32file.h> |
22 #include <s32file.h> |
|
23 #include <badesca.h> // typedef CDesCArray |
22 |
24 |
23 #include "apsnnappupdates.h" |
25 #include "apsnnappupdates.h" |
24 |
26 |
25 // classes referenced |
27 // classes referenced |
26 class CApaAppListServer; |
28 class CApaAppArcServer; |
27 class CApsNonNativeApplicationsUpdateList; |
29 class CApsNonNativeApplicationsUpdateList; |
28 |
30 |
29 _LIT(KLitPathForTemporaryNonNativeResourceAndIconFiles, "\\private\\10003a3f\\temp\\NonNativeUpdates\\"); |
31 _LIT(KLitPathForTemporaryNonNativeResourceAndIconFiles, "\\private\\10003a3f\\temp\\NonNativeUpdates\\"); |
30 |
32 |
31 /** |
33 /** |
32 @internalComponent |
34 @internalComponent |
33 */ |
35 */ |
34 NONSHARABLE_CLASS(CApsNonNativeApplicationsManager) : public CBase |
36 NONSHARABLE_CLASS(CApsNonNativeApplicationsManager) : public CBase |
35 { |
37 { |
36 public: |
38 public: |
37 static CApsNonNativeApplicationsManager* NewL(CApaAppListServer& aServ, RFs& aFs); |
39 static CApsNonNativeApplicationsManager* NewL(CApaAppArcServer& aServ, RFs& aFs); |
38 ~CApsNonNativeApplicationsManager(); |
40 ~CApsNonNativeApplicationsManager(); |
39 |
41 |
40 private: |
42 private: |
41 CApsNonNativeApplicationsManager(CApaAppListServer& aServ, RFs& aFs); |
43 CApsNonNativeApplicationsManager(CApaAppArcServer& aServ, RFs& aFs); |
42 |
44 |
43 public: |
45 public: |
44 void NotifyScanComplete(); |
46 void NotifyScanComplete(); |
45 void PrepareNonNativeApplicationsUpdatesL(); |
47 void PrepareNonNativeApplicationsUpdatesL(); |
46 void RegisterNonNativeApplicationL(const RMessage2& aMessage); |
48 void RegisterNonNativeApplicationL(const RMessage2& aMessage); |
59 void AbortNonNativeApplicationsUpdates(); |
61 void AbortNonNativeApplicationsUpdates(); |
60 static void StaticAbortNonNativeApplicationsUpdates(TAny* aSelf); |
62 static void StaticAbortNonNativeApplicationsUpdates(TAny* aSelf); |
61 void CheckForUpdateAppsLockL(); |
63 void CheckForUpdateAppsLockL(); |
62 |
64 |
63 private: |
65 private: |
64 CApaAppListServer& iServ; |
66 CApaAppArcServer& iServ; |
65 RFs& iFs; |
67 RFs& iFs; |
66 RMessage2 iNotifyOnScanCompleteMsg; |
68 RMessage2 iNotifyOnScanCompleteMsg; |
67 TBool iNonNativeApplicationsUpdateAppsLock; |
69 TBool iNonNativeApplicationsUpdateAppsLock; |
68 CApsNonNativeApplicationsUpdateList* iUpdateList; |
70 CApsNonNativeApplicationsUpdateList* iUpdateList; |
69 }; |
71 }; |
201 public: |
203 public: |
202 RApsUpdateLog(RFs& aFs); |
204 RApsUpdateLog(RFs& aFs); |
203 void OpenL(); |
205 void OpenL(); |
204 void Open(RFile& aFile, TUint aSeekPos); |
206 void Open(RFile& aFile, TUint aSeekPos); |
205 void Close(); |
207 void Close(); |
206 RPointerArray<HBufC>& NewRegistrationFiles(); |
208 CDesCArray& NewRegistrationFiles(); |
207 RPointerArray<HBufC>& DrivesAffected(); |
209 CDesCArray& DrivesAffected(); |
208 RWriteStream& LogWriteStream(); |
210 RWriteStream& LogWriteStream(); |
209 private: |
211 private: |
210 RFs& iFs; |
212 RFs& iFs; |
211 // RPointerArray neccessary for use with CApaAppRegFinder |
213 CDesCArray* iFilesRegistered; |
212 RPointerArray<HBufC> iFilesRegistered; |
214 CDesCArray* iDrivesAffected; |
213 RPointerArray<HBufC> iDrivesAffected; |
|
214 RFileWriteStream iLogWriteStream; |
215 RFileWriteStream iLogWriteStream; |
215 TFileName iLogFileName; |
216 TFileName iLogFileName; |
216 }; |
217 }; |
217 |
218 |
218 #endif // APSNNAPPS_H |
219 #endif // APSNNAPPS_H |