1 /* |
|
2 * Copyright (c) 2006-2007 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: File sharing observer class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef __UPNPAPPSHARINGENGINEOBSERVER_H__ |
|
24 #define __UPNPAPPSHARINGENGINEOBSERVER_H__ |
|
25 |
|
26 // INCLUDE FILES |
|
27 #include <e32base.h> |
|
28 #include "upnpcontentserverclient.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CUPnPFileSharingEngine; |
|
32 |
|
33 |
|
34 // CONSTANTS |
|
35 |
|
36 |
|
37 /** |
|
38 * File sharing observer definition |
|
39 * @lib upnpapplicationengine.lib |
|
40 * @since S60 3.1 |
|
41 */ |
|
42 class MUPnPFileSharingEngineObserver |
|
43 { |
|
44 |
|
45 public: |
|
46 |
|
47 /** |
|
48 * Virtual destructor |
|
49 */ |
|
50 virtual ~MUPnPFileSharingEngineObserver() {}; |
|
51 |
|
52 /** |
|
53 * Function informs when file sharing was enabled or disabled |
|
54 * @since S60 3.1 |
|
55 * @param aEngine File sharing engine |
|
56 * @param aError, error code |
|
57 * @param aPhase ETrue if current phase is sharing activation, |
|
58 * otherwise EFalse |
|
59 */ |
|
60 virtual void HandleSharingStatus( |
|
61 CUPnPFileSharingEngine& /*aEngine*/, |
|
62 TInt /*aError*/, |
|
63 TBool /*aPhase*/ ) {} |
|
64 |
|
65 /** |
|
66 * Informs about status of the sharing progress |
|
67 * @since S60 3.1 |
|
68 * @param aEngine File sharing engine |
|
69 * @param aProgress Data contains information about sharing\ |
|
70 progress |
|
71 */ |
|
72 virtual void HandleSharingProgress( |
|
73 CUPnPFileSharingEngine& /*aEngine*/, |
|
74 const RArray<TUpnpProgressInfo>& /*aProgress*/ ) {} |
|
75 |
|
76 /** |
|
77 * Function informs when file sharing is done |
|
78 * @param aEngine File sharing engine |
|
79 * @param aError, error code |
|
80 */ |
|
81 virtual void HandleSharingDone( |
|
82 CUPnPFileSharingEngine& /*aEngine*/, TInt /*aError*/ ) {} |
|
83 |
|
84 /** |
|
85 * callback for CUPnPFileSharingEngine::RequestSelectionIndexesL |
|
86 * @since S60 3.1 |
|
87 * @param aEngine File sharing engine |
|
88 * @param aError Error code |
|
89 */ |
|
90 virtual void HandleSelectionIndexes( |
|
91 CUPnPFileSharingEngine& /*aEngine*/, TInt /*aError*/ ) {} |
|
92 |
|
93 /** |
|
94 * callback for CUPnPFileSharingEngine::RequestSelectionContentL |
|
95 * @since S60 3.1 |
|
96 * @param aEngine File sharing engine |
|
97 * @param aError Error code |
|
98 */ |
|
99 virtual void HandleSelectionContent( |
|
100 CUPnPFileSharingEngine& /*aEngine*/, TInt /*aError*/ ) {} |
|
101 |
|
102 /** |
|
103 * Callback to inform if connection has been lost |
|
104 * @since S60 3.1 |
|
105 * @param aEngine File sharing engine |
|
106 */ |
|
107 virtual void HandleSharingConnectionLost( |
|
108 CUPnPFileSharingEngine& /*aEngine*/ ) {} |
|
109 |
|
110 }; |
|
111 |
|
112 #endif //__UPNPAPPSHARINGENGINEOBSERVER_H__ |
|
113 |
|
114 // End of File |
|