|
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 __MFCPLUGIN_H__ |
|
22 #define __MFCPLUGIN_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <in_sock.h> |
|
27 |
|
28 /** |
|
29 * @brief Interface class for getting FC PlugIn info and request FC plugIn service |
|
30 * @lib FCPlugInEngine.lib |
|
31 */ |
|
32 class MFCPlugIn |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Virtual destructor. Prohibit deletion through this interface. |
|
37 */ |
|
38 virtual ~MFCPlugIn() {} |
|
39 |
|
40 /** |
|
41 * Gets the name of the FC PlugIn name ex: TBCP |
|
42 * @return name of the FC PlugIn name |
|
43 */ |
|
44 virtual const TDesC8& Name() const = 0; |
|
45 |
|
46 /** |
|
47 * Sends out the data via specific FC plugIn |
|
48 * @param aData data requested to be sent |
|
49 */ |
|
50 virtual void SendToNetL(HBufC8* aData)=0; |
|
51 |
|
52 /** |
|
53 * Connect Socket via specific FC plugIn |
|
54 */ |
|
55 virtual void ConnectL(TBool aReceiver )=0; |
|
56 |
|
57 /** |
|
58 * Sets IapId to the specific FC plugIn |
|
59 * @param aIapId an IAPId |
|
60 */ |
|
61 virtual void SetIapId(TUint32 aIapId)=0; |
|
62 |
|
63 /** |
|
64 * Sets the address and port for the sending destination |
|
65 * @param aAddr a destination addr |
|
66 * @param aPort a port to send |
|
67 */ |
|
68 virtual void SetAddressL(const TDesC& aAddr, TUint aPort)=0; |
|
69 |
|
70 /** |
|
71 * Sets the LocalPort via the specific FC plugin |
|
72 * @param aPort a local port |
|
73 */ |
|
74 virtual void SetLocalPort(TUint aPort)=0; |
|
75 |
|
76 /** |
|
77 * Stops the connection, sending and receiving |
|
78 */ |
|
79 virtual void Stop()=0; |
|
80 }; |
|
81 |
|
82 #endif // __FC_PLUGIN_H__ |
|
83 |
|
84 // End of File |