PrintJob Class Reference

File printing job'. More...

#include <printjob.h>

Inheritance diagram for PrintJob:
UrpoJob

List of all members.

Public Slots

void copyReady (bool success)
 When file has copied (internal use only).
void printReady (bool success)
 When files has printed (internal use only).
void deleteReady (bool success)
 When file has deleted (internal use only).
void printFile (const QString &path, const QString &printOptions)
 Print sigle file.
void startJob ()
 Do not use, thows execption!
void cancelJob ()
 Cancel printing job.

Public Member Functions

 PrintJob (UrpoConnection *connection)

Detailed Description

File printing job'.

Author:
Arto Hyv├Ąttinen
Date:
2010-06-17
Version:
0.1

Job for printing files. First, connect finished()-signal (called when ready) Then, printFile()

Note:
start() is not for use!

Definition at line 42 of file printjob.h.


Member Function Documentation

void PrintJob::printFile ( const QString &  path,
const QString &  printOptions 
) [slot]

Print sigle file.

  • path Path to file
  • printOptions cups print options for lp command

When finished, emit finished() signal

Definition at line 66 of file printjob.cpp.

void PrintJob::startJob (  )  [virtual, slot]

Do not use, thows execption!

This function exits only because of bad class planning.

Note:
Do NOT use!
Exceptions:
std::logic_error Thow error becouse this function is not for use!

Implements UrpoJob.

Definition at line 59 of file printjob.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Sep 27 18:46:05 2010 for Urpo by  doxygen 1.6.3