1
/* $Id: vidgui.h 3926 2011-12-27 12:50:17Z bennylp $ */
3
* Copyright (C) 2011-2011 Teluu Inc. (http://www.teluu.com)
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 2 of the License, or
8
* (at your option) any later version.
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.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
#include <QApplication>
27
#include <QMainWindow>
29
#include <QPushButton>
32
#include <QVBoxLayout>
39
class MainWin : public QWidget
44
MainWin(QWidget *parent = 0);
47
static MainWin *instance();
50
void showError(const char *title, pj_status_t status);
51
void showStatus(const char *msg);
53
void on_reg_state(pjsua_acc_id acc_id);
54
void on_call_state(pjsua_call_id call_id, pjsip_event *e);
55
void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, pjsip_rx_data *rdata);
56
void on_call_media_state(pjsua_call_id call_id);
59
void signalNewCall(int, bool);
60
void signalCallReleased();
61
void signalInitVideoWindow();
62
void signalShowStatus(const QString&);
69
void onVidEnabledChanged(int state);
71
void onNewCall(int cid, bool incoming);
72
void onCallReleased();
73
void initVideoWindow();
74
void doShowStatus(const QString& msg);
77
static MainWin *theInstance_;
78
pjsua_acc_id accountId_;
79
pjsua_call_id currentCall_;
83
QPushButton *callButton_,
87
QCheckBox *vidEnabled_;
91
//QStatusBar *statusBar_;
95
QVBoxLayout *vbox_left;
102
#endif /* VIDGUI_H_ */