taskswitcher/contextengine/hgfswserver/server/inc/hgfswappui.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:10:36 +0200
changeset 2 08c6ee43b396
permissions -rw-r--r--
Revision: 201001 Kit: 201003

/*
 * ===========================================================================
 *  Name        : hgfswappui.h
 *  Part of     : Huriganes / Fast Swap Server
 *  Description : appui for server
 *  Version     : %version: 5 %
 *
 *  Copyright © 2008 Nokia Corporation.
 *  This material, including documentation and any related 
 *  computer programs, is protected by copyright controlled by 
 *  Nokia Corporation. All rights are reserved. Copying, 
 *  including reproducing, storing, adapting or translating, any 
 *  or all of this material requires the prior written consent of 
 *  Nokia Corporation. This material also contains confidential 
 *  information which may not be disclosed to others without the 
 *  prior written consent of Nokia Corporation.
 * ===========================================================================
 */

#ifndef __HGFSWAPPUI_H
#define __HGFSWAPPUI_H

#include <aknappui.h>

class MHgFswTaskListObserver;
class MHgFswResourceObserver;

/**
 * Appui for the fsw server.
 * Reimplements HandleWsEventL from base class to get notifications about
 * window group changes.
 */
class CHgFswAppUi : public CAknAppUi
    {
public:
    ~CHgFswAppUi();
    void ConstructL();

    /**
     * Setter function.
     *
     * @param aTaskListObserver Observer to be notified if task list
     *                     has changed
     */
    void SetTaskListObserver( MHgFswTaskListObserver& aTaskListObserver );

    /**
     * Setter function.
     *
     * @param aResourceObserver Observer to be notified when resources are changed.
     */
    void SetResourceObserver( MHgFswResourceObserver& aResourceObserver );

private:
    // from CEikAppUi
    void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination );
    void HandleResourceChangeL( TInt aType );
            
private:
    MHgFswTaskListObserver* iTaskListObserver; // not own
    MHgFswResourceObserver* iResourceObserver; // not own
    };

#endif