blob: ed95a73dcab97cb77ae7e32df6979e044f70df2e [file] [log] [blame]
Edric Milaretcdc978b2015-06-04 11:25:12 -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 INSTANTMESSAGINGWIDGET_H
20#define INSTANTMESSAGINGWIDGET_H
21
22#include <QWidget>
23#include <QKeyEvent>
24
25#include "call.h"
26#include "media/media.h"
27
28namespace Ui {
29class InstantMessagingWidget;
30}
31
32class InstantMessagingWidget : public QWidget
33{
34 Q_OBJECT
35
36public:
37 explicit InstantMessagingWidget(QWidget *parent = 0);
38 ~InstantMessagingWidget();
39 void setMediaText(Call* call);
40
41protected:
42 virtual void keyPressEvent(QKeyEvent *event);
43
Edric Milaretd398dcb2015-06-05 17:02:14 -040044//UI SLOTS
45private slots:
46 void on_sendButton_clicked();
47
Edric Milaretcdc978b2015-06-04 11:25:12 -040048private slots:
49 void mediaAdd(Media::Media *media);
50
51private:
52 Ui::InstantMessagingWidget *ui;
53 void copyToClipboard();
54};
55
56#endif // INSTANTMESSAGINGWIDGET_H