49
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: ScrUpdater is Java Captain Symbian plugin that updates
|
|
15 |
* presence information of Java Applications in USIF SCR
|
|
16 |
* when removable drive is added or removed to the device.
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#ifndef SCRUPDATER_H
|
|
21 |
#define SCRUPDATER_H
|
|
22 |
|
|
23 |
#include <usif/scr/scr.h>
|
|
24 |
#include <usif/scr/screntries.h>
|
|
25 |
|
|
26 |
#include "javaosheaders.h"
|
|
27 |
|
|
28 |
#include "eventconsumerinterface.h"
|
|
29 |
#include "extensionplugininterface.h"
|
|
30 |
|
|
31 |
namespace java // codescanner::namespace
|
|
32 |
{
|
|
33 |
|
|
34 |
namespace captain // codescanner::namespace
|
|
35 |
{
|
|
36 |
|
|
37 |
class CoreInterface;
|
|
38 |
|
|
39 |
OS_NONSHARABLE_CLASS(ScrUpdater) : public EventConsumerInterface,
|
|
40 |
public ExtensionPluginInterface
|
|
41 |
{
|
|
42 |
public:
|
|
43 |
ScrUpdater();
|
|
44 |
virtual ~ScrUpdater();
|
|
45 |
|
|
46 |
// PluginInterface
|
|
47 |
virtual void startPlugin(CoreInterface* aCore);
|
|
48 |
virtual void stopPlugin();
|
|
49 |
|
|
50 |
// EventConsumerInterface
|
|
51 |
virtual void event(const std::string& aEventProvider,
|
|
52 |
java::comms::CommsMessage& aMsg);
|
|
53 |
|
|
54 |
// ExtensionPluginInterface methods
|
|
55 |
virtual EventConsumerInterface* getEventConsumer();
|
|
56 |
|
|
57 |
private:
|
|
58 |
void removeScrPresencesL(driveInfo *aInfo);
|
|
59 |
void addScrPresencesL(driveInfo *aInfo);
|
|
60 |
void initializeScrPresenceInfoL();
|
|
61 |
|
|
62 |
Usif::RSoftwareComponentRegistry *createScrL();
|
|
63 |
};
|
|
64 |
|
|
65 |
} // namespace captain
|
|
66 |
} // namespace java
|
|
67 |
|
|
68 |
#endif // SCRUPDATER_H
|