Update of /cvsroot/wxlua/wxLua/modules/wxluasocket/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17492/wxLua/modules/wxluasocket/include
Added Files:
wxlhandl.h
Log Message:
moved wxlhandl.h/cpp to wxluasocket lib (that's where it's used) file was wxLuaLibrary, library
--- NEW FILE: wxlhandl.h ---
////////////////////////////////////////////////////////////////////////////////
// Purpose: wxLuaHandler - Custom Lua Handler
// Author: Francis Irving
// Created: 16/01/2002
// Modified: J. Winwood. April 2002. Added debugging interfaces
// Copyright: (c) 2002 Creature Labs. All rights reserved.
// Copyright: (c) 2002 Lomtick Software. All rights reserved.
// Licence: wxWidgets licence
////////////////////////////////////////////////////////////////////////////////
#ifndef _WXLHANDL_H_
#define _WXLHANDL_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "wxlhandl.h"
#endif
#include "wxlua/include/wxldefs.h"
#include "wx/thread.h"
class WXDLLIMPEXP_WXLUA wxLuaDebugEvent;
class WXDLLIMPEXP_WXLUA wxLuaStackFrame;
// ----------------------------------------------------------------------------
// wxLuaHandler - Allow for Custom Lua Handler (an alternative to wxLuaApp)
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_WXLUA wxLuaHandler
{
public:
wxLuaHandler();
virtual ~wxLuaHandler();
virtual void AddPendingEvent(wxEvent& event) = 0;
virtual bool ProcessEvent(wxEvent& event) = 0;
virtual void DisplayError(const wxString &strError) const = 0;
//#if wxUSE_LUASTACKFRAME FIXME - do we need this? see also wxluadebug/src/staktree.cpp
// virtual void SetStackFrame(wxLuaStackFrame *pStackFrame) = 0;
//#endif // wxUSE_LUASTACKFRAME
void EnterLuaCriticalSection() { m_luaCriticalSection.Enter(); }
void LeaveLuaCriticalSection() { m_luaCriticalSection.Leave(); }
// Get the single global wxLuaHandler
// note: if sm_luahandler = NULL let this fail hard, it should NEVER happen
static wxLuaHandler& GetHandler() { return *sm_luahandler; }
protected:
static wxLuaHandler* sm_luahandler;
wxCriticalSection m_luaCriticalSection;
};
// Lua App/Debugger Interface - use wxLuaHandler::GetHandler
wxDEPRECATED( wxLuaHandler& wxGetLuaHandler() );
#endif //_WXLHANDL_H_
|