107
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
#ifndef AFAPPLICATIONSENGINE_H
|
|
18 |
#define AFAPPLICATIONSENGINE_H
|
|
19 |
|
|
20 |
#include <e32base.h>
|
|
21 |
#include "afstorage.h"
|
119
|
22 |
#include "afapplicationsobserver.h"
|
107
|
23 |
|
|
24 |
class RApaLsSession;
|
|
25 |
class CAfApplicationsCollection;
|
|
26 |
class CAfApplicationsStorage;
|
|
27 |
class CAfApplicationsMonitor;
|
119
|
28 |
class MAfTaskStorage;
|
107
|
29 |
|
119
|
30 |
class CAfApplicationsEngine: public CBase, public MAfApplicationsObserver
|
107
|
31 |
{
|
|
32 |
public:
|
119
|
33 |
static CAfApplicationsEngine* NewL(RApaLsSession& serviceProvider, CAfStorage& storage, MAfTaskStorage& taskStorage);
|
107
|
34 |
~CAfApplicationsEngine();
|
|
35 |
|
|
36 |
private:
|
119
|
37 |
CAfApplicationsEngine(MAfTaskStorage& taskStorage);
|
|
38 |
void ConstructL(RApaLsSession& serviceProvider, CAfStorage& storage);
|
|
39 |
|
|
40 |
public: // from MAfApplicationsObserver
|
|
41 |
virtual void applicationsChanged();
|
107
|
42 |
|
|
43 |
private:
|
|
44 |
CAfApplicationsCollection *mCollection;
|
|
45 |
CAfApplicationsMonitor *mMonitor;
|
|
46 |
CAfApplicationsStorage *mStorage;
|
119
|
47 |
MAfTaskStorage& mTaskStorage;
|
107
|
48 |
};
|
|
49 |
|
|
50 |
#endif //AFAPPLICATIONSENGINE_H
|