equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #include "obexsetpathdata.h" |
|
22 |
|
23 TObexSetPathData::TObexSetPathData () |
|
24 { |
|
25 iFlags = 0; |
|
26 iConstants = 0; |
|
27 } |
|
28 |
|
29 TUint16 TObexSetPathData::DoTotalSize () const |
|
30 { |
|
31 return 2; |
|
32 } |
|
33 |
|
34 TUint16 TObexSetPathData::ParseIn (TUint8* aSource, const TUint16 aMaxSize) |
|
35 { |
|
36 if (aMaxSize < TotalSize ()) |
|
37 { |
|
38 return (0); |
|
39 } |
|
40 iFlags = aSource[0]; |
|
41 iConstants = aSource[1]; |
|
42 return (TotalSize ()); |
|
43 } |
|
44 |
|
45 TUint16 TObexSetPathData::WriteOut (TUint8* aDest, const TUint16 aMaxSize) const |
|
46 { |
|
47 if (aMaxSize < TotalSize ()) |
|
48 { |
|
49 return (0); |
|
50 } |
|
51 aDest[0] = iFlags; |
|
52 aDest[1] = iConstants; |
|
53 return (TotalSize ()); |
|
54 } |