|
1 /** @file |
|
2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef UPNPSSDPHANDLER_H |
|
20 #define UPNPSSDPHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 #include <in_sock.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class CUpnpDeviceLibraryElement; |
|
29 class MUpnpSsdpServerObserver; |
|
30 class RSocketServ; |
|
31 |
|
32 /** |
|
33 * CUpnpSsdpHandlerBase is a base class for |
|
34 * classes which handle SSDP server states. |
|
35 */ |
|
36 class CUpnpSsdpHandlerBase : public CBase |
|
37 { |
|
38 public: |
|
39 // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~CUpnpSsdpHandlerBase(); |
|
45 |
|
46 /** |
|
47 * Method for ssdp startup |
|
48 * aSocketServ - reference to socket server session |
|
49 */ |
|
50 virtual void StartL( RSocketServ& aSocketServ ) = 0; |
|
51 |
|
52 /** |
|
53 * Method for ssdp immidiate stop |
|
54 */ |
|
55 virtual void Stop() = 0; |
|
56 |
|
57 /** |
|
58 * Method for address change event |
|
59 */ |
|
60 virtual void AddressChangeL( TInetAddr& aAddress ) = 0; |
|
61 |
|
62 /** |
|
63 * Method for ssdp m-search |
|
64 * aSearchString - The SSDP search string, that is placed to the |
|
65 * ST header of the SSDP message. |
|
66 * aMX - list of MX times for m-search messages |
|
67 */ |
|
68 virtual void SsdpSearchL( const TDesC8& aSearchString, TDesC8& aMX ) = 0; |
|
69 |
|
70 /** |
|
71 * Method for adverising local device |
|
72 */ |
|
73 virtual void AdvertiseDeviceL( TInt aLive, CUpnpDeviceLibraryElement& aElement ) = 0; |
|
74 |
|
75 /** |
|
76 * Method checks if ssdp is started |
|
77 */ |
|
78 virtual TBool IsStarted() = 0; |
|
79 |
|
80 protected: |
|
81 |
|
82 /** |
|
83 * Constructor for performing 1st stage construction |
|
84 */ |
|
85 CUpnpSsdpHandlerBase( MUpnpSsdpServerObserver& aObserver ); |
|
86 |
|
87 protected: |
|
88 |
|
89 // Observer pointer |
|
90 MUpnpSsdpServerObserver& iSsdpServerObserver; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // UPNPSSDPHANDLER_H |