diff -r 78fbd574edf4 -r da856f45b798 zeroconf/dnsparser/inc/cdnssection.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zeroconf/dnsparser/inc/cdnssection.h Thu Jun 24 19:09:47 2010 +0530 @@ -0,0 +1,50 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + +#ifndef __CDNSSECTION_H__ +#define __CDNSSECTION_H__ + +#include +#include + + +// Base class for Question and Data section of the message +class CDnsSection : public CBase + { +public: + IMPORT_C virtual ~CDnsSection(); + IMPORT_C const TDesC8& Name()const; + IMPORT_C void SetNameL(const TDesC8& aName); + + IMPORT_C TUint16 Type()const; + IMPORT_C void SetType(TUint16 aType); + + IMPORT_C TUint16 Class()const; + IMPORT_C void SetClass(TUint16 aClass); + +protected: + CDnsSection(); + +protected: + RBuf8 iName; + TUint16 iType; + TUint16 iClass; + }; + +#endif // __CDNSSECTION_H__