- // persistent control properties, may be overriden by HTML & javascript
- void setSourceURL(const char *url) { _psz_src = strdup(url); };
- void setAutoStart(BOOL autostart) { _b_autostart = autostart; };
- void setLoopMode(BOOL loopmode) { _b_loopmode = loopmode; };
- void setMute(BOOL mute) { _b_mute = mute; };
- void setSendEvents(BOOL sendevents) { _b_sendevents = sendevents; };
- void setVisible(BOOL fVisible);
- BOOL getVisible(void) { return _b_visible; };
-
- // container events
+ inline BOOL isDirty(void) { return _b_dirty; };
+ inline void setDirty(BOOL dirty) { _b_dirty = dirty; };
+
+ inline BOOL isRunning(void) { return NULL != _p_libvlc; };
+ HRESULT getVLCObject(int *i_vlc);
+ HRESULT getVLC(libvlc_instance_t** p_vlc);
+ void setErrorInfo(REFIID riid, const char *description);
+
+ // control geometry within container
+ RECT getPosRect(void) { return _posRect; };
+ inline HWND getInPlaceWindow(void) const { return _inplacewnd; };
+ BOOL isInPlaceActive(void);
+
+ /*
+ ** container events
+ */
+ HRESULT onInit(void);
+ HRESULT onLoad(void);
+ HRESULT onActivateInPlace(LPMSG lpMesg, HWND hwndParent, LPCRECT lprcPosRect, LPCRECT lprcClipRect);
+ HRESULT onInPlaceDeactivate(void);
+ HRESULT onAmbientChanged(LPUNKNOWN pContainer, DISPID dispID);
+ HRESULT onClose(DWORD dwSaveOption);