blob: 18456ec5dc1051870aeb597ac888aa73b778da99 [file] [log] [blame]
Edric Milaret029b95a2015-06-09 09:51:44 -04001/***************************************************************************
Anthony Léonard2fde81d2017-04-17 10:06:55 -04002 * Copyright (C) 2015-2017 by Savoir-faire Linux *
Edric Milaret029b95a2015-06-09 09:51:44 -04003 * 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
Edric Milaret5f316da2015-09-28 11:57:42 -040019#pragma once
Edric Milaret029b95a2015-06-09 09:51:44 -040020
21#include <QWidget>
Edric Milaret5927d042015-06-15 12:45:29 -040022#include <QMenu>
Edric Milaret029b95a2015-06-09 09:51:44 -040023
Edric Milaret029b95a2015-06-09 09:51:44 -040024namespace Ui {
25class VideoOverlay;
26}
27
28class VideoOverlay : public QWidget
29{
30 Q_OBJECT
31
32public:
Edric Milaret80e0b212015-10-16 10:07:43 -040033 explicit VideoOverlay(QWidget* parent = 0);
Edric Milaret029b95a2015-06-09 09:51:44 -040034 ~VideoOverlay();
35
36public:
Edric Milaret80e0b212015-10-16 10:07:43 -040037 void setName(const QString& name);
38 void setTime(const QString& time);
Nicolas Jager0a9fc602016-03-11 18:35:42 -050039 inline bool isDialogVisible(){ return dialogVisible_; };
Olivier SOLDANO223bcc82017-07-19 16:05:05 -040040 void toggleContextButtons(bool visible);
Andreas Traczykb8b13ba2018-08-21 16:30:16 -040041 void setVideoMuteVisibility(bool visible);
42 bool shouldShowOverlay();
Sébastien Blin93bd2062018-12-17 15:57:16 -050043 void simulateShowChatview(bool checked);
44 bool getShowChatView();
Edric Milaret029b95a2015-06-09 09:51:44 -040045
46//UI SLOTS
47private slots:
Edric Milaret029b95a2015-06-09 09:51:44 -040048 void on_hangupButton_clicked();
49 void on_chatButton_toggled(bool checked);
Edric Milaret80e0b212015-10-16 10:07:43 -040050 void on_holdButton_clicked();
Nicolas Jager97a21b42015-12-03 16:55:45 -050051 void on_noMicButton_clicked();
52 void on_noVideoButton_clicked();
Edric Milareta5fe70f2016-02-05 15:03:31 -050053 void on_recButton_clicked();
Olivier SOLDANO2bcdfd72017-05-02 14:37:19 -040054 void on_videoCfgBtn_clicked();
Edric Milaret029b95a2015-06-09 09:51:44 -040055
56private:
Edric Milaret80e0b212015-10-16 10:07:43 -040057 Ui::VideoOverlay* ui;
Nicolas Jager0a9fc602016-03-11 18:35:42 -050058 bool dialogVisible_ = false;
Edric Milaret3aca8e32015-06-12 10:01:40 -040059
60signals:
61 void setChatVisibility(bool visible);
Olivier SOLDANO2bcdfd72017-05-02 14:37:19 -040062 void videoCfgBtnClicked();
Edric Milaret029b95a2015-06-09 09:51:44 -040063};
64