#define MAINWINDOW_H
#include <QMainWindow>
-#include "include/daynightmode.h"
-#include "daynightmode_adapter.h"
+#include "../interfaces/daynightmode.h"
#include "daynightmode_proxy.h"
+
#include "popupwidget.h"
-#include "include/popup.h"
-#include "popup_adapter.h"
-#include "popup_proxy.h"
#include "statusbarwidget.h"
#include "controlbarwidget.h"
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
-// from daynightmode_adapter.h
+// day/night mode
public Q_SLOTS:
- void setDayNightMode(int mode);
- inline int getDayNightMode()
- {
- return (int)m_dayNightMode;
- }
-
-// from popup_adapter.h
-public Q_SLOTS: // METHODS
- void showPopup(int type, const QString &text);
+ void dayNightModeSlot(int mode);
protected:
// called when the translator loaded a new language set
ControlBarWidget *mp_controlBarWidget;
org::agl::daynightmode *mp_dBusDayNightMode_ControlBarWidget;
- // dbus daynightmode
SystemDayNight::eDayNightMode m_dayNightMode;
- DaynightmodeAdaptor *mp_daynightmodeAdaptor;
-
- // dbus popup
- PopupAdaptor *mp_popupAdaptor;
- org::agl::popup *mp_dBusPopup;
+ org::agl::daynightmode *mp_dayNightModeProxy;
PopupWidget *mp_popupWidget;
};