taskswitcher/contextengine/tsfswserver/engine/inc/tsfswidgetlist.h
changeset 4 4d54b72983ae
child 15 ff572dfe6d86
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
       
     1 /*
       
     2 * Copyright (c) 2008 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:  web widget list
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TSFSWIDGETLIST_H_
       
    20 #define TSFSWIDGETLIST_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <widgetregistryclient.h>
       
    24 
       
    25 const TUint32 KWidgetAppUidValue = 0x10282822;
       
    26 
       
    27 /**
       
    28  * class handling the list of running wrt widgets
       
    29  */
       
    30 NONSHARABLE_CLASS(CTsFsWidgetList) : public CBase
       
    31     {
       
    32 public:
       
    33     static CTsFsWidgetList* NewL();
       
    34 
       
    35     /** Destructor */
       
    36     ~CTsFsWidgetList();
       
    37 
       
    38     /**
       
    39      * Initializes the list that stores widgets.
       
    40      * @return   -
       
    41      */        
       
    42     void InitializeWidgetListL();
       
    43 
       
    44     /**
       
    45      * Returns a ref to the list of running widgets.
       
    46      */
       
    47     const RWidgetInfoArray& RunningWidgets() const { return iRunningWidgets; }
       
    48 
       
    49 private:
       
    50     /** Constructor */
       
    51     CTsFsWidgetList();
       
    52     void ResetArrayOfWidgetInfo( RWidgetInfoArray& aWidgetInfoArr );
       
    53     
       
    54     static void CleanupConnect( TAny* aThis );
       
    55 
       
    56 private:
       
    57     /** Contains list of widgets that are currently running */
       
    58     RWidgetInfoArray iRunningWidgets;
       
    59     RWidgetRegistryClientSession iWidgetRegistryClientSession;
       
    60     };
       
    61 
       
    62 #endif