equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Converts from upnp callback to upnp command observer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef UPNP_COMMAND_CALLBACK_ADAPTER_H |
|
20 #define UPNP_COMMAND_CALLBACK_ADAPTER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> // CBase |
|
24 #include "upnpcommandcallback.h" // MUpnpCommandCallback |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MUpnpCommandObserver; |
|
28 |
|
29 // CLASS DEFINITION |
|
30 NONSHARABLE_CLASS(CUpnpCommandCallbackAdapter) |
|
31 : public CBase |
|
32 , public MUpnpCommandCallback |
|
33 { |
|
34 |
|
35 public: // Construction/destruction methods |
|
36 |
|
37 /** |
|
38 * Constructor |
|
39 * |
|
40 */ |
|
41 CUpnpCommandCallbackAdapter( |
|
42 MUpnpCommandObserver* aObserver ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 * |
|
47 * @since S60 3.2 |
|
48 */ |
|
49 virtual ~CUpnpCommandCallbackAdapter(); |
|
50 |
|
51 public: // From MUpnpCommandCallback |
|
52 |
|
53 /** |
|
54 * Callback event |
|
55 */ |
|
56 void CommandEvent( |
|
57 UpnpCommand::TUpnpCommandEvent aEventType, |
|
58 TInt aStatusCode ); |
|
59 |
|
60 private: |
|
61 |
|
62 // the observer to convert to |
|
63 MUpnpCommandObserver* iObserver; |
|
64 |
|
65 }; |
|
66 |
|
67 #endif // UPNP_COMMAND_CALLBACK_ADAPTER_H |
|
68 |
|
69 // End of File |