14
|
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 |
// cpnpservicediscovery.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __CMDNSPSERVICEDISCOVERYIMPL_H__
|
|
19 |
#define __CMDNSPSERVICEDISCOVERYIMPL_H__
|
|
20 |
|
|
21 |
//System include
|
|
22 |
#include <es_sock.h>
|
|
23 |
#include <pnp/cpnpservicediscoverybase.h>
|
|
24 |
|
|
25 |
//User include.
|
|
26 |
#include "cmdnsclient.h"
|
|
27 |
#include "mdnsdebug.h"
|
|
28 |
|
|
29 |
const TInt KUPnPDiscoveryUid = 0x2001DC88 ;
|
|
30 |
|
|
31 |
/* Body of RPnPServiceDiscovery class and calls the SubmitRequest and NotifyResults
|
|
32 |
of respective classes
|
|
33 |
@internalComponent
|
|
34 |
*/
|
|
35 |
class CMDnsServiceDiscoveryImpl : public CPnPServiceDiscoveryBase
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
static CMDnsServiceDiscoveryImpl* NewL();
|
|
39 |
~CMDnsServiceDiscoveryImpl ();
|
|
40 |
|
|
41 |
private:
|
|
42 |
// From CPnPServiceDiscoveryBase
|
|
43 |
TInt Construct( TUint aTierId);
|
|
44 |
void Discover ( const RPnPParameterBundle& aServiceInfo );
|
|
45 |
void Describe ( const RPnPParameterBundle& aServiceInfo );
|
|
46 |
void Subscribe ( const RPnPParameterBundle& aServiceInfo );
|
|
47 |
void RegisterNotify ( const RPnPParameterBundle& aServiceInfo );
|
|
48 |
void Cancel ( const RPnPParameterBundle& aServiceInfo );
|
|
49 |
CControlChannelBase* InitiateControlL ( const TDesC8& aUri );
|
|
50 |
|
|
51 |
private:
|
|
52 |
CMDnsServiceDiscoveryImpl ();
|
|
53 |
|
|
54 |
void DiscoverL ( const RPnPParameterBundle& aServiceInfo );
|
|
55 |
void RegisterNotifyL ( const RPnPParameterBundle& aServiceInfo );
|
|
56 |
void SubscribeL ( const RPnPParameterBundle& aServiceInfo );
|
|
57 |
void DescribeL ( const RPnPParameterBundle& aServiceInfo );
|
|
58 |
|
|
59 |
private:
|
|
60 |
RMdns iMdns;
|
|
61 |
/**
|
|
62 |
FLOGGER debug trace member variable.
|
|
63 |
*/
|
|
64 |
__FLOG_DECLARATION_MEMBER_MUTABLE;
|
|
65 |
};
|
|
66 |
|
|
67 |
#endif // __CMDNSPSERVICEDISCOVERYIMPL_H__
|