|
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 // |
|
15 |
|
16 #ifndef __CMDNSPNPPSERVICEPUBLISHERIMPL_H__ |
|
17 #define __CMDNSPNPPSERVICEPUBLISHERIMPL_H__ |
|
18 |
|
19 |
|
20 #include <pnp/cpnpservicepublisherbase.h> |
|
21 #include <pnp/mpnpobserver.h> |
|
22 |
|
23 //User includes |
|
24 #include "cmdnsclient.h" |
|
25 #include "mdnsparamset.h" |
|
26 #include "mdnsdebug.h" |
|
27 |
|
28 //Uid3 of this ecomplugin interface. |
|
29 const TUint KMDnsPublisherUid = 0x2001DC8A; |
|
30 /* Body of RPnPServicePublisher class and calls the SubmitRequest and NotifyResults |
|
31 of respective classes |
|
32 */ |
|
33 class CMDnsServicePublisherImpl :public CPnPServicePublisherBase |
|
34 { |
|
35 public: |
|
36 static CMDnsServicePublisherImpl* NewL(); |
|
37 ~CMDnsServicePublisherImpl ( ); |
|
38 |
|
39 private: |
|
40 TInt Construct ( TUint aTierId ); |
|
41 void Publish ( const RPnPParameterBundle& aServiceInfo ); |
|
42 void SendNotify ( const RPnPParameterBundle& aServiceInfo ); |
|
43 CControlChannelBase* InitiateControlL (); |
|
44 |
|
45 |
|
46 private: |
|
47 CMDnsServicePublisherImpl ( ); |
|
48 void PublishL ( const RPnPParameterBundle& aServiceInfo ); |
|
49 void SendNotifyL ( const RPnPParameterBundle& aServiceInfo ); |
|
50 |
|
51 private: |
|
52 //Mdns client instance. |
|
53 RMdns iMdns; |
|
54 /** |
|
55 FLOGGER debug trace member variable. |
|
56 */ |
|
57 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
58 |
|
59 }; |
|
60 |
|
61 #endif // __CMdnsPNPPSERVICEPUBLISHERIMPL_H__ |