X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fmainwindow.h;fp=src%2Fmainwindow.h;h=af725fdd7b77defb7df275295427b75a44c0cf6f;hb=ca3605ea664834acdf712e691be8f0358b1c6b6f;hp=a87d88da88f5261c7e3c34858f4ba90d9633bc40;hpb=ff25a2a06428ffb0d6d8aeddb5faaa301b4201fe;p=staging%2FHomeScreen.git diff --git a/src/mainwindow.h b/HomeScreen/src/mainwindow.h similarity index 72% rename from src/mainwindow.h rename to HomeScreen/src/mainwindow.h index a87d88d..af725fd 100644 --- a/src/mainwindow.h +++ b/HomeScreen/src/mainwindow.h @@ -18,13 +18,10 @@ #define MAINWINDOW_H #include -#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" @@ -41,17 +38,9 @@ public: 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 @@ -65,13 +54,8 @@ private: 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; };