taskswitcher/contextengine/hgfswserver/engine/inc/hgfsalwaysshownapplist.h
changeset 4 4d54b72983ae
parent 3 fb3763350a08
child 5 c743ef5928ba
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
     1 /*
       
     2  * ============================================================================
       
     3  *  Name        : hgfsalwaysshownapplist.h
       
     4  *  Part of     : Hg Teleport
       
     5  *  Description : Non-closeable app list class
       
     6  *  Version     : %version: sa1spcx1#2 %
       
     7  *
       
     8  *  Copyright 2008 Nokia.  All rights reserved.
       
     9  *  This material, including documentation and any related computer
       
    10  *  programs, is protected by copyright controlled by Nokia.  All
       
    11  *  rights are reserved.  Copying, including reproducing, storing,
       
    12  *  adapting or translating, any or all of this material requires the
       
    13  *  prior written consent of Nokia.  This material also contains
       
    14  *  confidential information which may not be disclosed to others
       
    15  *  without the prior written consent of Nokia.
       
    16  * ============================================================================
       
    17  */
       
    18 
       
    19 #ifndef HGFSALWAYSSHOWNAPPLIST_H
       
    20 #define HGFSALWAYSSHOWNAPPLIST_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <apgcli.h>
       
    24 
       
    25 /**
       
    26  * List of always shown applications.
       
    27  */
       
    28 NONSHARABLE_CLASS( CHgFsAlwaysShownAppList ) : public CBase
       
    29     {
       
    30 public:
       
    31     /**
       
    32      * Two-phased constructor.
       
    33      *
       
    34      * @param aParent
       
    35      */
       
    36     static CHgFsAlwaysShownAppList* NewL();
       
    37 
       
    38     /*
       
    39      * Default C++ constructor
       
    40      */
       
    41     CHgFsAlwaysShownAppList();
       
    42 
       
    43     /*
       
    44      * Destructor
       
    45      */
       
    46     ~CHgFsAlwaysShownAppList();
       
    47 
       
    48     /**
       
    49      * Initializes the list that stores applications that are always
       
    50      * shown in the fast swap provided they have been installed
       
    51      * in the phone rom
       
    52      * @return   -
       
    53      */
       
    54     void InitializeAlwaysShownListL();
       
    55 
       
    56     /**
       
    57      * If application uid exists in the always shown application list
       
    58      * @return   ETrue  application uid exists in the list
       
    59      *           EFalse application uid doesn't exist in the list
       
    60      * @param    TUid aAppUid the application uid
       
    61      */
       
    62     TBool IsAlwaysShownApp( TUid aAppUid );
       
    63 
       
    64     /**
       
    65      * Returning reference to iAppList
       
    66      */
       
    67     RArray<TUid>& AppList() { return iAppList; }
       
    68 
       
    69 private:    
       
    70     void ConstructL();
       
    71     RArray<TUid> iAppList;
       
    72     RApaLsSession iAppArcSession;
       
    73     };
       
    74 
       
    75 #endif