1 /*
2 * Copyright (c) 2014 Christian Surlykke
3 *
4 * This file is part of the LXQt project. <https://lxqt.org>
5 * It is distributed under the LGPL 2.1 or later license.
6 * Please refer to the LICENSE file for a copy of the license.
7 */
8 
9 #ifndef BATTERYINFODIALOG_H
10 #define BATTERYINFODIALOG_H
11 
12 #include "batteryinfoframe.h"
13 
14 #include <QDialog>
15 #include <QList>
16 #include <Solid/Battery>
17 
18 namespace Ui {
19 class BatteryInfoDialog;
20 }
21 
22 class BatteryInfoDialog : public QDialog
23 {
24     Q_OBJECT
25 
26 public:
27     explicit BatteryInfoDialog(QList<Solid::Battery*> batteries, QWidget *parent = nullptr);
28     ~BatteryInfoDialog() override;
29 
30 public slots:
31     void toggleShow();
32 
33 private:
34     Ui::BatteryInfoDialog *ui;
35 };
36 
37 #endif // BATTERYINFODIALOG_H
38