taskswitcher/contextengine/tsfswserver/engine/inc/tsfshiddenapplist.h
changeset 4 4d54b72983ae
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:  Class that checks if chosen applications should be hidden
       
    15 *                from the task swap.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef TSFSHIDDENAPPLIST_H_
       
    21 #define TSFSHIDDENAPPLIST_H_
       
    22 
       
    23 #include <e32base.h>    // For CActive, link against: euser.lib
       
    24 #include <e32std.h>     // For RTimer, link against: euser.lib
       
    25 #include <e32property.h>// For RProperty
       
    26 #include "tsfswobservers.h"
       
    27 
       
    28 //FORWARD DECLARATIONS
       
    29 class RWsSession;
       
    30 
       
    31 /**
       
    32  * This class is handling the application which are hidden
       
    33  * from fast swap feature.
       
    34  */
       
    35 NONSHARABLE_CLASS( CTsFsHiddenAppList ) : public CActive
       
    36     {
       
    37 public:
       
    38 
       
    39     /**
       
    40      * Symbian based two phased constructor.
       
    41      */
       
    42     static CTsFsHiddenAppList* NewL( MTsFsHiddenAppListObserver& aObserver );
       
    43 
       
    44     /**
       
    45      * Symbian based two phased constructor.
       
    46      */
       
    47     static CTsFsHiddenAppList* NewLC( MTsFsHiddenAppListObserver& aObserver );
       
    48 
       
    49     /**
       
    50      * Destructor
       
    51      */
       
    52     ~CTsFsHiddenAppList();
       
    53 
       
    54     /**
       
    55      * Whether application is hidden from FSW.
       
    56      */
       
    57     TBool IsHiddenL( TUid aAppUid, const RWsSession& aWsSession, TInt aWgId );
       
    58 
       
    59     /**
       
    60      * Updating application list
       
    61      */
       
    62     void UpdateListL();
       
    63 
       
    64 protected:
       
    65     /**
       
    66      * Default constructor.
       
    67      */
       
    68     CTsFsHiddenAppList( MTsFsHiddenAppListObserver& aObserver );
       
    69 
       
    70     /**
       
    71      * Second phase construction
       
    72      */
       
    73     void ConstructL();
       
    74 
       
    75     /**
       
    76      * Reset application array list.
       
    77      */
       
    78     void ResetArray();
       
    79 
       
    80     /**
       
    81      * Derived from CActive
       
    82      */
       
    83     virtual void DoCancel();
       
    84 
       
    85     /**
       
    86      * Derived from CActive
       
    87      */
       
    88     virtual void RunL();
       
    89 
       
    90 private:
       
    91     /**
       
    92      * Property reader for reading Hiden app list from FSW
       
    93      */
       
    94     RProperty iProperty;
       
    95 
       
    96     /**
       
    97      * Hidden App list
       
    98      */
       
    99     CArrayFixFlat<TInt>* iHiddenAppList;
       
   100 
       
   101     /**
       
   102      * hidden apps list observer
       
   103      */
       
   104     MTsFsHiddenAppListObserver& iObserver;
       
   105     };
       
   106 
       
   107 #endif /*TSFSHIDDENAPPLIST_H_*/