Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

PrintService Class Reference

The class PrintService provides the Qt Extended Printing service. More...

    #include <PrintService>

Inherits QtopiaAbstractService.

Public Functions

Public Slots

Additional Inherited Members


Detailed Description

The class PrintService provides the Qt Extended 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 © 2009 Nokia Trademarks
Qt Extended 4.4.3