taskswitcher/contextengine/tsfswserver/engine/inc/tsfswidgetlist.h
branchRCL_3
changeset 17 b8fae6b8a148
parent 11 ff572dfe6d86
child 31 89165693e770
equal deleted inserted replaced
12:9674c1a575e9 17:b8fae6b8a148
    19 #ifndef TSFSWIDGETLIST_H_
    19 #ifndef TSFSWIDGETLIST_H_
    20 #define TSFSWIDGETLIST_H_
    20 #define TSFSWIDGETLIST_H_
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <widgetregistryclient.h>
    23 #include <widgetregistryclient.h>
    24 
    24                       
    25 _LIT(KWidgetAppName, "widgetlauncher.exe");
       
    26 
       
    27 const TUint32 KWidgetAppUidValue = 0x10282822;
    25 const TUint32 KWidgetAppUidValue = 0x10282822;
    28 
       
    29 const TInt KCloseWidgetCmd(2);
       
    30 
    26 
    31 /**
    27 /**
    32  * class handling the list of running wrt widgets
    28  * class handling the list of running wrt widgets
    33  */
    29  */
    34 NONSHARABLE_CLASS(CTsFsWidgetList) : public CBase
    30 NONSHARABLE_CLASS(CTsFsWidgetList) : public CBase
    40     ~CTsFsWidgetList();
    36     ~CTsFsWidgetList();
    41 
    37 
    42     /**
    38     /**
    43      * Initializes the list that stores widgets.
    39      * Initializes the list that stores widgets.
    44      * @return   -
    40      * @return   -
    45      */        
    41      */
    46     void InitializeWidgetListL();
    42     void InitializeWidgetListL();
    47 
    43 
    48     /**
    44     /**
    49      * Returns a ref to the list of running widgets.
    45      * Returns a ref to the list of running widgets.
    50      */
    46      */
    51     const RWidgetInfoArray& RunningWidgets() const { return iRunningWidgets; }
    47     const RWidgetInfoArray& RunningWidgets() const { return iRunningWidgets; }
       
    48     
       
    49     /**
       
    50      * Check if widget's uid is recognized as CWRT type.
       
    51      */
       
    52     TBool IsCWRTWidget( TUid aUid );
    52 
    53 
    53 private:
    54 private:
    54     /** Constructor */
    55     /** Constructor */
    55     CTsFsWidgetList();
    56     CTsFsWidgetList();
    56     void ResetArrayOfWidgetInfo( RWidgetInfoArray& aWidgetInfoArr );
    57     void ResetArrayOfWidgetInfo( RWidgetInfoArray& aWidgetInfoArr );
    57     
    58 
    58     static void CleanupConnect( TAny* aThis );
    59     static void CleanupConnect( TAny* aThis );
       
    60 
       
    61     TBool IsValBetween( TInt aMinor, TInt aMajor, TInt aBetween );
    59 
    62 
    60 private:
    63 private:
    61     /** Contains list of widgets that are currently running */
    64     /** Contains list of widgets that are currently running */
    62     RWidgetInfoArray iRunningWidgets;
    65     RWidgetInfoArray iRunningWidgets;
    63     RWidgetRegistryClientSession iWidgetRegistryClientSession;
    66     RWidgetRegistryClientSession iWidgetRegistryClientSession;