/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Monitor for server
*
*/
#ifndef TSFSWMONITOR_H
#define TSFSWMONITOR_H
#include <e32debug.h>
#include <w32std.h>
class MHsDataObserver;
class MTsFswResourceObserver;
/**
* Monitor for the fsw server.
* Reimplements HandleWsEventL from base class to get notifications about
* window group changes.
*/
class CTsFswMonitor : public CActive
{
public:
~CTsFswMonitor();
static CTsFswMonitor* NewL(MHsDataObserver& taskListObserver);
static CTsFswMonitor* NewLC(MHsDataObserver& taskListObserver);
protected:
CTsFswMonitor(MHsDataObserver& taskListObserver);
void ConstructL();
// from CActive
void RunL();
TInt RunError( TInt error );
void DoCancel();
private:
void Subscribe();
void ConstractObserverL();
private:
MHsDataObserver* mTaskListObserver; // not own
// window server session
RWsSession mWsSession;
// Window group.
RWindowGroup mWg;
};
#endif //TSFSWMONITOR_H