|
1 /* |
|
2 * Copyright (c) 2004 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: Templated attribute data helpers. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __PENGWVATTRIBUTEMODELDATAHELPER_H |
|
19 #define __PENGWVATTRIBUTEMODELDATAHELPER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include <S32Strm.h> |
|
24 |
|
25 |
|
26 /** |
|
27 * Templated attribute data helper. |
|
28 * |
|
29 * |
|
30 * @since 3.0 |
|
31 */ |
|
32 template< class TBufType, class TDataType > |
|
33 inline void DoSetDescL( TBufType*& aPtr, const TDataType& aData ); |
|
34 |
|
35 |
|
36 |
|
37 /** |
|
38 * Templated attribute data helper. |
|
39 * |
|
40 * |
|
41 * @since 3.0 |
|
42 */ |
|
43 template< class TBufType, class TPtrType > |
|
44 inline void DoGetDesc( const TBufType* const& aBuffer, TPtrType& aData ); |
|
45 |
|
46 |
|
47 /** |
|
48 * Templated attribute data helper. |
|
49 * |
|
50 * |
|
51 * @since 3.0 |
|
52 */ |
|
53 template< class TBufType > |
|
54 inline TInt DoGetBufExtSize( const TBufType* const& aBuffer ); |
|
55 |
|
56 |
|
57 |
|
58 /** |
|
59 * Templated attribute data helper. |
|
60 * |
|
61 * |
|
62 * @since 3.0 |
|
63 */ |
|
64 template< class TBufType > |
|
65 inline void DoExtrBufL( const TBufType* const& aBuffer, RWriteStream& aStream ); |
|
66 |
|
67 |
|
68 |
|
69 /** |
|
70 * Templated attribute data helper. |
|
71 * |
|
72 * |
|
73 * @since 3.0 |
|
74 */ |
|
75 template< class TBufType, class TPtrType > |
|
76 inline void DoIntrBufL( TBufType*& aBufPtr, TPtrType aPtr, RReadStream& aStream ); |
|
77 |
|
78 |
|
79 //Inline implementation |
|
80 #include "PEngWVAttributeModelDataHelper.inl" |
|
81 |
|
82 |
|
83 #endif //__PENGWVATTRIBUTEMODELDATAHELPER_H |
|
84 |
|
85 // End of File |
|
86 |