|
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 __CPNPSERVICEPUBLISHERBASE_H__ |
|
17 #define __CPNPSERVICEPUBLISHERBASE_H__ |
|
18 |
|
19 #include <pnp/pnp.h> |
|
20 |
|
21 class RPnPParameterBundle; |
|
22 class CControlChannelBase; |
|
23 |
|
24 /** This class acts as an abstract base class which technology specific information need to implement |
|
25 @publishedPartner |
|
26 @prototype |
|
27 */ |
|
28 class CPnPServicePublisherBase : public CBase |
|
29 { |
|
30 public: |
|
31 /** Static factory method */ |
|
32 static CPnPServicePublisherBase* NewL( TUint aTierId ); |
|
33 /** |
|
34 Default Destructor |
|
35 */ |
|
36 IMPORT_C virtual ~CPnPServicePublisherBase(); |
|
37 /** Second phase constructor */ |
|
38 virtual TInt Construct( TUint aTierId) = 0; |
|
39 /** |
|
40 Publishes service notifications. The technology specific service information |
|
41 is packed in aServiceInfo. |
|
42 @param Parameter bundle containing service information. |
|
43 */ |
|
44 virtual void Publish ( const RPnPParameterBundle& aServiceInfo ) = 0; |
|
45 /** |
|
46 Sends service notification. |
|
47 @param Parameter bundle contains the technology specific information. |
|
48 */ |
|
49 virtual void SendNotify ( const RPnPParameterBundle& aServiceInfo ) = 0; |
|
50 /** |
|
51 It enables to send and receive messages. |
|
52 */ |
|
53 virtual CControlChannelBase* InitiateControlL () = 0; |
|
54 |
|
55 protected: |
|
56 /** |
|
57 Default constructor |
|
58 */ |
|
59 IMPORT_C CPnPServicePublisherBase(); |
|
60 |
|
61 private: |
|
62 TUid iEcomDtorID; |
|
63 }; |
|
64 |
|
65 #endif // __CPNPSERVICEPUBLISHERBASE_H__ |