blob: 10d01f695bd252fea479f72371641ef65bfd0ea6 [file] [log] [blame]
Olivier SOLDANO47aa97f2017-04-04 10:40:00 -04001/**************************************************************************
Anthony Léonard2fde81d2017-04-17 10:06:55 -04002* Copyright (C) 2015-2017 by Savoir-faire Linux *
Olivier SOLDANO47aa97f2017-04-04 10:40:00 -04003* Author: Anthony Léonard <anthony.leonard@savoirfairelinux.com> *
4* Author: Olivier Soldano <olivier.soldano@savoirfairelinux.com> *
5* *
6* This program is free software; you can redistribute it and/or modify *
7* it under the terms of the GNU General Public License as published by *
8* the Free Software Foundation; either version 3 of the License, or *
9* (at your option) any later version. *
10* *
11* This program is distributed in the hope that it will be useful, *
12* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14* GNU General Public License for more details. *
15* *
16* You should have received a copy of the GNU General Public License *
17* along with this program. If not, see <http://www.gnu.org/licenses/>. *
18**************************************************************************/
19
Olivier SOLDANO9657fd12017-03-27 16:06:53 -040020#ifndef CURRENTACCOUNTWIDGET_H
21#define CURRENTACCOUNTWIDGET_H
22
23#include <QWidget>
24
25namespace Ui {
26class CurrentAccountWidget;
27}
28
29class CurrentAccountWidget : public QWidget
30{
31 Q_OBJECT
32
33public:
34 explicit CurrentAccountWidget(QWidget *parent = 0);
35 ~CurrentAccountWidget();
Anthony Léonard2d99df02017-04-19 16:35:19 -040036 void changeSelectedIndex(int index);
Olivier SOLDANO9657fd12017-03-27 16:06:53 -040037
38public slots:
39 void update();
Anthony Léonard2d99df02017-04-19 16:35:19 -040040 void setPhoto();
Olivier SOLDANO9657fd12017-03-27 16:06:53 -040041
42private slots:
43 void on_currentAccountSelector_currentIndexChanged(int index);
44
45private:
46 Ui::CurrentAccountWidget *ui;
47 void setup();
Olivier SOLDANO9657fd12017-03-27 16:06:53 -040048 void updateAccounts();
49};
50
51#endif // CURRENTACCOUNTWIDGET_H