Debian Codegraph @

Xpjproject/pjsip-apps/src/vidgui/vidwin.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2011 Teluu Inc. (http://www.teluu.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 #ifndef VIDWIN_H
19 #define VIDWIN_H
20
21 #include <pjsua.h>
22 #include <QWidget>
23 #include <QBoxLayout>
24
25 class VidWin : public QWidget
26 {
27 Q_OBJECT
28
29 public:
30 VidWin(const pjmedia_vid_dev_hwnd *hwnd,
31 QWidget* parent = 0,
32 Qt::WindowFlags f = (Qt::WindowFlags)0);
33 virtual ~VidWin();
34 QSize sizeHint() const { return size_hint; }
35
36 void putIntoLayout(QBoxLayout *layout);
37
38 protected:
39 virtual bool event(QEvent *e);
40
41 private:
42 pjmedia_vid_dev_hwnd hwnd;
43 void *orig_parent;
44 QSize size_hint;
45
46 void attach();
47 void detach();
48 void set_size();
49 void get_size();
50 void show_sdl(bool visible=true);
51 };
52
53 #endif
54