X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fwin_main.h;h=0df916e3ca96eea3eb57fcd37cfe21d392858274;hb=7e7ac8c7037571693078602d4d85579e07f5024f;hp=4f60a44608349dc8620e569cf57ec10c250286b9;hpb=f823b485d7575e4b66ed3effd0f3aecb1462eef8;p=x264-launcher%2Fx264-launcher.git diff --git a/src/win_main.h b/src/win_main.h index 4f60a44..0df916e 100644 --- a/src/win_main.h +++ b/src/win_main.h @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////// // Simple x264 Launcher -// Copyright (C) 2004-2017 LoRd_MuldeR +// Copyright (C) 2004-2020 LoRd_MuldeR // // 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 @@ -73,10 +73,20 @@ protected: virtual void dropEvent(QDropEvent *event); private: + typedef enum + { + POST_OP_DONOTHING = 0, + POST_OP_POWERDOWN = 1, + POST_OP_HIBERNATE = 2 + } + postOp_t; + Ui::MainWindow *const ui; MUtils::IPCChannel *const m_ipcChannel; + postOp_t m_postOperation; bool m_initialized; + QScopedPointer m_label[2]; QScopedPointer m_animation; QScopedPointer m_fileTimer; @@ -112,6 +122,7 @@ private slots: void addButtonPressed(); void openActionTriggered(); void cleanupActionTriggered(void); + void postOpActionTriggered(void); void abortButtonPressed(void); void browseButtonPressed(void); void deleteButtonPressed(void);