taskswitcher/contextengine/tsfswserver/server/inc/tsfswappui.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:  appui for server
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TSFSWAPPUI_H
       
    20 #define TSFSWAPPUI_H
       
    21 
       
    22 #include <aknappui.h>
       
    23 
       
    24 class MTsFswTaskListObserver;
       
    25 class MTsFswResourceObserver;
       
    26 
       
    27 /**
       
    28  * Appui for the fsw server.
       
    29  * Reimplements HandleWsEventL from base class to get notifications about
       
    30  * window group changes.
       
    31  */
       
    32 class CTsFswAppUi : public CAknAppUi
       
    33     {
       
    34 public:
       
    35     ~CTsFswAppUi();
       
    36     void ConstructL();
       
    37 
       
    38     /**
       
    39      * Setter function.
       
    40      *
       
    41      * @param aTaskListObserver Observer to be notified if task list
       
    42      *                     has changed
       
    43      */
       
    44     void SetTaskListObserver( MTsFswTaskListObserver& aTaskListObserver );
       
    45 
       
    46     /**
       
    47      * Setter function.
       
    48      *
       
    49      * @param aResourceObserver Observer to be notified when resources are changed.
       
    50      */
       
    51     void SetResourceObserver( MTsFswResourceObserver& aResourceObserver );
       
    52 
       
    53 private:
       
    54     // from CEikAppUi
       
    55     void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination );
       
    56     void HandleResourceChangeL( TInt aType );
       
    57             
       
    58 private:
       
    59     MTsFswTaskListObserver* iTaskListObserver; // not own
       
    60     MTsFswResourceObserver* iResourceObserver; // not own
       
    61     };
       
    62 
       
    63 #endif