Olivier SOLDANO | 47aa97f | 2017-04-04 10:40:00 -0400 | [diff] [blame] | 1 | /************************************************************************** |
Anthony Léonard | 2fde81d | 2017-04-17 10:06:55 -0400 | [diff] [blame] | 2 | * Copyright (C) 2015-2017 by Savoir-faire Linux * |
Olivier SOLDANO | 47aa97f | 2017-04-04 10:40:00 -0400 | [diff] [blame] | 3 | * 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 SOLDANO | 9657fd1 | 2017-03-27 16:06:53 -0400 | [diff] [blame] | 20 | #ifndef CURRENTACCOUNTWIDGET_H |
| 21 | #define CURRENTACCOUNTWIDGET_H |
| 22 | |
| 23 | #include <QWidget> |
| 24 | |
| 25 | namespace Ui { |
| 26 | class CurrentAccountWidget; |
| 27 | } |
| 28 | |
| 29 | class CurrentAccountWidget : public QWidget |
| 30 | { |
| 31 | Q_OBJECT |
| 32 | |
| 33 | public: |
| 34 | explicit CurrentAccountWidget(QWidget *parent = 0); |
| 35 | ~CurrentAccountWidget(); |
Anthony Léonard | 2d99df0 | 2017-04-19 16:35:19 -0400 | [diff] [blame^] | 36 | void changeSelectedIndex(int index); |
Olivier SOLDANO | 9657fd1 | 2017-03-27 16:06:53 -0400 | [diff] [blame] | 37 | |
| 38 | public slots: |
| 39 | void update(); |
Anthony Léonard | 2d99df0 | 2017-04-19 16:35:19 -0400 | [diff] [blame^] | 40 | void setPhoto(); |
Olivier SOLDANO | 9657fd1 | 2017-03-27 16:06:53 -0400 | [diff] [blame] | 41 | |
| 42 | private slots: |
| 43 | void on_currentAccountSelector_currentIndexChanged(int index); |
| 44 | |
| 45 | private: |
| 46 | Ui::CurrentAccountWidget *ui; |
| 47 | void setup(); |
Olivier SOLDANO | 9657fd1 | 2017-03-27 16:06:53 -0400 | [diff] [blame] | 48 | void updateAccounts(); |
| 49 | }; |
| 50 | |
| 51 | #endif // CURRENTACCOUNTWIDGET_H |