SockIt
|
00001 /**********************************************************\ 00002 00003 Auto-generated SockIt.cpp 00004 00005 This file contains the auto-generated main plugin object 00006 implementation for the SockIt project 00007 00008 \**********************************************************/ 00009 00010 #include "SockItAPI.h" 00011 00012 #include "SockIt.h" 00013 00014 void SockIt::StaticInitialize() 00015 { 00016 // add any library initialization routines here 00017 } 00018 00019 void SockIt::StaticDeinitialize() 00020 { 00021 Logger::shutdown(); 00022 } 00023 00024 SockIt::SockIt() 00025 { 00026 } 00027 00028 SockIt::~SockIt() 00029 { 00030 releaseRootJSAPI(); 00031 m_host->freeRetainedObjects(); 00032 } 00033 00034 void SockIt::onPluginReady() 00035 { 00036 } 00037 00038 void SockIt::shutdown() 00039 { 00040 } 00041 00042 00043 FB::JSAPIPtr SockIt::createJSAPI() 00044 { 00045 return boost::make_shared<SockItAPI>(FB::ptr_cast<SockIt>(shared_from_this()), m_host); 00046 } 00047 00048 bool SockIt::onMouseDown(FB::MouseDownEvent *evt, FB::PluginWindow *) 00049 { 00050 //printf("Mouse down at: %d, %d\n", evt->m_x, evt->m_y); 00051 return false; 00052 } 00053 00054 bool SockIt::onMouseUp(FB::MouseUpEvent *evt, FB::PluginWindow *) 00055 { 00056 //printf("Mouse up at: %d, %d\n", evt->m_x, evt->m_y); 00057 return false; 00058 } 00059 00060 bool SockIt::onMouseMove(FB::MouseMoveEvent *evt, FB::PluginWindow *) 00061 { 00062 //printf("Mouse move at: %d, %d\n", evt->m_x, evt->m_y); 00063 return false; 00064 } 00065 bool SockIt::onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow *) 00066 { 00067 // The window is attached; act appropriately 00068 return false; 00069 } 00070 00071 bool SockIt::onWindowDetached(FB::DetachedEvent *evt, FB::PluginWindow *) 00072 { 00073 // The window is about to be detached; act appropriately 00074 return false; 00075 } 00076