author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 09:43:15 +0300 | |
changeset 61 | bf7ee68962da |
parent 1 | 53c80e845d7c |
child 11 | 0fdfe802150c |
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: javaregclient definition |
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 |
|
1
53c80e845d7c
Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
19 |
#ifndef JAVAREGCLIENT_H |
53c80e845d7c
Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
20 |
#define JAVAREGCLIENT_H |
0
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
#include "javaregdef.h" |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
#include "javaregburstates.h" |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
namespace Java |
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 |
namespace Manager |
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 |
namespace Registry |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
{ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
// FORWARD DECLARATIONS |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
class CJavaPropertyArray; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
|
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 |
* RJavaRegSession class makes it possible to access java registry server |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
* services like adding, getting and removing entries. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
* The class implements the client side of java registry |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
* client-server communication. |
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 |
* @since S60 v3.2 |
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 |
class RJavaRegSession : public RSessionBase |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
43 |
{ |
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 |
public: |
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 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
48 |
* Constructor |
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 |
* @since S60 v3.2 |
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 |
RJavaRegSession(); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
|
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 |
* Connects to registry server and sets integrity service's |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
* transaction id. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
57 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
58 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
59 |
* @param aTransactionId transaction id of integrity service |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
60 |
* @param aLegacy legacy flag, must be set to true if |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
61 |
* legacy api wants to use server services |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
62 |
* @return KErrNone if connection was successful or an error code |
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 |
TInt Connect(TInt64 aTransactionId, TBool aLegacy = EFalse); |
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 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
67 |
* Connects to registry server and sets if integrity service |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
68 |
* is required or not to be created in registry. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
69 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
70 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
71 |
* @param aUseIntegrity true if registry should create an |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
72 |
* interior integrity session |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
73 |
* @param aLegacy if true legacy api uses server services |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
74 |
* @return KErrNone if connection was successful or an error code |
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 |
TInt Connect(TBool aUseIntegrity, TBool aLegacy = EFalse); |
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 |
* Checks if an entry with specified uid exist or not |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
80 |
* in the registry. |
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 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
83 |
* @param aUid uid of the entry to be checked if exists |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
84 |
* @return true if the entry exists and false if not |
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 |
TBool EntryExistsL(TUid aUid) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
87 |
|
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 |
* Gets uids of entries stored in registry. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
90 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
91 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
92 |
* @param[out] aUids reference to an array where stored uids |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
93 |
* are returned |
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 |
void GetEntryUidsL(RArray<TUid>& aUids) const; |
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 |
* Gets uids of entries stored in registry and belonging to |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
99 |
* the given drive. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
100 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
101 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
102 |
* @param[out] aUids reference to an array where stored uids |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
103 |
* are returned |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
104 |
* @param aDrive drive whose entry uids must be returned |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
105 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
106 |
void GetEntryUidsL(RArray<TUid>& aUids, TInt aDrive) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
107 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
108 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
109 |
* Gets the entry belonging to the given uid. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
110 |
* The entry is represented as a set of properties. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
111 |
* If no entry found for the given uid aProperties is null else |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
112 |
* it is allocated a new CJavaPropertyArray object containing the read |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
113 |
* entry. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
114 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
115 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
116 |
* @param aUid the uid of entry we are interested in |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
117 |
* @param[out] aProperties entry is read in this parameter |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
118 |
* @param aAllEntries decision if we want to read entry from not |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
119 |
* presented MMC |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
120 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
121 |
void GetEntryL(TUid aUid, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
122 |
CJavaPropertyArray*& aProperties, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
123 |
TBool aAllEntries = EFalse) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
124 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
125 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
126 |
* Adds a new entry or updates an existent one with the given uid. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
127 |
* The entry is represented as a set of properties. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
128 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
129 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
130 |
* @param aUid the uid of the entry to be added or updated |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
131 |
* @param aProperties the entry to be added or updated |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
132 |
* @param aDrive the drive to which the set entry belongs |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
133 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
134 |
void SetEntryL(TUid aUid, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
135 |
const CJavaPropertyArray& aProperties, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
136 |
TInt aDrive) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
137 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
138 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
139 |
* Returns a set of uids whose entries contains the properties (and |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
140 |
* has the same values) given in the aProperties parameter. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
141 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
142 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
143 |
* @param aProperties the set of properties which must exists |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
144 |
* (and must have the same values) in the looked entries |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
145 |
* @param[out] aUids uids of the found entries are returned |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
146 |
* in this parameter |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
147 |
* @param aAllEntries means, that method give all entries including |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
148 |
* entries, which regards with midlets stored in not presented |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
149 |
* media. EFalse means entries with regarding not presented |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
150 |
* media will not return. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
151 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
152 |
void FindEntriesL(const CJavaPropertyArray& aProperties, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
153 |
RArray<TUid>& aUids, TBool aAllEntries = EFalse) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
154 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
155 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
156 |
* Removes the entry belonging to the given uid. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
157 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
158 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
159 |
* @param aUid uid of entry which must be deleted |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
160 |
* @param aAllEntries means, that method give all entries including |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
161 |
* entries, which regards with midlets stored in not presented |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
162 |
* media. EFalse means entries with regarding not presented |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
163 |
* media will not return. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
164 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
165 |
void RemoveEntryL(TUid aUid, TBool aAllEntries = EFalse) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
166 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
167 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
168 |
* Allocates a range of new uids. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
169 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
170 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
171 |
* @param[out] aUids array reference where the allocated uids |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
172 |
* will be returned |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
173 |
* @param aUidCount number of uids to be allocated |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
174 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
175 |
void AllocateUidsL(RArray<TUid>& aUids, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
176 |
TInt aUidCount = 1) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
177 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
178 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
179 |
* Sets the backup state of registry. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
180 |
* If the registry is in backing up or restoring state |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
181 |
* the client requests will not be executed. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
182 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
183 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
184 |
* @param aBackupState the requested backup state |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
185 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
186 |
void SetBackupStateL(TBackupState aBackupState) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
187 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
188 |
private: |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
189 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
190 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
191 |
* Initializes server with integrity service transaction id |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
192 |
* and the legacy api flag. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
193 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
194 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
195 |
* @param aTransactionId integrity service transaction id |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
196 |
* @param aLegacy legacy flag, must be set to true if |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
197 |
* legacy api wants to use server services |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
198 |
* @return KErrNone if no error or the appropriate error code |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
199 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
200 |
TInt InitializeServer(TInt64 aTransactionId, TBool aLegacy) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
201 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
202 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
203 |
* Initializes server with use integrity session flag, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
204 |
* and the legacy api flag. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
205 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
206 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
207 |
* @param aUseIntegrity true if registry should create an interior |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
208 |
* integrity session |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
209 |
* @param aLegacy legacy flag, must be set to true if |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
210 |
* legacy api wants to use server services |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
211 |
* @return KErrNone if no error or the appropriate error code |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
212 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
213 |
TInt InitializeServer(TBool aUseIntegrity, TBool aLegacy) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
214 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
215 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
216 |
* Sends to server a message containing the function id and the |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
217 |
* arguments given in TIpcArgs argument. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
218 |
* The first and second arguments of TIpcArgs are reserved. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
219 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
220 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
221 |
* @param aFunction funtion id |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
222 |
* @param[out] aBuffer the received buffer is returned |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
223 |
* in this parameter |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
224 |
* @param aArgs arguments to be sent for server, first and second |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
225 |
* argument must be left empty |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
226 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
227 |
void GetBuffer8FromServerL(TInt aFunction, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
228 |
HBufC8*& aBuffer, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
229 |
TIpcArgs& aArgs) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
230 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
231 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
232 |
* Sends to server a message containing the function id and the |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
233 |
* arguments given in TIpcArgs argument. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
234 |
* The first and second arguments of TIpcArgs are reserved. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
235 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
236 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
237 |
* @param aFunction funtion id |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
238 |
* @param[out] aBuffer the received buffer is returned |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
239 |
* in this parameter |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
240 |
* @param aArgs arguments to be sent for server, first and second |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
241 |
* argument must be left empty |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
242 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
243 |
void GetBuffer16FromServerL(TInt aFunction, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
244 |
HBufC16*& aBuffer, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
245 |
TIpcArgs& aArgs) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
246 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
247 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
248 |
* Sends to server a message containing the function id and the |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
249 |
* arguments given in TIpcArgs argument. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
250 |
* The first and second arguments of TIpcArgs are reserved. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
251 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
252 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
253 |
* @param aFunction funtion id |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
254 |
* @param[out] aBuffer the received buffer is returned |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
255 |
* in this parameter |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
256 |
* @param aArgs arguments to be sent for server, first and second |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
257 |
* argument must be left empty |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
258 |
* @param a8BitDesc if true a 8 bit descriptor must be allocated |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
259 |
* in other case a 16 bit descriptor must be allocated |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
260 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
261 |
void GetBufferFromServerL(TInt aFunction, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
262 |
TAny** aBuffer, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
263 |
TIpcArgs& aArgs, |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
264 |
TBool a8BitDesc) const; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
265 |
/** |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
266 |
* Connects to server. |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
267 |
* |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
268 |
* @since S60 v3.2 |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
269 |
* @return KErrNone if connection was successful or an error code |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
270 |
*/ |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
271 |
TInt Connect(); |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
272 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
273 |
private: |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
274 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
275 |
}; |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
276 |
|
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
277 |
}//namespace Registry |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
278 |
}//namespace Manager |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
279 |
}//namespace Java |
3fd91c96c86c
Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
280 |
|
1
53c80e845d7c
Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
281 |
#endif // JAVAREGCLIENT_H |