blob: ec447d63837bcddb9887e7c23c49806a9f883e0d [file] [log] [blame]
Edric Milaret029b95a2015-06-09 09:51:44 -04001/***************************************************************************
Nicolas Jager0a9fc602016-03-11 18:35:42 -05002 * Copyright (C) 2015-2016 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
24#include "useractionmodel.h"
25
Edric Milaret80e0b212015-10-16 10:07:43 -040026#include "callutilsdialog.h"
Edric Milaret864a2052016-01-14 15:45:03 -050027#include "qualitydialog.h"
Edric Milaret5cbf2b62015-07-09 11:36:53 -040028
Edric Milaret029b95a2015-06-09 09:51:44 -040029namespace Ui {
30class VideoOverlay;
31}
32
33class VideoOverlay : public QWidget
34{
35 Q_OBJECT
36
37public:
Edric Milaret80e0b212015-10-16 10:07:43 -040038 explicit VideoOverlay(QWidget* parent = 0);
Edric Milaret029b95a2015-06-09 09:51:44 -040039 ~VideoOverlay();
40
41public:
Edric Milaret80e0b212015-10-16 10:07:43 -040042 void setName(const QString& name);
43 void setTime(const QString& time);
Nicolas Jager0a9fc602016-03-11 18:35:42 -050044 inline bool isDialogVisible(){ return dialogVisible_; };
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_transferButton_clicked();
51 void on_addPersonButton_clicked();
52 void on_holdButton_clicked();
53 void on_joinButton_clicked();
Nicolas Jager97a21b42015-12-03 16:55:45 -050054 void on_noMicButton_clicked();
55 void on_noVideoButton_clicked();
Edric Milaret864a2052016-01-14 15:45:03 -050056 void on_qualityButton_clicked();
Edric Milaret31484f12016-02-02 14:26:27 -050057 void on_addToContactButton_clicked();
Edric Milareta5fe70f2016-02-05 15:03:31 -050058 void on_recButton_clicked();
Edric Milaret029b95a2015-06-09 09:51:44 -040059
60private:
Edric Milaret80e0b212015-10-16 10:07:43 -040061 Ui::VideoOverlay* ui;
Edric Milaret029b95a2015-06-09 09:51:44 -040062 UserActionModel* actionModel_;
Edric Milaret80e0b212015-10-16 10:07:43 -040063 CallUtilsDialog* transferDialog_;
Edric Milaret864a2052016-01-14 15:45:03 -050064 QualityDialog* qualityDialog_;
Nicolas Jager0a9fc602016-03-11 18:35:42 -050065 bool dialogVisible_ = false;
Edric Milaret3aca8e32015-06-12 10:01:40 -040066
67signals:
68 void setChatVisibility(bool visible);
Edric Milaret029b95a2015-06-09 09:51:44 -040069};
70