summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/vidgui/vidwin.h
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2011-08-01 12:57:45 +0000
committerNanang Izzuddin <nanang@teluu.com>2011-08-01 12:57:45 +0000
commit7ff94efc1c42866646b688b3dbc8e42fc877ae71 (patch)
tree3333f12456b5d75c89e896e2f63f67eb79d15b09 /pjsip-apps/src/vidgui/vidwin.h
parentb3839502c091e38be8195eb403b5c5d243b4548d (diff)
Re #1327: Very early version of simple video GUI, built on Qt, should run on win/lin/mac.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3686 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/vidgui/vidwin.h')
-rw-r--r--pjsip-apps/src/vidgui/vidwin.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/pjsip-apps/src/vidgui/vidwin.h b/pjsip-apps/src/vidgui/vidwin.h
new file mode 100644
index 00000000..629a960e
--- /dev/null
+++ b/pjsip-apps/src/vidgui/vidwin.h
@@ -0,0 +1,33 @@
+#ifndef VIDWIN_H
+#define VIDWIN_H
+
+#include <pjsua.h>
+#include <QWidget>
+
+class VidWin : public QWidget
+{
+ Q_OBJECT
+
+public:
+ // hwnd Handle of the video rendering window.
+ VidWin(pjmedia_vid_dev_hwnd *hwnd = NULL,
+ QWidget* parent = 0,
+ Qt::WindowFlags f = 0);
+ virtual ~VidWin();
+
+protected:
+ void resizeEvent(QResizeEvent *e);
+
+private:
+ pjmedia_vid_dev_hwnd hwnd;
+ //pjmedia_vid_dev_hwnd old_parent_hwnd;
+ pj_timer_entry timer_entry;
+
+ static void timer_cb(pj_timer_heap_t *timer_heap,
+ struct pj_timer_entry *entry);
+
+ void embed();
+ void resize();
+};
+
+#endif