|
1 // Copyright (c) 2008-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 // cresponsehandler.cpp |
|
15 // |
|
16 // |
|
17 /** |
|
18 @file |
|
19 @internalTechnology |
|
20 */ |
|
21 |
|
22 #ifndef __CRESPONSEHANDLER_H__ |
|
23 #define __CRESPONSEHANDLER_H__ |
|
24 |
|
25 //System include |
|
26 #include <mdns/cdnsmessage.h> |
|
27 #include <mdns/cdnsresourcedata.h> |
|
28 //User include |
|
29 #include "cmessagehandler.h" |
|
30 #include "cbasehandler.h" |
|
31 #include "mdnsdebug.h" |
|
32 |
|
33 /** |
|
34 Derived From CBaseHandler |
|
35 Used to process response packet read from the mdns port |
|
36 */ |
|
37 |
|
38 class CResponseHandler : public CBaseHandler |
|
39 { |
|
40 public: |
|
41 static CResponseHandler* NewL(CMessageHandler& aMessageHandler); |
|
42 ~CResponseHandler(); |
|
43 |
|
44 //Derived from CBaseHandler |
|
45 void HandleIncomingPacketL(CDnsMessage& aMessage ,const TSockAddr& aAddr); |
|
46 |
|
47 private: |
|
48 CResponseHandler(CMessageHandler& aMessageHandler); |
|
49 void ConstructL(); |
|
50 void HandlePacketAnswersL(CDnsResourceData* aResourceData); |
|
51 void HandleAddrAnswersL(CDnsResourceData* aResourceData); |
|
52 void HandlePTRAnswersL(CDnsResourceData* aResourceData); |
|
53 void HandleTXTAnswersL(CDnsResourceData* aResourceData); |
|
54 void HandleAAAAAnswersL(CDnsResourceData* aResourceData); |
|
55 void HandleSRVAnswersL(CDnsResourceData* aResourceData); |
|
56 |
|
57 private: |
|
58 RArray< RBuf8> iNotifyPtrName; |
|
59 /** |
|
60 *FLOGGER debug trace member variable. |
|
61 */ |
|
62 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
63 }; |
|
64 |
|
65 #endif |