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