add more flexible and safer template Connect() overloads (#10000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,8 +43,8 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
|
||||
DEFINE_EVENT_TYPE(wxEVT_DIALUP_CONNECTED)
|
||||
DEFINE_EVENT_TYPE(wxEVT_DIALUP_DISCONNECTED)
|
||||
wxDEFINE_EVENT( wxEVT_DIALUP_CONNECTED, wxDialUpEvent )
|
||||
wxDEFINE_EVENT( wxEVT_DIALUP_DISCONNECTED, wxDialUpEvent )
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// A class which groups functions dealing with connecting to the network from a
|
||||
|
||||
@@ -46,19 +46,17 @@ public:
|
||||
typedef void (wxEvtHandler::*wxSoundBackendSDLNotificationFunction)
|
||||
(wxSoundBackendSDLNotification&);
|
||||
|
||||
BEGIN_DECLARE_EVENT_TYPES()
|
||||
DECLARE_LOCAL_EVENT_TYPE(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, -1)
|
||||
END_DECLARE_EVENT_TYPES()
|
||||
wxDECLARE_LOCAL_EVENT( wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, wxSoundBackendSDLNotification )
|
||||
|
||||
#define EVT_SOUND_BACKEND_SDL_NOTIFICATON(func) \
|
||||
DECLARE_EVENT_TABLE_ENTRY(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, \
|
||||
-1, \
|
||||
-1, \
|
||||
(wxObjectEventFunction) wxStaticCastEvent( wxSoundBackendSDLNotificationFunction, & func ), \
|
||||
wxEVENT_HANDLER_CAST( wxSoundBackendSDLNotificationFunction, func ), \
|
||||
(wxObject *) NULL ),
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxSoundBackendSDLNotification, wxEvtHandler)
|
||||
DEFINE_EVENT_TYPE(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION)
|
||||
wxDEFINE_EVENT( wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, wxSoundBackendSDLNotification )
|
||||
|
||||
wxSoundBackendSDLNotification::wxSoundBackendSDLNotification()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user