author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 27 Apr 2010 16:30:29 +0300 | |
branch | RCL_3 |
changeset 14 | 04becd199f91 |
parent 0 | 3fd91c96c86c |
permissions | -rw-r--r-- |
0
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
* Description: javaregistry implementation |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
#include "javaregistry.h" |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
using namespace Java; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
using namespace Java::Manager::Registry; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
// ============================ MEMBER FUNCTIONS ============================== |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
27 |
// CJavaRegistry::NewL |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
28 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
EXPORT_C CJavaRegistry* CJavaRegistry::NewL() |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
User::Leave(KErrNotSupported); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
return NULL; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
34 |
} |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
35 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
// CJavaRegistry::NewLC |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
39 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
40 |
EXPORT_C CJavaRegistry* CJavaRegistry::NewLC() |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
41 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
42 |
User::Leave(KErrNotSupported); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
43 |
return NULL; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
44 |
} |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
45 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
46 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
47 |
// CJavaRegistry::RegistryEntryExistsL |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
48 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
49 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
50 |
EXPORT_C TBool CJavaRegistry::RegistryEntryExistsL(const TUid& /*aUid*/) const |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
51 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
52 |
User::Leave(KErrNotSupported); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
return EFalse; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
54 |
} |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
55 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
57 |
// CJavaRegistry::GetRegistryEntryUidsL |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
58 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
59 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
60 |
EXPORT_C void CJavaRegistry::GetRegistryEntryUidsL(RArray<TUid>& /*aUids*/) const |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
61 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
62 |
User::Leave(KErrNotSupported); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
63 |
} |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
64 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
65 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
66 |
// CJavaRegistry::GetRegistryEntryUidsL |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
67 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
68 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
69 |
EXPORT_C void CJavaRegistry::GetRegistryEntryUidsL |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
70 |
(TJavaRegistryEntryType /*aType*/, RArray<TUid>& /*aUids*/) const |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
71 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
72 |
User::Leave(KErrNotSupported); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
73 |
} |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
74 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
75 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
76 |
// CJavaRegistry::RegistryEntryL |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
77 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
78 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
79 |
EXPORT_C CJavaRegistryEntry* CJavaRegistry:: |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
80 |
RegistryEntryL(const TUid& /*aUid*/) const |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
81 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
82 |
User::Leave(KErrNotSupported); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
83 |
return NULL; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
84 |
} |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
85 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
86 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
87 |
// CJavaRegistry::~CJavaRegistry |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
88 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
89 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
90 |
CJavaRegistry::~CJavaRegistry() |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
91 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
92 |
} |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
93 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
94 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
95 |
// CJavaRegistry::CJavaRegistry |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
96 |
// --------------------------------------------------------------------------- |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
97 |
// |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
98 |
CJavaRegistry::CJavaRegistry() |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
99 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
100 |
} |