X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32e163aec19e1668699cbcd815629c8c98a3bc25..7e25f59e48c3ee93fcb54aa7fca1fd51628c2fac:/include/wx/utils.h?ds=sidebyside diff --git a/include/wx/utils.h b/include/wx/utils.h index 9bca5317cb..2b984a8d4c 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -220,6 +220,15 @@ enum wxKillError wxKILL_ERROR // another, unspecified error }; +enum wxShutdownFlags +{ + wxSHUTDOWN_POWEROFF, // power off the computer + wxSHUTDOWN_REBOOT // shutdown and reboot +}; + +// Shutdown or reboot the PC +WXDLLEXPORT bool wxShutdown(wxShutdownFlags wFlags); + // send the given signal to the process (only NONE and KILL are supported under // Windows, all others mean TERM), return 0 if ok and -1 on error // @@ -366,6 +375,8 @@ WXDLLEXPORT void wxFlushEvents(); // ctor and enables them back in its dtor class WXDLLEXPORT wxWindowDisabler { + DECLARE_NO_COPY_CLASS(wxWindowDisabler) + public: wxWindowDisabler(wxWindow *winToSkip = (wxWindow *)NULL); ~wxWindowDisabler();