78
|
1 |
/*******************************************************************************
|
|
2 |
* Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved. This program and the accompanying materials
|
|
4 |
* are made available under the terms of the Eclipse Public License v1.0
|
|
5 |
* which accompanies this distribution, and is available at
|
|
6 |
* http://www.eclipse.org/legal/epl-v10.html
|
|
7 |
*
|
|
8 |
* Contributors:
|
|
9 |
* Nokia Corporation - initial implementation
|
|
10 |
*******************************************************************************/
|
|
11 |
|
|
12 |
#ifndef JAVASOFTNOTEHANDLER_H
|
|
13 |
#define JAVASOFTNOTEHANDLER_H
|
|
14 |
|
|
15 |
#include <extensionplugininterface.h>
|
|
16 |
#include <eventconsumerinterface.h>
|
|
17 |
#include <applicationmanagementeventsinterface.h>
|
|
18 |
|
|
19 |
using namespace java::captain;
|
|
20 |
|
|
21 |
OS_NONSHARABLE_CLASS(javasoftnotehandler) : public ExtensionPluginInterface,
|
|
22 |
public EventConsumerInterface,
|
|
23 |
public ApplicationManagementEventsInterface
|
|
24 |
{
|
|
25 |
public:
|
|
26 |
OS_IMPORT javasoftnotehandler();
|
|
27 |
OS_IMPORT virtual ~javasoftnotehandler();
|
|
28 |
|
|
29 |
// PluginInterface
|
|
30 |
virtual void startPlugin(CoreInterface* aCore);
|
|
31 |
virtual void stopPlugin();
|
|
32 |
|
|
33 |
// ExtensionPluginInterface methods
|
|
34 |
virtual EventConsumerInterface* getEventConsumer();
|
|
35 |
virtual ApplicationManagementEventsInterface* getApplicationManagementListener();
|
|
36 |
|
|
37 |
// EventConsumerInterface
|
|
38 |
virtual void event(const std::string& eventProvider,
|
|
39 |
java::comms::CommsMessage& aMsg);
|
|
40 |
|
|
41 |
// ApplicationManagementEventsInterface
|
|
42 |
virtual void amAdded(const uids_t& uids);
|
|
43 |
virtual void amUpdated(const uids_t& uids);
|
|
44 |
virtual void amDeleted(const uids_t& uids);
|
|
45 |
|
|
46 |
private:
|
|
47 |
void createIndicatorsL();
|
|
48 |
void deleteIndicatorsL(const uids_t& aUids);
|
|
49 |
};
|
|
50 |
|
|
51 |
#endif // JAVASOFTNOTEHANDLER_H
|
|
52 |
|