|
1 /* |
|
2 * Copyright (c) 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 |
|
20 |
|
21 #ifndef MMCEFILESHARINGOBSERVER_H |
|
22 #define MMCEFILESHARINGOBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMceMediaStream; |
|
29 class CMceMediaSink; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * An interface to be implemented by users of MCE if they wish to receive |
|
35 * data from CMceDataSink. |
|
36 * |
|
37 * This observer is set using CMceManager::SetFileSharingObserver function. |
|
38 * |
|
39 * @lib mceclient.lib |
|
40 */ |
|
41 class MMceFileSharingObserver |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Will be invoked when sending file completes |
|
47 * |
|
48 * @return KErrNone if successful otherwise any of the system wide error |
|
49 */ |
|
50 void virtual SendFileCompleted(TInt error) = 0; |
|
51 |
|
52 /** |
|
53 * Will be called when the receiving of the file completes. |
|
54 * @return KErrNone if successful otherwise any of the system wide error |
|
55 */ |
|
56 void virtual ReceiveFileCompleted(TInt error) = 0; |
|
57 |
|
58 /** |
|
59 * Progress notificaiton on sending the file |
|
60 * @return aBytesTransferred. holds the part of the file size in bytes which has been set successfully |
|
61 * @return aTotalBytesOffile. Total size of the file being sent in bytes |
|
62 */ |
|
63 void virtual SendFileProgressNotification(TUint32 aBytesTransferred, TUint32& aTotalBytesOffile) = 0; |
|
64 |
|
65 /** |
|
66 * Progress notificaiton on receiving file |
|
67 * @return aReceivedBytes. holds the part of the file size in bytes which has been received successfully |
|
68 * @return aTotalBytesOffile. Total size of the file being sent in bytes |
|
69 */ |
|
70 void virtual ReceiveFileProgressNotification(TUint32 aReceivedBytes, TUint32 aTotalBytesOfFile) = 0; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif |