|
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 // cmdnsquerypublishnotifier.h |
|
15 // |
|
16 // |
|
17 /** |
|
18 @file |
|
19 @internalTechnology |
|
20 */ |
|
21 |
|
22 #ifndef __CMDNSQUERYPUBLISHNOTIFIER_H__ |
|
23 #define __CMDNSQUERYPUBLISHNOTIFIER_H__ |
|
24 #include <e32base.h> |
|
25 #include "cmdnsserverconstants.h" |
|
26 #include <mdns/dnsconstants.h> |
|
27 #include "mdnsdebug.h" |
|
28 class MPnPObserver; |
|
29 |
|
30 class RMdns; |
|
31 class CMdnsQueryPublishNotifier :public CActive |
|
32 { |
|
33 public : |
|
34 static CMdnsQueryPublishNotifier* NewL(RMdns& aMdns); |
|
35 ~CMdnsQueryPublishNotifier(); |
|
36 void RunL(); |
|
37 void DoCancel(); |
|
38 TPckg<TInt>& BufferLength(); |
|
39 void SetEventNotifierActive(); |
|
40 TRequestStatus& EventNotifierStatus(); |
|
41 void SetPnpObserver(MPnPObserver* aObserver); |
|
42 TMdnsServerMessages State() const ; |
|
43 void SetState(TMdnsServerMessages aState); |
|
44 |
|
45 private: |
|
46 CMdnsQueryPublishNotifier(RMdns& aMdns); |
|
47 void ConstructL(); |
|
48 private: |
|
49 TInt iBufferLength; |
|
50 TPckg<TInt> iPckgLength; |
|
51 RMdns& iMdns; |
|
52 MPnPObserver* iObserver; |
|
53 TMdnsServerMessages iState; |
|
54 TInt iPublishResult; |
|
55 TBuf8<KMaxDNSNameLength> iPublishName; |
|
56 /** |
|
57 FLOGGER debug trace member variable. |
|
58 */ |
|
59 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
60 }; |
|
61 |
|
62 #endif |