Changeset View
Changeset View
Standalone View
Standalone View
libkcups/JobModel.h
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 124 | void insertUpdateJob(const QString &text, | |||
---|---|---|---|---|---|
130 | uint jobId, | 130 | uint jobId, | ||
131 | uint jobState, | 131 | uint jobState, | ||
132 | const QString &jobStateReasons, | 132 | const QString &jobStateReasons, | ||
133 | const QString &jobName, | 133 | const QString &jobName, | ||
134 | uint jobImpressionsCompleted); | 134 | uint jobImpressionsCompleted); | ||
135 | 135 | | |||
136 | private: | 136 | private: | ||
137 | int jobRow(int jobId); | 137 | int jobRow(int jobId); | ||
138 | void insertJob(int pos, const KCupsJob &job); | 138 | void appendJob(const KCupsJob &job); | ||
139 | void updateJob(int pos, const KCupsJob &job); | 139 | void updateJob(int pos, const KCupsJob &job); | ||
140 | QString jobStatus(ipp_jstate_e job_state); | 140 | QString jobStatus(ipp_jstate_e job_state); | ||
141 | void clear(); | 141 | void clear(); | ||
142 | 142 | | |||
143 | KCupsRequest *m_jobRequest = nullptr; | 143 | KCupsRequest *m_jobRequest = nullptr; | ||
144 | QString m_destName; | 144 | QString m_destName; | ||
145 | QString m_processingJob; | 145 | QString m_processingJob; | ||
146 | QHash<int, QByteArray> m_roles; | 146 | QHash<int, QByteArray> m_roles; | ||
147 | int m_whichjobs = CUPS_WHICHJOBS_ACTIVE; | 147 | int m_whichjobs = CUPS_WHICHJOBS_ACTIVE; | ||
148 | WId m_parentId = 0; | 148 | WId m_parentId = 0; | ||
149 | }; | 149 | }; | ||
150 | 150 | | |||
151 | #endif // JOB_MODEL_H | 151 | #endif // JOB_MODEL_H |