2
|
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 "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:
|
|
15 |
* @file
|
|
16 |
* This contains inline methods of CDataWrapper
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
/**
|
|
23 |
@prototype
|
|
24 |
@test
|
|
25 |
*/
|
|
26 |
|
|
27 |
#ifndef __DATA_WRAPPER_INL_
|
|
28 |
#define __DATA_WRAPPER_INL_
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Get the operation to cleanup the object returned by GetObject
|
|
32 |
*
|
|
33 |
* @see TCleanupOperation
|
|
34 |
*
|
|
35 |
* @return The cleanup operation. NULL if there is not one defined for the object.
|
|
36 |
*/
|
|
37 |
inline TCleanupOperation CDataWrapper::CleanupOperation() { return NULL; }
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Set the object that the wrapper contains
|
|
41 |
*
|
|
42 |
* @param aObject - the object that the wrapper contains.
|
|
43 |
*
|
|
44 |
* @leave KErrNotSupported if this operation is not supported
|
|
45 |
*/
|
|
46 |
inline void CDataWrapper::SetObjectL(TAny* /*aObject*/) { User::Leave(KErrNotSupported); }
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Removes the object that the wrapper contains. A subsequent call to
|
|
50 |
* GetObject should return NULL until SetObject is called.
|
|
51 |
*
|
|
52 |
* @param aObject - the object that the wrapper contains.
|
|
53 |
*
|
|
54 |
* @leave KErrNotSupported if this operation is not supported
|
|
55 |
*/
|
|
56 |
inline void CDataWrapper::DisownObjectL() { User::Leave(KErrNotSupported); }
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Increment the number of outstanding async calls that are active
|
|
60 |
*/
|
|
61 |
inline void CDataWrapper::IncOutstanding() { iOutstanding++; }
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Decrement the number of outstanding async calls that are active
|
|
65 |
*/
|
|
66 |
inline void CDataWrapper::DecOutstanding() { iOutstanding--; }
|
|
67 |
|
|
68 |
/**
|
|
69 |
* Query if there are any outstanding async calls that are active.
|
|
70 |
*
|
|
71 |
* @return ETrue if there are any oustnading active async calls.
|
|
72 |
*/
|
|
73 |
inline TBool CDataWrapper::Outstanding() { return iOutstanding>0; }
|
|
74 |
|
|
75 |
/**
|
|
76 |
* Initialse the wrapper
|
|
77 |
*
|
|
78 |
* @leave system wide error
|
|
79 |
*/
|
|
80 |
inline void CDataWrapper::InitialiseL() {}
|
|
81 |
|
|
82 |
#endif // ___DATA_WRAPPER_INL_
|