taskswitcher/server/inc/tswindowgroupsmonitorimp.h
changeset 127 7b66bc3c6dc9
parent 125 26079c1bb561
equal deleted inserted replaced
126:efda7c0771b9 127:7b66bc3c6dc9
    16  */
    16  */
    17 #ifndef TSWINDOWGROUPMONITORIMP_H
    17 #ifndef TSWINDOWGROUPMONITORIMP_H
    18 #define TSWINDOWGROUPMONITORIMP_H
    18 #define TSWINDOWGROUPMONITORIMP_H
    19 
    19 
    20 #include "tswindowgroupsmonitor.h"
    20 #include "tswindowgroupsmonitor.h"
       
    21 #include "tsdatastorage.h"
       
    22 
       
    23 class CTsRunningAppStorage;
    21 
    24 
    22 /**
    25 /**
    23  * Window server monitor implementation.
    26  * Window server monitor implementation.
    24  */
    27  */
    25 class CTsWindowGroupsMonitor: public CActive, 
    28 class CTsWindowGroupsMonitor: public CActive, 
    26                               public MTsWindowGroupsMonitor
    29                               public MTsWindowGroupsMonitor,
    27                               
    30                               public MTsDataStorage
    28 {
    31 {
    29 public:
    32 public:
    30     /**
    33     /**
    31      * Two phase constructor
    34      * Two phase constructor
    32      */
    35      */
    44     
    47     
    45     /**
    48     /**
    46      * @see MTsWindowGroupsMonitor::Cancel
    49      * @see MTsWindowGroupsMonitor::Cancel
    47      */
    50      */
    48     void Cancel(MTsWindowGroupsObserver &);
    51     void Cancel(MTsWindowGroupsObserver &);
       
    52     const MTsRunningApplicationStorage& Storage() const;
       
    53 
       
    54 public://from MTsDataStorage
       
    55     TBool IsSupported(TInt aFunction) const;
       
    56     void HandleDataL(TInt aFunction, RReadStream& aDataStream);
    49 
    57 
    50 protected:
    58 protected:
    51     /**
    59     /**
    52      * @see CActive::RunL
    60      * @see CActive::RunL
    53      */
    61      */
    82     /**
    90     /**
    83      * Function provide window server event to observers
    91      * Function provide window server event to observers
    84      */
    92      */
    85     void ProvideEventL();
    93     void ProvideEventL();
    86     
    94     
       
    95     void RefreshCacheL();
       
    96 
    87 private:
    97 private:
    88     /**
    98     /**
    89      * Registry of subscribed observers
    99      * Registry of subscribed observers
    90      */
   100      */
    91     RPointerArray<MTsWindowGroupsObserver> iObservers;
   101     RPointerArray<MTsWindowGroupsObserver> iObservers;
    97     
   107     
    98     /**
   108     /**
    99      * Monitor window group
   109      * Monitor window group
   100      */
   110      */
   101     RWindowGroup iWg;
   111     RWindowGroup iWg;
       
   112     
       
   113     /**
       
   114      * 
       
   115      */
       
   116     CTsRunningAppStorage* iCache;
   102 };
   117 };
   103 #endif//TSWINDOWGROUPMONITORIMP_H
   118 #endif//TSWINDOWGROUPMONITORIMP_H