|
1 /* |
|
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: fcnotifier.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __MFCNOTIFIER_H__ |
|
22 #define __MFCNOTIFIER_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 |
|
27 |
|
28 /** |
|
29 * an interface for receiving the notifier |
|
30 * |
|
31 * MFCNotifier defines an interface for observing network state |
|
32 * changes. Derive from this interface if you want to receive events |
|
33 * @lib FCTBCP.lib |
|
34 * @since S60 v3.0 |
|
35 */ |
|
36 class MFCNotifier |
|
37 { |
|
38 protected: // Constructors and destructors |
|
39 /** |
|
40 * Virtual destructor. Prohibit deletion through this interface. |
|
41 */ |
|
42 virtual ~MFCNotifier() {}; |
|
43 |
|
44 public: // Abstract methods |
|
45 /** |
|
46 * Called by a CFCReceiver & CFCSender |
|
47 * @param aData, Receving Data |
|
48 */ |
|
49 virtual void ReceivedData(HBufC8* aData) = 0; |
|
50 |
|
51 /** |
|
52 * Called by a CFCReceiver & CFCSender |
|
53 * @param aErrCode KErrNone if connection succesfully, otherwise |
|
54 * one of the system-wide error codes. |
|
55 * @param aErrMessage, error message |
|
56 */ |
|
57 virtual void ErrorNotify(TInt aErrCode) = 0; |
|
58 }; |
|
59 |
|
60 #endif // __MFCNOTIFIER_H__ |