|
1 /* |
|
2 * Copyright (c) 2008 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef COMMSEXTENSIONPLUGIN_H |
|
19 #define COMMSEXTENSIONPLUGIN_H |
|
20 |
|
21 #include "javaosheaders.h" |
|
22 #include "commslistener.h" |
|
23 #include "commsmessage.h" |
|
24 #include "commsserverendpoint.h" |
|
25 #include "extensionplugininterface.h" |
|
26 |
|
27 namespace java |
|
28 { |
|
29 namespace comms |
|
30 { |
|
31 |
|
32 using namespace java::captain; |
|
33 |
|
34 OS_NONSHARABLE_CLASS(CommsExtensionPlugin) : public ExtensionPluginInterface, |
|
35 public CommsListener |
|
36 { |
|
37 public: |
|
38 CommsExtensionPlugin(); |
|
39 virtual ~CommsExtensionPlugin(); |
|
40 |
|
41 // ExtensionPluginInterface methods |
|
42 virtual void startPlugin(CoreInterface* aCore); |
|
43 virtual void stopPlugin(); |
|
44 virtual CommsListener* getCommsListener() |
|
45 { |
|
46 return this; |
|
47 } |
|
48 |
|
49 // CommsListener |
|
50 virtual void processMessage(CommsMessage& message); |
|
51 |
|
52 private: |
|
53 CoreInterface* mCore; |
|
54 CommsEndpoint* mComms; |
|
55 CommsMessage mReply; |
|
56 }; |
|
57 |
|
58 } // namespace comms |
|
59 } // namespace java |
|
60 |
|
61 #endif // COMMSEXTENSIONPLUGIN_H |
|
62 |