OSDN Git Service

Updated README file.
[x264-launcher/x264-launcher.git] / src / model_jobList.h
index 9357fd7..afb6674 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Simple x264 Launcher
-// Copyright (C) 2004-2013 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);
@@ -60,6 +61,17 @@ public:
        const OptionsModel *getJobOptions(const QModelIndex &index);
        QModelIndex getJobIndexById(const QUuid &id);
 
+       size_t saveQueuedJobs(void);
+       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;