|
1 /* |
|
2 * Copyright (c) 2005-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * @file |
|
16 * This contains inline methods of CDataWrapper |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 /** |
|
22 @prototype |
|
23 @test |
|
24 */ |
|
25 |
|
26 #ifndef __DATA_WRAPPER_INL_ |
|
27 #define __DATA_WRAPPER_INL_ |
|
28 |
|
29 /** |
|
30 * Get the operation to cleanup the object returned by GetObject |
|
31 * |
|
32 * @see TCleanupOperation |
|
33 * |
|
34 * @return The cleanup operation. NULL if there is not one defined for the object. |
|
35 */ |
|
36 inline TCleanupOperation CDataWrapper::CleanupOperation() { return NULL; } |
|
37 |
|
38 /** |
|
39 * Set the object that the wrapper contains |
|
40 * |
|
41 * @param aObject - the object that the wrapper contains. |
|
42 * |
|
43 * @leave KErrNotSupported if this operation is not supported |
|
44 */ |
|
45 inline void CDataWrapper::SetObjectL(TAny* /*aObject*/) { User::Leave(KErrNotSupported); } |
|
46 |
|
47 /** |
|
48 * Removes the object that the wrapper contains. A subsequent call to |
|
49 * GetObject should return NULL until SetObject is called. |
|
50 * |
|
51 * @param aObject - the object that the wrapper contains. |
|
52 * |
|
53 * @leave KErrNotSupported if this operation is not supported |
|
54 */ |
|
55 inline void CDataWrapper::DisownObjectL() { User::Leave(KErrNotSupported); } |
|
56 |
|
57 /** |
|
58 * Increment the number of outstanding async calls that are active |
|
59 */ |
|
60 inline void CDataWrapper::IncOutstanding() { iOutstanding++; } |
|
61 |
|
62 /** |
|
63 * Decrement the number of outstanding async calls that are active |
|
64 */ |
|
65 inline void CDataWrapper::DecOutstanding() { iOutstanding--; } |
|
66 |
|
67 /** |
|
68 * Query if there are any outstanding async calls that are active. |
|
69 * |
|
70 * @return ETrue if there are any oustnading active async calls. |
|
71 */ |
|
72 inline TBool CDataWrapper::Outstanding() { return iOutstanding>0; } |
|
73 |
|
74 /** |
|
75 * Initialse the wrapper |
|
76 * |
|
77 * @leave system wide error |
|
78 */ |
|
79 inline void CDataWrapper::InitialiseL() {} |
|
80 |
|
81 #endif // ___DATA_WRAPPER_INL_ |