diff -r 78fbd574edf4 -r da856f45b798 zeroconf/dnsparser/inc/cdnsmessagecomposerparser.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zeroconf/dnsparser/inc/cdnsmessagecomposerparser.h Thu Jun 24 19:09:47 2010 +0530 @@ -0,0 +1,59 @@ +/* +* 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 __CDNSMESSAGECOMPOSERPARSER_H__ +#define __CDNSMESSAGECOMPOSERPARSER_H__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class CDnsPacket; +class CDnsMsgBuf; + +//Main class which mDNS Responder will be making use to evoke compose and parse operations +class CDnsMessageComposerParser: public CBase + { +public: + IMPORT_C static CDnsMessageComposerParser* NewL(); + IMPORT_C void CreateMessageL(RBuf8& aMessageBuffer, const CDnsMessage& aMessage ); + IMPORT_C CDnsMessage* ParseMessageL(const TDesC8& aBuffer); + ~CDnsMessageComposerParser(); + void ConstructL(); + +private: + CDnsMessageComposerParser(); + CDnsResourceData* GetResourceRecordsL(); + void AppendResourceRecordsL( CDnsResourceData* aResourceRecord ); + TUint16 GetLength( const CDnsMessage& aMessage )const; + +private: + RBuf8 iBuf; + CDnsPacket* iPacket; + CDnsMsgBuf* iMsgBuf; + __FLOG_DECLARATION_MEMBER; + }; + +#endif //__CDNSMESSAGECOMPOSERPARSER_H__ \ No newline at end of file