equal
deleted
inserted
replaced
1 // Copyright (c) 1997-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 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef __OBEXDATA_H__ |
|
22 #define __OBEXDATA_H__ |
|
23 |
|
24 #include <e32def.h> |
|
25 |
|
26 class CObexPacket; // Forward |
|
27 |
|
28 /** |
|
29 Abstraction for any struct that lives inside packet payload areas. |
|
30 @internalTechnology |
|
31 */ |
|
32 NONSHARABLE_CLASS(TObexData) |
|
33 { |
|
34 friend class CObexPacket; |
|
35 |
|
36 public: |
|
37 IMPORT_C TUint16 TotalSize () const; |
|
38 |
|
39 protected: |
|
40 virtual TUint16 DoTotalSize() const = 0; |
|
41 virtual TUint16 ParseIn (TUint8* aSource, const TUint16 aMaxSize) =0; |
|
42 virtual TUint16 WriteOut (TUint8* aDest, const TUint16 aMaxSize) const =0; |
|
43 }; |
|
44 |
|
45 #endif // __OBEXDATA_H__ |
|