22 #include <tdelocale.h>
30 KMJob::KMJob(
const KMJob& j)
37 KMJob& KMJob::operator=(
const KMJob& j)
47 m_state = KMJob::Error;
48 m_size = m_processedsize = 0;
49 m_type = KMJob::System;
50 m_pages = m_processedpages = 0;
52 m_attributes.resize(1, 0);
55 void KMJob::copy(
const KMJob& j)
59 m_printer = j.m_printer;
66 m_processedsize = j.m_processedsize;
67 m_processedpages = j.m_processedpages;
68 m_remote = j.m_remote;
69 m_attributes = j.m_attributes;
74 TQString KMJob::pixmap()
77 if (m_type == KMJob::Threaded)
78 return TQString::fromLatin1(
"application-x-executable");
81 TQString str(
"tdeprint_job");
85 str.append(
"_process");
88 str.append(
"_stopped");
93 case KMJob::Completed:
94 str.append(
"_completed");
96 case KMJob::Cancelled:
97 str.append(
"_cancelled");
105 TQString KMJob::stateString()
110 case KMJob::Printing:
111 str = i18n(
"Processing...");
114 str = i18n(
"Queued");
122 case KMJob::Cancelled:
123 str = i18n(
"Canceled");
126 str = i18n(
"Aborted");
128 case KMJob::Completed:
129 str = i18n(
"Completed");
132 str = i18n(
"Unknown State",
"Unknown");