14
|
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 |
#include "cdnssection.h"
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
CDnsSection::CDnsSection()
|
|
24 |
{
|
|
25 |
}
|
|
26 |
|
|
27 |
EXPORT_C const TDesC8& CDnsSection::Name()const
|
|
28 |
{
|
|
29 |
return iName;
|
|
30 |
}
|
|
31 |
|
|
32 |
EXPORT_C void CDnsSection::SetNameL(const TDesC8& aName)
|
|
33 |
{
|
|
34 |
iName.Close();
|
|
35 |
iName.CreateL(aName);
|
|
36 |
}
|
|
37 |
|
|
38 |
EXPORT_C TUint16 CDnsSection::Type()const
|
|
39 |
{
|
|
40 |
return iType;
|
|
41 |
}
|
|
42 |
|
|
43 |
EXPORT_C void CDnsSection::SetType(TUint16 aType)
|
|
44 |
{
|
|
45 |
iType = aType;
|
|
46 |
}
|
|
47 |
|
|
48 |
EXPORT_C TUint16 CDnsSection::Class()const
|
|
49 |
{
|
|
50 |
return iClass;
|
|
51 |
}
|
|
52 |
|
|
53 |
EXPORT_C void CDnsSection::SetClass(TUint16 aClass)
|
|
54 |
{
|
|
55 |
iClass = aClass;
|
|
56 |
}
|
|
57 |
|
|
58 |
EXPORT_C CDnsSection::~CDnsSection()
|
|
59 |
{
|
|
60 |
iName.Close();
|
|
61 |
}
|
|
62 |
|
|
63 |
|