taskswitcher/server/inc/tsrunningappstorageimp.h
changeset 125 26079c1bb561
child 127 7b66bc3c6dc9
equal deleted inserted replaced
123:d1dadafc5584 125:26079c1bb561
       
     1 /*
       
     2  * Copyright (c) 2009 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 :
       
    15  *
       
    16  */
       
    17 #ifndef TSREUNNINGAPPSTORAGEIMP_H
       
    18 #define TSREUNNINGAPPSTORAGEIMP_H
       
    19 
       
    20 #include "tsrunningappstorage.h"
       
    21 #include "tsrunningappimp.h"
       
    22 
       
    23 class CTsRunningAppStorage: public CBase,
       
    24                             public MTsRunningApplicationStorage
       
    25 {
       
    26 public:
       
    27     static CTsRunningAppStorage* NewLC();
       
    28     ~CTsRunningAppStorage();
       
    29     void HandleWindowGroupChanged( 
       
    30            MTsResourceManager &aResources, 
       
    31            const TArray<RWsSession::TWindowGroupChainInfo> & aWindowGroups );
       
    32     void HandleWindowGroupChanged( 
       
    33            MTsResourceManager &aResources, 
       
    34            const TArray<RWsSession::TWindowGroupChainInfo>& aWindowGroups,
       
    35            const TArray<RWsSession::TWindowGroupChainInfo>& aFilteredWindowGroups);
       
    36 public:
       
    37     const MTsRunningApplication& operator[] (TInt aOffset) const;
       
    38     TInt Count() const;
       
    39     TInt ParentIndex( const MTsRunningApplication& aRunningApp ) const;
       
    40     TArray<TInt> BlockedWindowGroups() const;
       
    41     
       
    42 private:
       
    43     TInt ParentIndex( TInt aOffset ) const;
       
    44     TInt Find(TInt aWindowGroupId, TInt aOffset =0) const;
       
    45 
       
    46 private:
       
    47     CTsRunningAppStorage();
       
    48 
       
    49 private:
       
    50     RPointerArray<CTsRunningApp> iRunningApps;
       
    51     RArray<TInt> iBlockedWindowGroups;
       
    52 
       
    53 };
       
    54 #endif//TSREUNNINGAPPSTORAGEIMP_H