summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/vidgui/vidwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/vidgui/vidwin.h')
-rw-r--r--pjsip-apps/src/vidgui/vidwin.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/pjsip-apps/src/vidgui/vidwin.h b/pjsip-apps/src/vidgui/vidwin.h
index 629a960e..de6e2753 100644
--- a/pjsip-apps/src/vidgui/vidwin.h
+++ b/pjsip-apps/src/vidgui/vidwin.h
@@ -9,25 +9,25 @@ class VidWin : public QWidget
Q_OBJECT
public:
- // hwnd Handle of the video rendering window.
- VidWin(pjmedia_vid_dev_hwnd *hwnd = NULL,
+ VidWin(const pjmedia_vid_dev_hwnd *hwnd,
QWidget* parent = 0,
Qt::WindowFlags f = 0);
virtual ~VidWin();
+ QSize sizeHint() const { return size_hint; }
protected:
- void resizeEvent(QResizeEvent *e);
+ virtual bool event(QEvent *e);
private:
pjmedia_vid_dev_hwnd hwnd;
- //pjmedia_vid_dev_hwnd old_parent_hwnd;
- pj_timer_entry timer_entry;
+ void *orig_parent;
+ QSize size_hint;
- static void timer_cb(pj_timer_heap_t *timer_heap,
- struct pj_timer_entry *entry);
-
- void embed();
- void resize();
+ void attach();
+ void detach();
+ void set_size();
+ void get_size();
};
#endif
+