Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (59 sloc) 2.32 KB
/**********************************************************\
Auto-generated linphone.h
This file contains the auto-generated main plugin object
implementation for the linphone-js project
\**********************************************************/
#ifndef H_linphonePLUGIN
#define H_linphonePLUGIN
#include "PluginWindow.h"
#include "PluginEvents/MouseEvents.h"
#include "PluginEvents/AttachedEvent.h"
#include "PluginEvents/DrawingEvents.h"
#include "PluginCore.h"
#if FB_X11
#include "PluginWindowX11.h"
#elif FB_WIN
#include "PluginWindowWin.h"
#elif FB_MAC
#include "PluginWindowMac.h"
#endif
FB_FORWARD_PTR(linphone)
class linphone : public FB::PluginCore
{
public:
static void StaticInitialize();
static void StaticDeinitialize();
public:
linphone();
virtual ~linphone();
public:
void onPluginReady();
void shutdown();
virtual FB::JSAPIPtr createJSAPI();
// If you want your plugin to always be windowless, set this to true
// If you want your plugin to be optionally windowless based on the
// value of the "windowless" param tag, remove this method or return
// FB::PluginCore::isWindowless()
virtual bool isWindowless() { return false; }
virtual unsigned long getNativeWindowId(void);
BEGIN_PLUGIN_EVENT_MAP()
EVENTTYPE_CASE(FB::MouseDownEvent, onMouseDown, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseUpEvent, onMouseUp, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
EVENTTYPE_CASE(FB::AttachedEvent, onWindowAttached, FB::PluginWindow)
EVENTTYPE_CASE(FB::DetachedEvent, onWindowDetached, FB::PluginWindow)
END_PLUGIN_EVENT_MAP()
/** BEGIN EVENTDEF -- DON'T CHANGE THIS LINE **/
virtual bool onMouseDown(FB::MouseDownEvent *evt, FB::PluginWindow *);
virtual bool onMouseUp(FB::MouseUpEvent *evt, FB::PluginWindow *);
virtual bool onMouseMove(FB::MouseMoveEvent *evt, FB::PluginWindow *);
virtual bool onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow *);
virtual bool onWindowDetached(FB::DetachedEvent *evt, FB::PluginWindow *);
virtual bool draw(FB::RefreshEvent *evt, FB::PluginWindow*);
/** END EVENTDEF -- DON'T CHANGE THIS LINE **/
private:
bool isMain;
bool isVideo;
};
#endif