OSDN Git Service

Updated README file.
[x264-launcher/x264-launcher.git] / src / model_jobList.h
index 648b9f3..afb6674 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Simple x264 Launcher
-// Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2016 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
@@ -52,6 +52,7 @@ public:
        bool resumeJob(const QModelIndex &index);
        bool abortJob(const QModelIndex &index);
        bool deleteJob(const QModelIndex &index);
+       bool moveJob(const QModelIndex &index, const int &direction);
        LogFileModel *getLogFile(const QModelIndex &index);
        const QString &getJobSourceFile(const QModelIndex &index);
        const QString &getJobOutputFile(const QModelIndex &index);
@@ -64,6 +65,13 @@ public:
        size_t loadQueuedJobs(const SysinfoModel *sysinfo);
        void clearQueuedJobs(void);
 
+       typedef enum
+       {
+               MOVE_UP   = +1,
+               MOVE_DOWN = -1
+       }
+       move_t;
+
 protected:
        QList<QUuid> m_jobs;
        QMap<QUuid, QString> m_name;