Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * Copyright (C) 2015 by Savoir-Faire Linux * |
| 3 | * Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>* |
| 4 | * * |
| 5 | * This program is free software; you can redistribute it and/or modify * |
| 6 | * it under the terms of the GNU General Public License as published by * |
| 7 | * the Free Software Foundation; either version 3 of the License, or * |
| 8 | * (at your option) any later version. * |
| 9 | * * |
| 10 | * This program is distributed in the hope that it will be useful, * |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 13 | * GNU General Public License for more details. * |
| 14 | * * |
| 15 | * You should have received a copy of the GNU General Public License * |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * |
| 17 | **************************************************************************/ |
| 18 | |
| 19 | #ifndef VIDEOOVERLAY_H |
| 20 | #define VIDEOOVERLAY_H |
| 21 | |
| 22 | #include <QWidget> |
Edric Milaret | 5927d04 | 2015-06-15 12:45:29 -0400 | [diff] [blame] | 23 | #include <QMenu> |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 24 | |
| 25 | #include "useractionmodel.h" |
| 26 | |
Edric Milaret | 5cbf2b6 | 2015-07-09 11:36:53 -0400 | [diff] [blame^] | 27 | #include "transferdialog.h" |
| 28 | |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 29 | namespace Ui { |
| 30 | class VideoOverlay; |
| 31 | } |
| 32 | |
| 33 | class VideoOverlay : public QWidget |
| 34 | { |
| 35 | Q_OBJECT |
| 36 | |
| 37 | public: |
| 38 | explicit VideoOverlay(QWidget *parent = 0); |
| 39 | ~VideoOverlay(); |
| 40 | |
| 41 | public: |
| 42 | void setName(const QString &name); |
| 43 | void setTime(const QString &time); |
| 44 | |
| 45 | //UI SLOTS |
| 46 | private slots: |
| 47 | void on_holdButton_toggled(bool checked); |
| 48 | void on_hangupButton_clicked(); |
| 49 | void on_chatButton_toggled(bool checked); |
Edric Milaret | 5cbf2b6 | 2015-07-09 11:36:53 -0400 | [diff] [blame^] | 50 | void on_transferButton_toggled(bool checked); |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 51 | |
| 52 | private: |
| 53 | Ui::VideoOverlay *ui; |
| 54 | UserActionModel* actionModel_; |
Edric Milaret | 5927d04 | 2015-06-15 12:45:29 -0400 | [diff] [blame] | 55 | QMenu* menu_; |
Edric Milaret | 5cbf2b6 | 2015-07-09 11:36:53 -0400 | [diff] [blame^] | 56 | TransferDialog *transferDialog_; |
Edric Milaret | 3aca8e3 | 2015-06-12 10:01:40 -0400 | [diff] [blame] | 57 | |
| 58 | signals: |
| 59 | void setChatVisibility(bool visible); |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 60 | }; |
| 61 | |
| 62 | #endif // VIDEOOVERLAY_H |