activityfw/storage/server/inc/afapplicationsengine.h
changeset 124 e36b2f4799c0
parent 109 e0aa398e6810
equal deleted inserted replaced
121:0b3699f6c654 124:e36b2f4799c0
    17 #ifndef AFAPPLICATIONSENGINE_H
    17 #ifndef AFAPPLICATIONSENGINE_H
    18 #define AFAPPLICATIONSENGINE_H
    18 #define AFAPPLICATIONSENGINE_H
    19 
    19 
    20 #include <e32base.h>
    20 #include <e32base.h>
    21 #include "afstorage.h"
    21 #include "afstorage.h"
       
    22 #include "afapplicationsobserver.h"
    22 
    23 
    23 class RApaLsSession;
    24 class RApaLsSession;
    24 class CAfApplicationsCollection;
    25 class CAfApplicationsCollection;
    25 class CAfApplicationsStorage;
    26 class CAfApplicationsStorage;
    26 class CAfApplicationsMonitor;
    27 class CAfApplicationsMonitor;
       
    28 class MAfTaskStorage;
    27 
    29 
    28 class CAfApplicationsEngine: public CBase
    30 class CAfApplicationsEngine: public CBase, public MAfApplicationsObserver
    29 {
    31 {
    30 public:
    32 public:
    31     static CAfApplicationsEngine* NewL(RApaLsSession& serviceProvider, CAfStorage& storage);
    33     static CAfApplicationsEngine* NewL(RApaLsSession& serviceProvider, CAfStorage& storage, MAfTaskStorage& taskStorage);
    32     ~CAfApplicationsEngine();
    34     ~CAfApplicationsEngine();
    33 
    35 
    34 private:
    36 private:
    35     CAfApplicationsEngine();
    37     CAfApplicationsEngine(MAfTaskStorage& taskStorage);
    36     void ConstructL(CAfStorage& storage, RApaLsSession& serviceProvider);
    38     void ConstructL(RApaLsSession& serviceProvider, CAfStorage& storage);
       
    39 
       
    40 public: // from MAfApplicationsObserver
       
    41     virtual void applicationsChanged();	
    37 
    42 
    38 private:
    43 private:
    39     CAfApplicationsCollection *mCollection;
    44     CAfApplicationsCollection *mCollection;
    40     CAfApplicationsMonitor *mMonitor;
    45     CAfApplicationsMonitor *mMonitor;
    41     CAfApplicationsStorage *mStorage;
    46     CAfApplicationsStorage *mStorage;
       
    47     MAfTaskStorage& mTaskStorage;
    42 };
    48 };
    43 
    49 
    44 #endif //AFAPPLICATIONSENGINE_H
    50 #endif //AFAPPLICATIONSENGINE_H