OSDN Git Service

Happy new year 2020!
[x264-launcher/x264-launcher.git] / src / win_main.h
index e145798..0df916e 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Simple x264 Launcher
-// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2020 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // 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
@@ -27,6 +27,7 @@
 //Qt
 #include <QMainWindow>
 
+//Forward declarations
 class JobListModel;
 class OptionsModel;
 class SysinfoModel;
@@ -48,14 +49,12 @@ namespace Ui
 
 namespace MUtils
 {
+       class IPCChannel;
+       class Taskbar7;
        namespace CPUFetaures
        {
-               struct _cpu_info_t;
                typedef struct _cpu_info_t cpu_info_t;
        }
-
-       class IPCChannel;
-       class Taskbar7;
 }
 
 class MainWindow: public QMainWindow
@@ -74,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<QLabel> m_label[2];
        QScopedPointer<QMovie> m_animation;
        QScopedPointer<QTimer> m_fileTimer;
@@ -112,6 +121,8 @@ private:
 private slots:
        void addButtonPressed();
        void openActionTriggered();
+       void cleanupActionTriggered(void);
+       void postOpActionTriggered(void);
        void abortButtonPressed(void);
        void browseButtonPressed(void);
        void deleteButtonPressed(void);