radioapp/radioapplication/inc/testwindow_win32.h
author hgs
Fri, 15 Oct 2010 16:26:27 +0300
changeset 57 21be958eb3ce
parent 24 6df133bd92e1
permissions -rw-r--r--
201041

/*
* Copyright (c) 2009 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 WIN32_WINDOW_H
#define WIN32_WINDOW_H

// System includes
#include <QWidget>

// Forward declarations
class HbMainWindow;
class QPushButton;
class QComboBox;
class QGridLayout;

class Win32Window : public QWidget
{
    Q_OBJECT
public:

    Win32Window();
    ~Win32Window();

    void addHbWindow( HbMainWindow* radioWindow );

    void init();

private Q_SLOTS:

    void changeOrientation();
    void volumeUp();
    void volumeDown();
    void toggleHeadsetStatus();
    void updateWindowSize();
    void addSong();
    void clearSong();
    void addRadiotext();
    void clearRadiotext();
    void toggleOffline();
    void changeTheme( const QString& theme );

private:

    void initThemes();
    QStringList themeRootPaths();

private: // data

    QPushButton*    mOrientationButton;

    QPushButton*    mVolUpButton;
    QPushButton*    mVolDownButton;

    QPushButton*    mAddSongButton;
    QPushButton*    mClearSongButton;

    QPushButton*    mAddRadiotextButton;
    QPushButton*    mClearRadiotextButton;

    QPushButton*    mHeadsetButton;
    bool            mHeadsetConnected;

    QPushButton*    mOfflineButton;

    QComboBox*      mThemeBox;

    QGridLayout*    mToolbarLayout;

    int             mVolume;

    HbMainWindow*   mRadioWindow;

    Qt::Orientation mOrientation;

    int             mSongIndex;

};

#endif // WIN32_WINDOW_H