williamr@2
|
1 |
// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@4
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@4
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
#ifndef BTMANCLIENT_H
|
williamr@2
|
17 |
#define BTMANCLIENT_H
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#include <e32std.h>
|
williamr@2
|
20 |
#include <e32base.h>
|
williamr@2
|
21 |
#include <btdevice.h>
|
williamr@2
|
22 |
|
williamr@2
|
23 |
static const TInt KErrBluetoothRegistryCorrupt = -6501;
|
williamr@2
|
24 |
|
williamr@2
|
25 |
/** The type of device class search to perform.
|
williamr@2
|
26 |
|
williamr@2
|
27 |
The enumeration is of masks. Valid combinations are:
|
williamr@2
|
28 |
|
williamr@2
|
29 |
EMajorDevice only
|
williamr@2
|
30 |
EMajorDevice & EMinorDevice
|
williamr@2
|
31 |
|
williamr@2
|
32 |
Note: EMinorDevice may not be used on its own.
|
williamr@2
|
33 |
@publishedAll
|
williamr@2
|
34 |
@released
|
williamr@2
|
35 |
*/
|
williamr@2
|
36 |
enum TBTDeviceClassSearch
|
williamr@2
|
37 |
{
|
williamr@2
|
38 |
EMajorDevice = 0x01,/*!< Indicates the major device class search criteria. */
|
williamr@2
|
39 |
EMinorDevice = 0x02,/*!< Indicates the minor device class search criteria. */
|
williamr@2
|
40 |
};
|
williamr@2
|
41 |
|
williamr@2
|
42 |
|
williamr@2
|
43 |
NONSHARABLE_CLASS(TBTRegistrySearch)
|
williamr@2
|
44 |
/** Set search criteria on the Bluetooth Registry.
|
williamr@2
|
45 |
|
williamr@2
|
46 |
The search logic is "AND", so if device bonded is set, and code set to
|
williamr@2
|
47 |
headsets the search results contain all the bonded headsets in the registry.
|
williamr@2
|
48 |
|
williamr@2
|
49 |
Other things can be added to the search criteria e.g. recently used headsets
|
williamr@2
|
50 |
can easil be found by adding in the LastUsed criterion.
|
williamr@2
|
51 |
@publishedAll
|
williamr@2
|
52 |
@released
|
williamr@2
|
53 |
*/
|
williamr@2
|
54 |
{
|
williamr@2
|
55 |
friend class RBTDbQuery;
|
williamr@2
|
56 |
public:
|
williamr@2
|
57 |
IMPORT_C TBTRegistrySearch();
|
williamr@2
|
58 |
IMPORT_C TBTRegistrySearch(const TBTRegistrySearch& aSearch);
|
williamr@2
|
59 |
IMPORT_C void Reset();
|
williamr@2
|
60 |
IMPORT_C void FindAll();
|
williamr@2
|
61 |
IMPORT_C void FindAddress(const TBTDevAddr& aAddress);
|
williamr@2
|
62 |
IMPORT_C void FindBonded();
|
williamr@2
|
63 |
IMPORT_C void FindTrusted();
|
williamr@2
|
64 |
IMPORT_C void FindCoD(const TBTDeviceClass& aClass);
|
williamr@2
|
65 |
IMPORT_C void FindCoD(const TBTDeviceClass& aClass, TBTDeviceClassSearch aPref);
|
williamr@2
|
66 |
IMPORT_C void FindSinceSeen(const TTime& aLastSeen);
|
williamr@2
|
67 |
IMPORT_C void FindSinceUsed(const TTime& aLastUsed);
|
williamr@2
|
68 |
IMPORT_C void FindBluetoothName(const TDesC8& aName);
|
williamr@2
|
69 |
IMPORT_C void FindFriendlyName(const TDesC& aName);
|
williamr@2
|
70 |
IMPORT_C void FindCurrentProcessOwned();
|
williamr@2
|
71 |
IMPORT_C void FindUiCookie(TUint32 aUiCookie);
|
williamr@2
|
72 |
IMPORT_C void FindUiCookie(TUint32 aUiCookie, TUint32 aUiCookieMask);
|
williamr@2
|
73 |
IMPORT_C TBTRegistrySearch& operator=(const TBTRegistrySearch& aSearch);
|
williamr@2
|
74 |
private:
|
williamr@2
|
75 |
enum TSearchMask
|
williamr@2
|
76 |
{
|
williamr@2
|
77 |
EAddress = 0x0001,
|
williamr@2
|
78 |
EBonded = 0x0002,
|
williamr@2
|
79 |
ETrusted = 0x0004,
|
williamr@2
|
80 |
ECoD = 0x0008,
|
williamr@2
|
81 |
ECoDMajorDev = 0x0010,
|
williamr@2
|
82 |
ECoDMinorDev = 0x0020,
|
williamr@2
|
83 |
ECoDService = 0x0040, // not used at present
|
williamr@2
|
84 |
ELastSeen = 0x0080,
|
williamr@2
|
85 |
ELastUsed = 0x0100,
|
williamr@2
|
86 |
EBTName = 0x0200,
|
williamr@2
|
87 |
EFriendlyName = 0x0400,
|
williamr@2
|
88 |
EUiCookie = 0x2000,
|
williamr@2
|
89 |
EProcess = 0x4000,
|
williamr@2
|
90 |
EAll = 0x8000,
|
williamr@2
|
91 |
// Top bit reserved for if the class needs to be extended.
|
williamr@2
|
92 |
EExtension = 0x80000000
|
williamr@2
|
93 |
};
|
williamr@2
|
94 |
private:
|
williamr@2
|
95 |
TUint iSearchMask; // what we actually have set to search on
|
williamr@2
|
96 |
TBTDevAddr iDeviceAddress;
|
williamr@2
|
97 |
TBTDeviceClass iDeviceClass;
|
williamr@2
|
98 |
TTime iLastSeen;
|
williamr@2
|
99 |
TTime iLastUsed;
|
williamr@2
|
100 |
TPtrC8 iBluetoothName;
|
williamr@2
|
101 |
TPtrC iFriendlyName;
|
williamr@2
|
102 |
TUid iCurrentProcessSID;
|
williamr@2
|
103 |
TUint32 iUiCookie;
|
williamr@2
|
104 |
TUint32 iUiCookieMask;
|
williamr@2
|
105 |
|
williamr@2
|
106 |
//TUint32 iPadding1; // used for UI Cookie
|
williamr@2
|
107 |
//TUint32 iPadding2; // used for UI Cookie mask.
|
williamr@2
|
108 |
};
|
williamr@2
|
109 |
|
williamr@2
|
110 |
|
williamr@2
|
111 |
NONSHARABLE_CLASS(RBTMan) : public RSessionBase
|
williamr@2
|
112 |
/** Creates a sessions over which the Bluetooth security manager is accessible.
|
williamr@2
|
113 |
|
williamr@2
|
114 |
A session must be used in order to access a subsession, RBTManSubSession,
|
williamr@2
|
115 |
that allows access to the Security Manager. The following example creates and
|
williamr@2
|
116 |
connects to the security manager session.
|
williamr@2
|
117 |
|
williamr@2
|
118 |
@code
|
williamr@2
|
119 |
RBTMan secMan;
|
williamr@2
|
120 |
User::LeaveIfError(secMan.Connect());
|
williamr@2
|
121 |
@endcode
|
williamr@2
|
122 |
|
williamr@2
|
123 |
Sessions available thus far are Registry-like
|
williamr@2
|
124 |
@publishedAll
|
williamr@2
|
125 |
@released
|
williamr@2
|
126 |
*/
|
williamr@2
|
127 |
{
|
williamr@2
|
128 |
public:
|
williamr@2
|
129 |
IMPORT_C RBTMan();
|
williamr@2
|
130 |
IMPORT_C TInt Connect();
|
williamr@2
|
131 |
IMPORT_C TVersion Version() const;
|
williamr@2
|
132 |
|
williamr@2
|
133 |
private:
|
williamr@2
|
134 |
// This data padding has been added to help prevent future binary compatibility breaks
|
williamr@2
|
135 |
// Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
|
williamr@2
|
136 |
TUint32 iPadding1;
|
williamr@2
|
137 |
TUint32 iPadding2;
|
williamr@2
|
138 |
};
|
williamr@2
|
139 |
|
williamr@2
|
140 |
struct TBTManClientServerMessage
|
williamr@2
|
141 |
/**
|
williamr@4
|
142 |
This is to only be used by phone manufacturers, not by application developers.
|
williamr@4
|
143 |
@publishedAll
|
williamr@2
|
144 |
*/
|
williamr@2
|
145 |
{
|
williamr@2
|
146 |
public:
|
williamr@2
|
147 |
TRequestStatus* iClientStatusToCancel;
|
williamr@2
|
148 |
TBool iClientBusy;
|
williamr@2
|
149 |
};
|
williamr@2
|
150 |
|
williamr@2
|
151 |
NONSHARABLE_CLASS(RBTManSubSession) : public RSubSessionBase
|
williamr@2
|
152 |
/** A subsession for the RBTMan session.
|
williamr@2
|
153 |
|
williamr@2
|
154 |
RBTManSubSession provides the actual access to the security manager.
|
williamr@2
|
155 |
|
williamr@2
|
156 |
Contains basic subssession functionality.
|
williamr@2
|
157 |
@publishedAll
|
williamr@2
|
158 |
@released
|
williamr@2
|
159 |
*/
|
williamr@2
|
160 |
{
|
williamr@2
|
161 |
public:
|
williamr@2
|
162 |
/** Used to close the subsession. */
|
williamr@2
|
163 |
virtual void Close() = 0; // All subsessions must provide Close overrides
|
williamr@2
|
164 |
IMPORT_C void CancelRequest(TRequestStatus& aStatus);
|
williamr@2
|
165 |
void LocalComplete(TRequestStatus& aStatus, TInt aErr);
|
williamr@2
|
166 |
|
williamr@2
|
167 |
protected:
|
williamr@2
|
168 |
IMPORT_C RBTManSubSession();
|
williamr@2
|
169 |
TBool IsBusy() const;
|
williamr@2
|
170 |
void SetBusy(TRequestStatus& aStatus);
|
williamr@2
|
171 |
|
williamr@2
|
172 |
protected:
|
williamr@2
|
173 |
TPckgBuf<TBTManClientServerMessage> iClientServerMsg;
|
williamr@2
|
174 |
|
williamr@2
|
175 |
// This data padding has been added to help prevent future binary compatibility breaks
|
williamr@2
|
176 |
// Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
|
williamr@2
|
177 |
TUint32 iPadding1;
|
williamr@2
|
178 |
TUint32 iPadding2;
|
williamr@2
|
179 |
};
|
williamr@2
|
180 |
|
williamr@2
|
181 |
NONSHARABLE_CLASS(RBTRegServ) : protected RBTMan
|
williamr@2
|
182 |
/** Registry access session.
|
williamr@2
|
183 |
|
williamr@2
|
184 |
It has a RBTMan session as implementation.
|
williamr@2
|
185 |
@released
|
williamr@2
|
186 |
@publishedAll
|
williamr@2
|
187 |
*/
|
williamr@2
|
188 |
{
|
williamr@2
|
189 |
public:
|
williamr@2
|
190 |
IMPORT_C RBTRegServ();
|
williamr@2
|
191 |
IMPORT_C TInt Connect();
|
williamr@2
|
192 |
IMPORT_C void Close();
|
williamr@2
|
193 |
IMPORT_C RBTMan& Session();
|
williamr@2
|
194 |
IMPORT_C TInt SetHeapFailure(TInt aType,TInt aRate);
|
williamr@2
|
195 |
IMPORT_C TInt ResourceCount();
|
williamr@2
|
196 |
|
williamr@2
|
197 |
private:
|
williamr@2
|
198 |
// This data padding has been added to help prevent future binary compatibility breaks
|
williamr@2
|
199 |
// Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
|
williamr@2
|
200 |
TUint32 iPadding1;
|
williamr@2
|
201 |
TUint32 iPadding2;
|
williamr@2
|
202 |
};
|
williamr@2
|
203 |
|
williamr@2
|
204 |
// other functional sessions can derive from RBTMan
|
williamr@2
|
205 |
|
williamr@2
|
206 |
typedef RPointerArray<CBTDevice> RBTDeviceArray; /*!<RPointerArray of CBTDevices*/
|
williamr@2
|
207 |
typedef TPckgBuf<TBTNamelessDevice> TBTNamelessDevicePckgBuf; /*!<packagebuf of TBTNamelessDevice*/
|
williamr@2
|
208 |
typedef TPckgC<TBTDevAddr> TBTDevAddrPckg; /*!<const package (not buf) of TBTDevAddr*/
|
williamr@2
|
209 |
typedef TPckgBuf<TBTDevAddr> TBTDevAddrPckgBuf; /*!<packagebuf of TBTDevAddr*/
|
williamr@2
|
210 |
typedef TPckgBuf<TBTRegistrySearch> TBTRegistrySearchPckgBuf; /*!<packagebuf of TBTRegistrySearch*/
|
williamr@2
|
211 |
|
williamr@2
|
212 |
class RBTRegistry;
|
williamr@2
|
213 |
|
williamr@2
|
214 |
|
williamr@2
|
215 |
NONSHARABLE_CLASS(CBTRegistryResponse) : public CActive
|
williamr@2
|
216 |
/** Retrieves a set of results from the Registry.
|
williamr@2
|
217 |
|
williamr@4
|
218 |
This is a helper class that retrieves the set of results from a view set-up in the registry.
|
williamr@4
|
219 |
A view is set-up in the registry using RBTRegistry::CreateView.
|
williamr@4
|
220 |
|
williamr@4
|
221 |
@see RBTRegistry
|
williamr@2
|
222 |
@publishedAll
|
williamr@2
|
223 |
@released
|
williamr@2
|
224 |
*/
|
williamr@2
|
225 |
{
|
williamr@2
|
226 |
public:
|
williamr@2
|
227 |
IMPORT_C static CBTRegistryResponse* NewL(RBTRegistry& aView);
|
williamr@2
|
228 |
IMPORT_C void Start(TRequestStatus& aClientStatus);
|
williamr@2
|
229 |
IMPORT_C RBTDeviceArray& Results();
|
williamr@2
|
230 |
IMPORT_C ~CBTRegistryResponse();
|
williamr@2
|
231 |
private:
|
williamr@2
|
232 |
CBTRegistryResponse(RBTRegistry& aView);
|
williamr@2
|
233 |
void RunL();
|
williamr@2
|
234 |
TInt RunError(TInt aError);
|
williamr@2
|
235 |
void DoCancel();
|
williamr@2
|
236 |
void DoGet();
|
williamr@2
|
237 |
void ConstructL();
|
williamr@2
|
238 |
enum TState {EGettingSize, EGettingResults};
|
williamr@2
|
239 |
private:
|
williamr@2
|
240 |
RBTRegistry& iView;
|
williamr@2
|
241 |
RBTDeviceArray iArray;
|
williamr@2
|
242 |
HBufC8* iResponseBuf;
|
williamr@2
|
243 |
TPtr8 iResponsePtr;
|
williamr@2
|
244 |
TState iState;
|
williamr@2
|
245 |
TRequestStatus* iClientStatus;
|
williamr@2
|
246 |
};
|
williamr@2
|
247 |
|
williamr@2
|
248 |
NONSHARABLE_CLASS(RBTRegistry) : public RBTManSubSession
|
williamr@2
|
249 |
/** Creates and opens a subsession on the BT Registry Server for remote devices.
|
williamr@2
|
250 |
|
williamr@2
|
251 |
This subsession allows details of remote devices to be updated, modified, examined etc.
|
williamr@2
|
252 |
@publishedAll
|
williamr@2
|
253 |
@released
|
williamr@2
|
254 |
*/
|
williamr@2
|
255 |
{
|
williamr@2
|
256 |
public:
|
williamr@2
|
257 |
IMPORT_C RBTRegistry();
|
williamr@2
|
258 |
IMPORT_C TInt Open(RBTRegServ& aSession);
|
williamr@2
|
259 |
IMPORT_C void AddDeviceL(const CBTDevice& aDeviceDetails, TRequestStatus& aStatus);
|
williamr@2
|
260 |
IMPORT_C void GetDevice(TBTNamelessDevice& aDevice, TRequestStatus& aStatus); // nameless device
|
williamr@2
|
261 |
IMPORT_C void ModifyDevice(const TBTNamelessDevice& aDevice, TRequestStatus& aStatus); //namesless device
|
williamr@2
|
262 |
IMPORT_C void UnpairDevice(const TBTDevAddr& aAddress, TRequestStatus& aStatus);
|
williamr@2
|
263 |
IMPORT_C void ModifyFriendlyDeviceNameL(const TBTDevAddr& aAddress, const TDesC& aNewName, TRequestStatus& aStatus);
|
williamr@2
|
264 |
IMPORT_C void ModifyBluetoothDeviceNameL(const TBTDevAddr& aAddress, const TDesC8& aNewName, TRequestStatus& aStatus);
|
williamr@2
|
265 |
IMPORT_C void CreateView(const TBTRegistrySearch& aSearch, TRequestStatus& aStatus);
|
williamr@2
|
266 |
IMPORT_C void UnpairAllInView(TRequestStatus& aStatus);
|
williamr@2
|
267 |
IMPORT_C void DeleteAllInView(TRequestStatus& aStatus); // depends on client process capabilities
|
williamr@2
|
268 |
IMPORT_C void Close();
|
williamr@2
|
269 |
IMPORT_C TInt CloseView();
|
williamr@4
|
270 |
IMPORT_C void NotifyViewChange(TRequestStatus& aStatus);
|
williamr@2
|
271 |
|
williamr@2
|
272 |
|
williamr@2
|
273 |
void PreLoad(TRequestStatus& aStatus);
|
williamr@2
|
274 |
void GetResults(TPtr8& aResultBuf, TRequestStatus& aStatus);
|
williamr@2
|
275 |
private:
|
williamr@2
|
276 |
CBufFlat* iSendBuffer; // lazily constructed
|
williamr@2
|
277 |
TPtrC8 iSendBufferPtr;
|
williamr@2
|
278 |
TBTRegistrySearchPckgBuf iSearchPckg;
|
williamr@2
|
279 |
TPckg<TBTNamelessDevice> iDevicePckg;
|
williamr@2
|
280 |
TPckgBuf<TBTDevAddr> iAddrBuf;
|
williamr@2
|
281 |
|
williamr@2
|
282 |
// This data padding has been added to help prevent future binary compatibility breaks
|
williamr@2
|
283 |
// Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
|
williamr@2
|
284 |
TUint32 iPadding1;
|
williamr@2
|
285 |
TUint32 iPadding2;
|
williamr@2
|
286 |
};
|
williamr@2
|
287 |
|
williamr@2
|
288 |
NONSHARABLE_CLASS(RBTLocalDevice) : public RBTManSubSession
|
williamr@2
|
289 |
/** Creates and opens a subsession on BT Registry Server for local devices.
|
williamr@2
|
290 |
|
williamr@2
|
291 |
This subsession allows the local device to be updated, modified, examined etc.
|
williamr@2
|
292 |
@publishedAll
|
williamr@2
|
293 |
@released
|
williamr@2
|
294 |
*/
|
williamr@2
|
295 |
{
|
williamr@2
|
296 |
public:
|
williamr@2
|
297 |
IMPORT_C RBTLocalDevice();
|
williamr@2
|
298 |
IMPORT_C TInt Open(RBTRegServ& aSession);
|
williamr@2
|
299 |
IMPORT_C TInt Get(TBTLocalDevice& aLocalDevice);
|
williamr@2
|
300 |
IMPORT_C TInt Modify(const TBTLocalDevice& aLocalDevice);
|
williamr@2
|
301 |
IMPORT_C void Modify(const TBTLocalDevice& aLocalDevice, TRequestStatus& aStatus);
|
williamr@2
|
302 |
IMPORT_C void Close();
|
williamr@2
|
303 |
private:
|
williamr@2
|
304 |
TPckg<TBTLocalDevice> iLocalDevicePckg;
|
williamr@2
|
305 |
|
williamr@2
|
306 |
// This data padding has been added to help prevent future binary compatibility breaks
|
williamr@2
|
307 |
// Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
|
williamr@2
|
308 |
TUint32 iPadding1;
|
williamr@2
|
309 |
TUint32 iPadding2;
|
williamr@2
|
310 |
};
|
williamr@2
|
311 |
|
williamr@2
|
312 |
|
williamr@2
|
313 |
/**
|
williamr@2
|
314 |
UID of the PIN entry RNotifier plugin
|
williamr@4
|
315 |
This is only to be used with notifiers.
|
williamr@2
|
316 |
@publishedPartner
|
williamr@2
|
317 |
@released
|
williamr@2
|
318 |
*/
|
williamr@2
|
319 |
const TUid KBTManPinNotifierUid={0x100069c9};
|
williamr@2
|
320 |
|
williamr@2
|
321 |
/**
|
williamr@2
|
322 |
UID of the authorisation RNotifier plugin
|
williamr@4
|
323 |
This is only to be used with notifiers.
|
williamr@2
|
324 |
@publishedPartner
|
williamr@2
|
325 |
@released
|
williamr@2
|
326 |
*/
|
williamr@2
|
327 |
const TUid KBTManAuthNotifierUid={0x100069cf};
|
williamr@2
|
328 |
|
williamr@2
|
329 |
|
williamr@4
|
330 |
|
williamr@2
|
331 |
NONSHARABLE_CLASS(TBTNotifierUpdateParams)
|
williamr@2
|
332 |
/** Sends parameter updates to the notifier.
|
williamr@2
|
333 |
|
williamr@2
|
334 |
Struct to allow us to send a device name to the Passkey Entry and Authorisation RNotifier plugins.
|
williamr@4
|
335 |
This is only to be used with notifiers.
|
williamr@2
|
336 |
@publishedPartner
|
williamr@2
|
337 |
@released
|
williamr@2
|
338 |
*/
|
williamr@2
|
339 |
{
|
williamr@2
|
340 |
public:
|
williamr@2
|
341 |
/** The device name that has been retrieved since security procedures started. */
|
williamr@2
|
342 |
TBTDeviceName iName;
|
williamr@2
|
343 |
/** The result. */
|
williamr@2
|
344 |
TInt iResult;
|
williamr@2
|
345 |
};
|
williamr@2
|
346 |
|
williamr@2
|
347 |
NONSHARABLE_CLASS(TBTNotifierParams)
|
williamr@2
|
348 |
/** The device name parameter for the security notifier.
|
williamr@4
|
349 |
This is only to be used with notifiers.
|
williamr@2
|
350 |
@publishedPartner
|
williamr@2
|
351 |
@released
|
williamr@2
|
352 |
*/
|
williamr@2
|
353 |
{
|
williamr@2
|
354 |
public:
|
williamr@2
|
355 |
/** Device address of remote device requiring authorisation. */
|
williamr@2
|
356 |
TBTDevAddr iBDAddr;
|
williamr@2
|
357 |
/** The device name that has been retrieved since security procedures started. */
|
williamr@2
|
358 |
TBTDeviceName iName;
|
williamr@2
|
359 |
};
|
williamr@2
|
360 |
|
williamr@2
|
361 |
NONSHARABLE_CLASS(TBTAuthorisationParams) : public TBTNotifierParams
|
williamr@2
|
362 |
/** Bluetooth authorisation parameters.
|
williamr@4
|
363 |
This is only to be used with notifiers.
|
williamr@2
|
364 |
Struct to allow us to send params from the security manager to the Authorisation RNotifier plugin.
|
williamr@2
|
365 |
@publishedPartner
|
williamr@2
|
366 |
@released
|
williamr@2
|
367 |
*/
|
williamr@2
|
368 |
{
|
williamr@2
|
369 |
public:
|
williamr@2
|
370 |
/** UID of the service requesting authorisation. */
|
williamr@2
|
371 |
TUid iUid;
|
williamr@2
|
372 |
};
|
williamr@2
|
373 |
|
williamr@2
|
374 |
NONSHARABLE_CLASS(TBTPasskeyNotifierParams) : public TBTNotifierParams
|
williamr@2
|
375 |
/** The passkey parameter for the security notifier.
|
williamr@4
|
376 |
This is only to be used with notifiers.
|
williamr@2
|
377 |
@publishedPartner
|
williamr@2
|
378 |
@released
|
williamr@2
|
379 |
*/
|
williamr@2
|
380 |
{
|
williamr@2
|
381 |
public:
|
williamr@2
|
382 |
/** A min passkey length required. 0 means, no length requirement */
|
williamr@2
|
383 |
TUint iPasskeyMinLength;
|
williamr@2
|
384 |
/** true - locally initiated connection, false - remote side initiated */
|
williamr@2
|
385 |
TBool iLocallyInitiated;
|
williamr@2
|
386 |
};
|
williamr@2
|
387 |
|
williamr@4
|
388 |
// These are only to be used with notifiers.
|
williamr@2
|
389 |
typedef TPckgBuf<TBTNotifierUpdateParams> TBTNotifierUpdateParamsPckg; /*!< packagebuf of TBTNotifierUpdateParams*/
|
williamr@2
|
390 |
typedef TPckgBuf<TBTNotifierParams> TBTNotifierParamsPckg; /*!< packagebuf of TBTNotifierParams*/
|
williamr@2
|
391 |
typedef TPckgBuf<TBTAuthorisationParams> TBTAuthorisationParamsPckg; /*!< packagebuf of TBTAuthorisationParams*/
|
williamr@2
|
392 |
typedef TPckgBuf<TBTPasskeyNotifierParams> TBTPasskeyNotifierParamsPckg; /*!< packagebuf of TBTPasskeyNotifierParams*/
|
williamr@2
|
393 |
|
williamr@2
|
394 |
#endif
|