inc/profileswidget.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:17:19 +0300
changeset 1 67589f86e56b
parent 0 dc71378f4890
permissions -rw-r--r--
Revision: 201036 Kit: 201039

/*
* 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: Profiles widget
*
*/

#ifndef PROFILESWIDGET_H
#define PROFILESWIDGET_H

// System includes
#include <HbWidget>

// Forward declarations
class HbPushButton;
class ProfilesModel;
class ProfilesObserver;

// Class declaration
class ProfilesWidget : public HbWidget
{
    Q_OBJECT

public:
    ProfilesWidget(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
    ~ProfilesWidget();
    QRectF boundingRect() const;
    QPainterPath shape() const;
    void changeIcon();
    void adjustButtonWidth(const QString &text);

public slots:
    void onShow();
    void onHide();
    
private slots:
    void onButtonPressed();
    
private:
    Q_DISABLE_COPY(ProfilesWidget)
    HbPushButton *mButton;
    ProfilesModel *mModel;
    ProfilesObserver *mObserver;
};

#endif  //PROFILESWIDGET_H