OSDN Git Service

Made getLogFile() function "const" and made sure that we will return a const referenc...
[lamexp/LameXP.git] / src / Model_Progress.h
index 759c8c8..9e86877 100644 (file)
@@ -48,7 +48,8 @@ public:
                JobFailed = 3,
                JobSystem = 4,
                JobWarning = 5,
-               JobPerformance = 6
+               JobPerformance = 6,
+               JobSkipped = 7
        };
        enum SysMsgType
        {
@@ -64,8 +65,10 @@ public:
        QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
 
        //Public functions
-       const QStringList &getLogFile(const QModelIndex &index);
-       const QUuid &getJobId(const QModelIndex &index);
+       const QStringList &getLogFile(const QModelIndex &index) const;
+       const QUuid &getJobId(const QModelIndex &index) const;
+       const JobState getJobState(const QModelIndex &index) const;
+       const QIcon &ProgressModel::getIcon(ProgressModel::JobState state) const;
        void restoreHiddenItems(void);
 
 public slots:
@@ -91,4 +94,9 @@ private:
        const QIcon m_iconSystem;
        const QIcon m_iconWarning;
        const QIcon m_iconPerformance;
+       const QIcon m_iconSkipped;
+       const QIcon m_iconUndefined;
+
+       const QStringList m_emptyList;
+       const QUuid m_emptyUuid;
 };