Home · All Classes · Grouped Classes · Annotated · Functions

PrintService Class Reference

The class PrintService provides the Qtopia Printing service. More...

    #include <PrintService>

Inherits QtopiaAbstractService.

Public Functions

Public Slots

Additional Inherited Members


Detailed Description

The class PrintService provides the Qtopia Printing service.

To print a file for example:

    QtopiaServiceRequest service( "Print", "print(QString)" );
    service << fileName;
    service.send();

The Print service creates a print job and puts in a queue in the print server.


Member Function Documentation

PrintService::~PrintService ()

Destroys a print service object.

void PrintService::print ( QString fileName )   [slot]

Prints a file specified by fileName. This slot corresponds to the QCop message Print::print(QString).

void PrintService::print ( QString fileName, QString mimeType )   [slot]

This is an overloaded member function, provided for convenience.

Prints a file specified by fileName. mimeType is optional. This slot corresponds to the QCop message Print::print(QString,QString).

void PrintService::printHtml ( QString html )   [slot]

Prints html document specified by html. This slot corresponds to the QCop message Print::printHtml(QString).


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3