|
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: PreinstallerStarter is Java Captain S60 plugin that starts |
|
15 * preinstaller process when the device boots or removable drive |
|
16 * is added to the device. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef PREINSTALLERSTARTER_H |
|
21 #define PREINSTALLERSTARTER_H |
|
22 |
|
23 #include "javaosheaders.h" |
|
24 |
|
25 #include "eventconsumerinterface.h" |
|
26 #include "extensionplugininterface.h" |
|
27 |
|
28 namespace java |
|
29 { |
|
30 |
|
31 namespace captain |
|
32 { |
|
33 |
|
34 class CoreInterface; |
|
35 |
|
36 OS_NONSHARABLE_CLASS(PreinstallerStarter) : public EventConsumerInterface, |
|
37 public ExtensionPluginInterface |
|
38 { |
|
39 public: |
|
40 PreinstallerStarter(); |
|
41 virtual ~PreinstallerStarter(); |
|
42 |
|
43 // PluginInterface |
|
44 virtual void startPlugin(CoreInterface* aCore); |
|
45 virtual void stopPlugin(); |
|
46 |
|
47 // EventConsumerInterface |
|
48 virtual void event(const std::string& eventProvider, |
|
49 java::comms::CommsMessage& aMsg); |
|
50 |
|
51 // ExtensionPluginInterface methods |
|
52 virtual EventConsumerInterface* getEventConsumer(); |
|
53 |
|
54 private: |
|
55 void startPreinstaller(TBool aIadBoot); |
|
56 void registerMidletApplicationTypeHandler(); |
|
57 |
|
58 CoreInterface* mCore; |
|
59 }; |
|
60 |
|
61 } // namespace captain |
|
62 } // namespace java |
|
63 |
|
64 #endif // PREINSTALLERSTARTER_H |