1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2010 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 "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". |
53 TCentRepFileType aFileType); |
53 TCentRepFileType aFileType); |
54 static void CreateRepositoryFileNameL(HBufC*& aFullFileName, |
54 static void CreateRepositoryFileNameL(HBufC*& aFullFileName, |
55 TUid aUid, |
55 TUid aUid, |
56 TCentRepLocation aLocation, |
56 TCentRepLocation aLocation, |
57 TCentRepFileType aFileType); |
57 TCentRepFileType aFileType); |
58 |
58 #ifdef SYMBIAN_INCLUDE_APP_CENTRIC |
|
59 static TInt CompareUids (const TUid& aUid1, const TUid& aUid2); |
|
60 #endif |
59 static TBool CentrepFileExistsL(TUid aUid, TCentRepLocation aLocation, TCentRepFileType aType); |
61 static TBool CentrepFileExistsL(TUid aUid, TCentRepLocation aLocation, TCentRepFileType aType); |
60 static TBool CentrepFileExistsL(TUid aUid, TCentRepLocation aLocation); |
62 static TBool CentrepFileExistsL(TUid aUid, TCentRepLocation aLocation); |
61 static TTime CentrepFileTimeStampL(TUid aUid, TCentRepLocation aLocation); |
63 static TTime CentrepFileTimeStampL(TUid aUid, TCentRepLocation aLocation); |
62 static TBool RomFileExistsL(TUid aUid); |
64 static TBool RomFileExistsL(TUid aUid); |
63 static TBool InstallFileExistsL(TUid aUid); |
65 static TBool InstallFileExistsL(TUid aUid); |
66 static TInt GetTextFromFile(const TDesC& aFilename,TDes8& aValue); |
68 static TInt GetTextFromFile(const TDesC& aFilename,TDes8& aValue); |
67 #endif |
69 #endif |
68 static void DeleteCentrepFileL(TUid aUid, TCentRepLocation aLocation, TCentRepFileType aType); |
70 static void DeleteCentrepFileL(TUid aUid, TCentRepLocation aLocation, TCentRepFileType aType); |
69 public: |
71 public: |
70 static RFs iFs; |
72 static RFs iFs; |
71 |
73 #ifdef SYMBIAN_INCLUDE_APP_CENTRIC |
|
74 static HBufC* iPmaDirectory; |
|
75 #endif |
72 static HBufC* iRomDirectory; |
76 static HBufC* iRomDirectory; |
73 static HBufC* iDataDirectory; |
77 static HBufC* iDataDirectory; |
74 static HBufC* iInstallDirectory; |
78 static HBufC* iInstallDirectory; |
75 static HBufC* iBURDirectory; |
79 static HBufC* iBURDirectory; |
76 static HBufC* iIniExt; |
80 static HBufC* iIniExt; |
77 static HBufC* iCreExt; |
81 static HBufC* iCreExt; |
78 static HBufC* iTrnsExt; |
82 static HBufC* iTrnsExt; |
79 static TUint8 iPersistsVersion; |
83 static TUint8 iPersistsVersion; |
80 |
84 #ifdef SYMBIAN_INCLUDE_APP_CENTRIC |
|
85 static RArray<TUid> iPMADriveRepositories; |
|
86 #endif |
81 static RArray<TOwnerIdMapping> iOwnerIdLookUpTable; |
87 static RArray<TOwnerIdMapping> iOwnerIdLookUpTable; |
82 |
88 |
83 static CRepositoryCacheManager* iCacheManager; |
89 static CRepositoryCacheManager* iCacheManager; |
84 static CObservable* iObserver; |
90 static CObservable* iObserver; |
85 #ifdef __CENTREP_SERVER_PERFTEST__ |
91 #ifdef __CENTREP_SERVER_PERFTEST__ |