1 /* |
|
2 * Copyright (c) 2010 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 the License "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 * SCR Repository definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef SCRREPOSITORY_H |
|
27 #define SCRREPOSITORY_H |
|
28 |
|
29 #include <centralrepository.h> |
|
30 |
|
31 namespace Usif { |
|
32 |
|
33 /** The UID of the SCR repository. */ |
|
34 const TUid KUidScrServerRepository = {0x10285bc0}; //271080384 |
|
35 |
|
36 /** The key for the AppUid range count. */ |
|
37 const TUint KScrAppUidRangeCount = {0x00000000}; |
|
38 |
|
39 /** The key for the AppUid ranges. */ |
|
40 const TUint KScrAppUidRanges = {0x00000100}; |
|
41 |
|
42 /** Singleton class controlling access to the repository. */ |
|
43 class CScrRepository : public CBase |
|
44 { |
|
45 public: |
|
46 |
|
47 static CScrRepository* GetRepositoryInstanceL(); |
|
48 |
|
49 TInt AppUidRangeCountL(); |
|
50 |
|
51 void GetAppUidRangeL(TInt aNum, TUid& aRangeBegin, TUid& aRangeEnd); |
|
52 |
|
53 static void DeleteRepositoryInstance(); |
|
54 |
|
55 private: |
|
56 static void ConstructL(); |
|
57 ~CScrRepository(); |
|
58 |
|
59 private: |
|
60 static CScrRepository* iInstance; |
|
61 static CRepository* iRepository; |
|
62 static bool iInstanceFlag; |
|
63 }; |
|
64 } |
|
65 |
|
66 #endif /* SCRREPOSITORY_H */ |
|