|
1 /* |
|
2 * Copyright (c) 2005 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 __MFCOBSERVER_H__ |
|
22 #define __MFCOBSERVER_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD CLASS DECLARATION |
|
28 class CFCSession; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * An interface to be implemented by user of CFCPlugInEngine. |
|
34 * Interface allows to be able to receive FloorControl message from the FloorControl Connection |
|
35 * that has not been initialized by the user. |
|
36 * |
|
37 * @lib n/a |
|
38 */ |
|
39 class MFCObserver |
|
40 { |
|
41 protected: // Constructors and destructors |
|
42 /** |
|
43 * Virtual destructor. Prohibit deletion through this interface. |
|
44 */ |
|
45 virtual ~MFCObserver() {}; |
|
46 |
|
47 public: |
|
48 /** |
|
49 * A message from specific FC session plugin has been received from the network. |
|
50 * @param aData The Data received from FCsession specific plugIn |
|
51 * The ownership is transferred. |
|
52 * @param aFCSession The Session which data is received to. |
|
53 */ |
|
54 virtual void FCReceivedData( HBufC8* aData, const CFCSession* aFCSession ) = 0; |
|
55 |
|
56 /** |
|
57 * An asynchronous error has occurred in the FC related to the |
|
58 * given session indicated. |
|
59 * @param aError KErrNone succesfully, otherwise system wide or Socket error code |
|
60 * @param aFCSession The Session which error is received to. |
|
61 */ |
|
62 virtual void FCErrorNotify( TInt aErrCode, const CFCSession* aFCSession ) = 0; |
|
63 }; |
|
64 |
|
65 #endif // end of __MFCObserver_H__ |
|
66 |
|
67 // End of File |