equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CDNSSECTION_H__ |
|
21 #define __CDNSSECTION_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <mdns/dnsconstants.h> |
|
25 |
|
26 |
|
27 // Base class for Question and Data section of the message |
|
28 class CDnsSection : public CBase |
|
29 { |
|
30 public: |
|
31 IMPORT_C virtual ~CDnsSection(); |
|
32 IMPORT_C const TDesC8& Name()const; |
|
33 IMPORT_C void SetNameL(const TDesC8& aName); |
|
34 |
|
35 IMPORT_C TUint16 Type()const; |
|
36 IMPORT_C void SetType(TUint16 aType); |
|
37 |
|
38 IMPORT_C TUint16 Class()const; |
|
39 IMPORT_C void SetClass(TUint16 aClass); |
|
40 |
|
41 protected: |
|
42 CDnsSection(); |
|
43 |
|
44 protected: |
|
45 RBuf8 iName; |
|
46 TUint16 iType; |
|
47 TUint16 iClass; |
|
48 }; |
|
49 |
|
50 #endif // __CDNSSECTION_H__ |