24 #if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
25 #warning internal header, do not use except if you are a TDEPrint developer
29 #include <tqvaluevector.h>
30 #include <tdeprint/kmobject.h>
31 #include <tdelibs_export.h>
40 class TDEPRINT_EXPORT KMJob :
public KMObject
68 KMJob(
const KMJob& j);
70 KMJob& operator=(
const KMJob& j);
71 void copy(
const KMJob& j);
73 TQString stateString();
74 bool isCompleted()
const {
return (m_state >= Cancelled && m_state <= Completed); }
75 bool isActive()
const {
return !isCompleted(); }
78 int id()
const {
return m_ID; }
79 void setId(
int id) { m_ID = id; }
80 const TQString& name()
const {
return m_name; }
81 void setName(
const TQString& s) { m_name = s; }
82 const TQString& printer()
const {
return m_printer; }
83 void setPrinter(
const TQString& s) { m_printer = s; }
84 const TQString& owner()
const {
return m_owner; }
85 void setOwner(
const TQString& s) { m_owner = s; }
86 int state()
const {
return m_state; }
87 void setState(
int s) { m_state = s; }
88 int size()
const {
return m_size; }
89 void setSize(
int s) { m_size = s; }
90 const TQString& uri()
const {
return m_uri; }
91 void setUri(
const TQString& s) { m_uri = s; }
92 int type()
const {
return m_type; }
93 void setType(
int t) { m_type = t; }
94 int pages()
const {
return m_pages; }
95 void setPages(
int p) { m_pages = p; };
96 int processedPages()
const {
return m_processedpages; }
97 void setProcessedPages(
int p) { m_processedpages = p; }
98 int processedSize()
const {
return m_processedsize; }
99 void setProcessedSize(
int s) { m_processedsize = s; }
100 bool isRemote()
const {
return m_remote; }
101 void setRemote(
bool on) { m_remote = on; }
103 TQString attribute(
int i)
const {
return m_attributes[i]; }
104 void setAttribute(
int i,
const TQString& att) { m_attributes[i] = att; }
105 int attributeCount()
const {
return m_attributes.size(); }
106 void setAttributeCount(
int c) { m_attributes.resize(c); }
122 int m_processedpages;
127 TQValueVector<TQString> m_attributes;