|
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: CUpnpActionResponseHandler handles service specific responses |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_CUPNPACTIONRESPONSEHANDLER_H |
|
21 #define C_CUPNPACTIONRESPONSEHANDLER_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include "upnpavcontrolpointobserver.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CUpnpService; |
|
30 class CUpnpAVControlPoint; |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Action response handler class. |
|
35 * This class contains functionality to handle UPnP action responses. |
|
36 * |
|
37 * @since Series 60 2.6 |
|
38 */ |
|
39 class CUpnpActionResponseHandler : public CBase |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 static CUpnpActionResponseHandler* NewL( |
|
47 MUpnpAVControlPointObserver& aAVCPObserver, |
|
48 CUpnpAVControlPoint& aAVCP ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CUpnpActionResponseHandler(); |
|
54 |
|
55 public: // New functions |
|
56 /** |
|
57 * The entry point for action response handling. |
|
58 * @since Series 60 2.6 |
|
59 * @param aAction response UPnP action. |
|
60 * @return errorcode. KErrNone if no errors. |
|
61 */ |
|
62 TInt ActionResponseReceived(CUpnpAction* aAction); |
|
63 /** |
|
64 * Rendering Control response handler. |
|
65 * @since Series 60 2.6 |
|
66 * @param aAction response UPnP action. |
|
67 * @return errorcode. KErrNone if no errors. |
|
68 */ |
|
69 TInt RenderingControlResponse(CUpnpAction* aAction); |
|
70 /** |
|
71 * AV Transport response handler. |
|
72 * @since Series 60 2.6 |
|
73 * @param aAction response UPnP action. |
|
74 * @return errorcode. KErrNone if no errors. |
|
75 */ |
|
76 TInt AVTransportResponse(CUpnpAction* aAction); |
|
77 /** |
|
78 * Connection Manager response handler. |
|
79 * @since Series 60 2.6 |
|
80 * @param aAction response UPnP action. |
|
81 * @return errorcode. KErrNone if no errors. |
|
82 */ |
|
83 TInt ConnectionManagerResponse(CUpnpAction* aAction); |
|
84 /** |
|
85 * Content Directory response handler. |
|
86 * @since Series 60 2.6 |
|
87 * @param aAction response UPnP action. |
|
88 * @return errorcode. KErrNone if no errors. |
|
89 */ |
|
90 TInt ContentDirectoryResponse(CUpnpAction* aAction); |
|
91 |
|
92 private: |
|
93 |
|
94 /** |
|
95 * C++ default constructor. |
|
96 */ |
|
97 CUpnpActionResponseHandler( MUpnpAVControlPointObserver& aAVCPObserver, |
|
98 CUpnpAVControlPoint& aAVCP ); |
|
99 |
|
100 /** |
|
101 * By default Symbian 2nd phase constructor is private. |
|
102 */ |
|
103 void ConstructL(); |
|
104 |
|
105 //observer that is intrested about AVCP actions. |
|
106 MUpnpAVControlPointObserver& iAVControlPointObserver; |
|
107 // AVCP main class. |
|
108 CUpnpAVControlPoint& iAVCP; |
|
109 }; |
|
110 |
|
111 #endif // C_CUPNPACTIONRESPONSEHANDLER_H |
|
112 |
|
113 // End of File |