1 /* |
|
2 * Copyright (c) 2009 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 "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: Active object helper class inline function definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 // ----------------------------------------------------------------------------- |
|
19 // Get the identifier of this instance. |
|
20 // ----------------------------------------------------------------------------- |
|
21 // |
|
22 inline TInt CBTNotifActive::RequestId() |
|
23 { |
|
24 return iRequestId; |
|
25 } |
|
26 |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // Set the identifier of this instance. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 inline void CBTNotifActive::SetRequestId( TInt aId ) |
|
33 { |
|
34 iRequestId = aId; |
|
35 } |
|
36 |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // Activate the active object. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 inline void CBTNotifActive::GoActive() |
|
43 { |
|
44 SetActive(); |
|
45 } |
|
46 |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // Cancel an outstanding request. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 inline void CBTNotifActive::CancelRequest() |
|
53 { |
|
54 Cancel(); |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // Get a reference to the active object request status. |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 inline TRequestStatus& CBTNotifActive::RequestStatus() |
|
63 { |
|
64 return iStatus; |
|
65 } |
|