diff -r fcf435874395 -r 45c889eae324 front_idill/extern/fajran-npTuioClient/src/plugin.h --- a/front_idill/extern/fajran-npTuioClient/src/plugin.h Thu Apr 19 11:53:06 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -// -// Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -/* - Modified by alexandre.bastien@iri.centrepompidou.fr to manage TUIO strings. -*/ - -#ifndef PLUGIN_H -#define PLUGIN_H - -#include "pluginbase.h" -#include "client.h" - -#include -#include - -extern NPBool plugInitialized; - -class nsPluginInstance : public nsPluginInstanceBase -{ -public: - nsPluginInstance(nsPluginCreateData* ); - virtual ~nsPluginInstance(); - - // We are required to implement these three methods. - NPBool init(NPWindow *aWindow); - NPBool isInitialized() { return plugInitialized; } - void shut(); - - NPError GetValue(NPPVariable variable, void *value); - NPError SetWindow(NPWindow *aWindow); - - NPError NewStream(NPMIMEType type, NPStream *stream, NPBool seekable, - uint16 *stype); - NPError DestroyStream(NPStream * stream, NPError reason); - - int32_t WriteReady(NPStream *stream); - int32_t Write(NPStream *stream, int32_t offset, int32_t len, void *buffer); - - NPError WriteStatus(const char *msg) const; - - void event(TuioEventData); - - -private: - NPP _instance; - - int _port; - std::string _callback; -}; - -// end of __PLUGIN_H__ -#endif - -// Local Variables: -// mode: C++ -// End: