85
|
1 |
/*
|
98
|
2 |
* Copyright (c) 2007 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".
|
85
|
8 |
*
|
98
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Ecom plugin
|
|
15 |
*
|
|
16 |
*/
|
85
|
17 |
|
|
18 |
#ifndef C_CAWIDGETSCANNERPLUGIN_H
|
|
19 |
#define C_CAWIDGETSCANNERPLUGIN_H
|
|
20 |
|
|
21 |
#include <casrvplugin.h>
|
|
22 |
#include <f32file.h>
|
92
|
23 |
#include "cammcwatcher.h"
|
119
|
24 |
#include "cainstallnotifier.h"
|
85
|
25 |
|
|
26 |
class TPluginParams;
|
|
27 |
class CCaWidgetStorageHandler;
|
|
28 |
|
119
|
29 |
class CCaWidgetScannerPlugin :
|
|
30 |
public CCaSrvPlugin, MMmcWatcherCallback, MCaInstallListener
|
85
|
31 |
{
|
92
|
32 |
|
85
|
33 |
public:
|
|
34 |
// Constructors and destructor
|
|
35 |
|
|
36 |
/**
|
|
37 |
* Two-phased constructor.
|
|
38 |
* @param aStorage instance of AS storage DB
|
|
39 |
*/
|
|
40 |
static CCaWidgetScannerPlugin* NewL( TPluginParams* aPluginParams );
|
|
41 |
static CCaWidgetScannerPlugin* NewLC( TPluginParams* aPluginParams );
|
|
42 |
/**
|
|
43 |
* C++ destructor
|
|
44 |
*/
|
|
45 |
~CCaWidgetScannerPlugin();
|
92
|
46 |
|
85
|
47 |
/**
|
98
|
48 |
* SynchronizeL - synchronizes widgets on device with database
|
85
|
49 |
*/
|
|
50 |
void SynchronizeL();
|
|
51 |
|
119
|
52 |
void HandleInstallNotifyL();
|
|
53 |
|
85
|
54 |
private:
|
98
|
55 |
//from MWidgetMmcWatcherCallback
|
92
|
56 |
|
85
|
57 |
/**
|
|
58 |
* MmcChangeL is called when the MMC is removed or inserted.
|
|
59 |
*/
|
|
60 |
void MmcChangeL();
|
92
|
61 |
|
85
|
62 |
private:
|
|
63 |
|
|
64 |
/**
|
|
65 |
* C++ default constructor.
|
|
66 |
*/
|
98
|
67 |
CCaWidgetScannerPlugin();
|
85
|
68 |
|
|
69 |
/**
|
|
70 |
* By default Symbian 2nd phase constructor is private.
|
|
71 |
*/
|
|
72 |
void ConstructL( TPluginParams* aPluginParams );
|
|
73 |
|
|
74 |
private:
|
92
|
75 |
|
85
|
76 |
/**
|
|
77 |
* File session. Own
|
|
78 |
*/
|
|
79 |
RFs iFs;
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Sis installation notifier. Own
|
|
83 |
*/
|
119
|
84 |
CCaInstallNotifier* iInstallNotifier;
|
85
|
85 |
|
|
86 |
/**
|
|
87 |
* Content Storage Handler. Own.
|
|
88 |
*/
|
|
89 |
CCaWidgetStorageHandler* iStorageHandler;
|
92
|
90 |
|
85
|
91 |
/**
|
|
92 |
* Mmc watcher. Own.
|
|
93 |
*/
|
92
|
94 |
CCaMmcWatcher* iMmcWatcher;
|
|
95 |
|
85
|
96 |
};
|
|
97 |
|
|
98 |
#endif // C_CAWIDGETSCANNERPLUGIN_H
|