equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // DHCP Message wrapper header file |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file DHCPMsg.h |
|
20 */ |
|
21 |
|
22 #ifndef __DHCPMSG_H__ |
|
23 #define __DHCPMSG_H__ |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <comms-infras/recorditem.h> |
|
27 |
|
28 class CDHCPMessageHeader : public CConstItem |
|
29 { |
|
30 |
|
31 protected: |
|
32 CDHCPMessageHeader(CItemBase* aNext, TInt aValue, HBufC8*& aMsg) : |
|
33 CConstItem(aNext, aValue), |
|
34 iRecord(NULL), |
|
35 iMsg(aMsg) |
|
36 { |
|
37 iRecord.iFirst = this; //to get rid of too cautious warning C4355 |
|
38 } |
|
39 |
|
40 public: |
|
41 HBufC8& Message(); |
|
42 void Dump(); |
|
43 void InitialiseL(); |
|
44 virtual void RemoveAllOptions() = 0; |
|
45 |
|
46 public: |
|
47 TRecord iRecord; |
|
48 |
|
49 protected: |
|
50 HBufC8*& iMsg; //< Not owned by CDHCPMessageHeader |
|
51 }; |
|
52 |
|
53 #ifndef __FLOG_ACTIVE |
|
54 inline void CDHCPMessageHeader::Dump() |
|
55 { |
|
56 } |
|
57 #endif |
|
58 |
|
59 inline HBufC8& CDHCPMessageHeader::Message() |
|
60 /** |
|
61 * Return the descriptor of message contents |
|
62 * |
|
63 * @internalTechnology |
|
64 * |
|
65 * @return TDesC8 - The message contents |
|
66 * |
|
67 */ |
|
68 { |
|
69 return *iMsg; |
|
70 } |
|
71 |
|
72 |
|
73 #endif |
|
74 |