1
1
/***************************************************************************
2
2
* Copyright (C) 2010 by Daniel Nicoletti *
3
* dantti85-pk@yahoo.com.br *
5
5
* This program is free software; you can redistribute it and/or modify *
6
6
* it under the terms of the GNU General Public License as published by *
64
PrintQueueModel(const QString &destName, WId parentId, QObject *parent = 0);
64
explicit PrintQueueModel(const QString &destName, WId parentId, QObject *parent = 0);
65
66
QString processingJob() const;
67
68
Qt::ItemFlags flags(const QModelIndex &index) const;
77
78
void setWhichJobs(int whichjobs);
78
79
KCupsRequest* modifyJob(int row, JobAction action, const QString &newDestName = QString(), const QModelIndex &parent = QModelIndex());
81
83
void getJobFinished();
85
void createSubscription();
86
void createSubscriptionFinished();
87
void jobCompleted(const QString &text,
88
const QString &printerUri,
89
const QString &printerName,
91
const QString &printerStateReasons,
92
bool printerIsAcceptingJobs,
95
const QString &jobStateReasons,
96
const QString &jobName,
97
uint jobImpressionsCompleted);
98
void insertUpdateJob(const QString &text,
99
const QString &printerUri,
100
const QString &printerName,
102
const QString &printerStateReasons,
103
bool printerIsAcceptingJobs,
106
const QString &jobStateReasons,
107
const QString &jobName,
108
uint jobImpressionsCompleted);
111
int jobRow(int jobId);
112
void insertJob(int pos, const KCupsJob &job);
113
void updateJob(int pos, const KCupsJob &job);
114
QString jobStatus(ipp_jstate_e job_state);
85
116
KCupsPrinter *m_printer;
86
117
KCupsRequest *m_jobRequest;
87
118
QString m_destName;
88
119
QString m_processingJob;
91
QStringList m_requestedAttr;
93
int jobRow(int jobId);
94
void insertJob(int pos, const KCupsJob &job);
95
void updateJob(int pos, const KCupsJob &job);
96
QString jobStatus(ipp_jstate_e job_state);
122
QStringList m_jobAttributes;
123
int m_subscriptionId;