#ifndef MAINWINDOW_H
#define MAINWINDOW_H
+#ifdef Q_WS_MAEMO_6
+#include <MApplicationPage>
+#include <MLabel>
+#include <MButton>
+#include <MComboBox>
+#else
#include <QMainWindow>
#include <QActionGroup>
#include <QLabel>
#include <QPushButton>
+#endif
#include "forecastwidget.h"
#include "medarddownloader.h"
+#ifdef Q_WS_MAEMO_6
+class MainWindow : public MApplicationPage
+#else
class MainWindow : public QMainWindow
+#endif
{
Q_OBJECT
public:
+#ifdef Q_WS_MAEMO_6
+ MainWindow(QGraphicsItem *parent = 0);
+#else
MainWindow(QWidget *parent = 0);
+#endif
virtual ~MainWindow();
private slots:
void forecastTypeChanged(const QString label, MedardDownloader::ForecastType type);
void forecastDateOffsetChanged(int offset);
+#if Q_WS_MAEMO_6
+ void forecastDomainChanged(int index);
+#else
void forecastDomainChanged(QAction *action);
+#endif
void downloadedFinished(const QString &filename, const QDateTime &date);
void downloadFailed();
MedardDownloader *m_downloader;
ForecastWidget *m_forecast;
+#if Q_WS_MAEMO_6
+ MLabel *m_forecastTypeLabel;
+ MLabel *m_forecastInitialDateLabel;
+ MLabel *m_forecastDateLabel;
+
+ MButton *m_downloadRetryButton;
+
+ MButton *m_minusDayButton;
+ MButton *m_plusDayButton;
+ MButton *m_minusHourButton;
+ MButton *m_plusHourButton;
+
+ MComboBox *m_domainComboBox;
+#else
QLabel *m_forecastTypeLabel;
QLabel *m_forecastInitialDateLabel;
QLabel *m_forecastDateLabel;
QPushButton *m_plusHourButton;
QActionGroup *m_domainActionGroup;
+#endif
+
};
#endif // MAINWINDOW_H