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 0ffc3b7..9e86877 100644 (file)
@@ -65,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:
@@ -93,4 +95,8 @@ private:
        const QIcon m_iconWarning;
        const QIcon m_iconPerformance;
        const QIcon m_iconSkipped;
+       const QIcon m_iconUndefined;
+
+       const QStringList m_emptyList;
+       const QUuid m_emptyUuid;
 };