618fa35f7c34f0f460c119037898e2d8aa4bd758
[staging/HomeScreen.git] / HomeScreen / src / controlbarwidget.h
1 /*
2  * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef CONTROLBARWIDGET_H
18 #define CONTROLBARWIDGET_H
19
20 #include <QWidget>
21 #include "../interfaces/daynightmode.h"
22 #include "daynightmode_proxy.h"
23 #include "settingswidget.h"
24
25 namespace Ui {
26 class ControlBarWidget;
27 }
28
29 class ControlBarWidget : public QWidget
30 {
31     Q_OBJECT
32
33 public:
34     explicit ControlBarWidget(QWidget *parent = 0);
35     ~ControlBarWidget();
36
37 // day/night mode
38 public Q_SLOTS:
39     void dayNightModeSlot(int mode);
40
41 private slots:
42     void on_pushButton_Settings_clicked();
43
44     void on_pushButton_Home_clicked();
45
46 private:
47     Ui::ControlBarWidget *mp_ui;
48     SettingsWidget *mp_settingsWidget;
49     org::agl::daynightmode *mp_dBusDayNightMode_SettingsWidget;
50
51     // D-Bus day/night
52     SystemDayNight::eDayNightMode m_dayNightMode;
53     org::agl::daynightmode *mp_dayNightModeProxy;
54 };
55
56 #endif // CONTROLBARWIDGET_H