videooverlay.h 2.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/***************************************************************************
 * Copyright (C) 2015 by Savoir-Faire Linux                                *
 * Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>*
 *                                                                         *
 * This program is free software; you can redistribute it and/or modify    *
 * it under the terms of the GNU General Public License as published by    *
 * the Free Software Foundation; either version 3 of the License, or       *
 * (at your option) any later version.                                     *
 *                                                                         *
 * This program is distributed in the hope that it will be useful,         *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
 * GNU General Public License for more details.                            *
 *                                                                         *
 * You should have received a copy of the GNU General Public License       *
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.   *
 **************************************************************************/

#ifndef VIDEOOVERLAY_H
#define VIDEOOVERLAY_H

#include <QWidget>
Edric Milaret's avatar
Edric Milaret committed
23
#include <QMenu>
24 25 26

#include "useractionmodel.h"

27 28
#include "transferdialog.h"

29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
namespace Ui {
class VideoOverlay;
}

class VideoOverlay : public QWidget
{
    Q_OBJECT

public:
    explicit VideoOverlay(QWidget *parent = 0);
    ~VideoOverlay();

public:
    void setName(const QString &name);
    void setTime(const QString &time);

//UI SLOTS
private slots:
    void on_holdButton_toggled(bool checked);
    void on_hangupButton_clicked();
    void on_chatButton_toggled(bool checked);
50
    void on_transferButton_toggled(bool checked);
51 52 53 54

private:
    Ui::VideoOverlay *ui;
    UserActionModel* actionModel_;
Edric Milaret's avatar
Edric Milaret committed
55
    QMenu* menu_;
56
    TransferDialog *transferDialog_;
57 58 59

signals:
    void setChatVisibility(bool visible);
60 61 62
};

#endif // VIDEOOVERLAY_H