1 /*
2     libjinglecalldialog.h - libjingle support
3 
4     Copyright (c) 2009-2014 by Pali Rohár <pali.rohar@gmail.com>
5 
6     *************************************************************************
7     *                                                                       *
8     * This library is free software; you can redistribute it and/or         *
9     * modify it under the terms of the GNU General Public                   *
10     * License as published by the Free Software Foundation; either          *
11     * version 2 of the License, or (at your option) any later version.      *
12     *                                                                       *
13     *************************************************************************
14 */
15 
16 #ifndef LibjingleCallDialog_H
17 #define LibjingleCallDialog_H
18 
19 #include <QDialog>
20 
21 #include "ui_libjinglecalldialog.h"
22 
23 class QCloseEvent;
24 
25 /**
26  * @author Pali Rohár
27  * @short Dialog for voice call
28  * This is voice call dialog for libjingle example libjingle-call application
29  */
30 class LibjingleCallDialog : public QDialog, public Ui::LibjingleCallDialog
31 {
32 
33 	Q_OBJECT
34 
35 	public:
36 
37 		/**
38 		 * Constructor for voice call dialog
39 		 * use method show() to open and show voice call dialog
40 		 * use method hide() to close and hide voice call dialog
41 		 */
42 		LibjingleCallDialog(QWidget *parent = nullptr);
43 
44 	protected:
45 
46 		/**
47 		 * Reimplement close event
48 		 * Do not close and do not delete this call dialog, but emit signal closed()
49 		 */
50 		virtual void closeEvent(QCloseEvent * e);
51 
52 	Q_SIGNALS:
53 
54 		void closed();
55 
56 };
57 
58 #endif // LibjingleCallDialog_H
59 
60