SockIt

SockIt.h

Go to the documentation of this file.
00001 /**********************************************************
00002  Auto-generated SockIt.h
00003 
00004  This file contains the auto-generated main plugin object
00005  implementation for the SockIt project
00006 
00007  \**********************************************************/
00008 #ifndef H_SockItPLUGIN
00009 #define H_SockItPLUGIN
00010 
00011 #include "PluginWindow.h"
00012 #include "PluginEvents/MouseEvents.h"
00013 #include "PluginEvents/AttachedEvent.h"
00014 #include "PluginCore.h"
00015 
00016 FB_FORWARD_PTR(SockIt)
00017 
00018 #include "Logger.h"
00019 
00025 class SockIt: public FB::PluginCore
00026 {
00027     public:
00035         static void StaticInitialize();
00036 
00045         static void StaticDeinitialize();
00046 
00047     public:
00048 
00052         SockIt();
00053 
00060         virtual ~SockIt();
00061 
00062     public:
00063 
00069         void onPluginReady();
00070 
00076         void shutdown();
00077 
00081         virtual FB::JSAPIPtr createJSAPI();
00082 
00086         virtual bool isWindowless()
00087         {
00088             return false;
00089         }
00090 
00091         BEGIN_PLUGIN_EVENT_MAP()
00092         EVENTTYPE_CASE(FB::MouseDownEvent, onMouseDown, FB::PluginWindow)
00093         EVENTTYPE_CASE(FB::MouseUpEvent, onMouseUp, FB::PluginWindow)
00094         EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
00095         EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
00096         EVENTTYPE_CASE(FB::AttachedEvent, onWindowAttached, FB::PluginWindow)
00097         EVENTTYPE_CASE(FB::DetachedEvent, onWindowDetached, FB::PluginWindow)
00098         END_PLUGIN_EVENT_MAP()
00099 
00101         virtual bool onMouseDown(FB::MouseDownEvent *evt, FB::PluginWindow *);
00102         virtual bool onMouseUp(FB::MouseUpEvent *evt, FB::PluginWindow *);
00103         virtual bool onMouseMove(FB::MouseMoveEvent *evt, FB::PluginWindow *);
00104         virtual bool onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow *);
00105         virtual bool onWindowDetached(FB::DetachedEvent *evt, FB::PluginWindow *);
00107 };
00108 
00109 #endif
00110 
 All Classes Files Functions Variables Typedefs Friends Defines