blob: 8568a845d04baa83a1491893a406161ccf77859a [file] [log] [blame]
Edric Milaret029b95a2015-06-09 09:51:44 -04001/***************************************************************************
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 Milaret5927d042015-06-15 12:45:29 -040023#include <QMenu>
Edric Milaret029b95a2015-06-09 09:51:44 -040024
25#include "useractionmodel.h"
26
27namespace Ui {
28class VideoOverlay;
29}
30
31class VideoOverlay : public QWidget
32{
33 Q_OBJECT
34
35public:
36 explicit VideoOverlay(QWidget *parent = 0);
37 ~VideoOverlay();
38
39public:
40 void setName(const QString &name);
41 void setTime(const QString &time);
42
43//UI SLOTS
44private slots:
45 void on_holdButton_toggled(bool checked);
46 void on_hangupButton_clicked();
47 void on_chatButton_toggled(bool checked);
48
49private:
50 Ui::VideoOverlay *ui;
51 UserActionModel* actionModel_;
Edric Milaret5927d042015-06-15 12:45:29 -040052 QMenu* menu_;
Edric Milaret3aca8e32015-06-12 10:01:40 -040053
54signals:
55 void setChatVisibility(bool visible);
Edric Milaret029b95a2015-06-09 09:51:44 -040056};
57
58#endif // VIDEOOVERLAY_H