diff -r b3cee849fa46 -r fad26422216a perfmon/ui/hb/app/inc/datacontainer.h --- a/perfmon/ui/hb/app/inc/datacontainer.h Tue Aug 31 15:15:20 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +0,0 @@ -/* -* Copyright (c) 2010 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: -* -*/ - -#ifndef DATACONTAINER_H -#define DATACONTAINER_H - -#include -#include - -class DataContainer : public HbWidget -{ - Q_OBJECT - -public: - DataContainer(const EngineWrapper& engine, QGraphicsItem *parent = 0) : - HbWidget(parent), - mEngine(engine) - { - } - - void hideContainer() - { - disconnect(&mEngine, SIGNAL(samplesUpdated()), this, SLOT(samplesUpdated())); - hide(); - } - - void showContainer() - { - connect(&mEngine, SIGNAL(samplesUpdated()),this, SLOT(samplesUpdated())); - show(); - } - - inline const EngineWrapper& engine() const { return mEngine; } - -public slots: - virtual void samplesUpdated() - { - update(); - } - -private: - const EngineWrapper& mEngine; -}; - -#endif // DATACONTAINER_H