]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dialup.h
Compilation fix (CreateTimerImpl is taken from timerunx.cpp, so not inline).
[wxWidgets.git] / include / wx / dialup.h
index 30c06f756c643ec36689798169a08e345b0748e3..3c8a9dfdf9787c8ea9285c65dd3eed455f667547 100644 (file)
 #ifndef _WX_DIALUP_H
 #define _WX_DIALUP_H
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma interface "dialup.h"
-#endif
-
 #if wxUSE_DIALUP_MANAGER
 
 #include "wx/event.h"
@@ -24,7 +20,7 @@
 // misc
 // ----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxArrayString;
+class WXDLLIMPEXP_FWD_BASE wxArrayString;
 
 #define WXDIALUP_MANAGER_DEFAULT_BEACONHOST  wxT("www.yahoo.com")
 
@@ -156,10 +152,8 @@ public:
 // wxDialUpManager events
 // ----------------------------------------------------------------------------
 
-BEGIN_DECLARE_EVENT_TYPES()
-    DECLARE_EVENT_TYPE(wxEVT_DIALUP_CONNECTED, 450)
-    DECLARE_EVENT_TYPE(wxEVT_DIALUP_DISCONNECTED, 451)
-END_DECLARE_EVENT_TYPES()
+extern WXDLLIMPEXP_CORE const wxEventType wxEVT_DIALUP_CONNECTED;
+extern WXDLLIMPEXP_CORE const wxEventType wxEVT_DIALUP_DISCONNECTED;
 
 // the event class for the dialup events
 class WXDLLEXPORT wxDialUpEvent : public wxEvent
@@ -191,7 +185,7 @@ private:
 typedef void (wxEvtHandler::*wxDialUpEventFunction)(wxDialUpEvent&);
 
 #define wxDialUpEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxDialUpEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxDialUpEventFunction, &func)
 
 // macros to catch dialup events
 #define EVT_DIALUP_CONNECTED(func) \