KPDriverPage Class Reference

Inheritance diagram for KPDriverPage:

KPrintDialogPage QWidget List of all members.

Detailed Description

Definition at line 27 of file kpdriverpage.h.


Public Member Functions

 KPDriverPage (KMPrinter *p, DrMain *d=0, QWidget *parent=0, const char *name=0)
 ~KPDriverPage ()
bool isValid (QString &msg)
void setOptions (const QMap< QString, QString > &opts)
void getOptions (QMap< QString, QString > &opts, bool incldef=false)

Protected Attributes

DriverViewm_view

Member Function Documentation

bool KPDriverPage::isValid ( QString msg  )  [virtual]

Returns true if options selected in the page are valid (no conflict), false otherwise.

When returning false, msg should contain an error message explaining what is wrong in the selected options.

Parameters:
msg should contain an error message when returning false
Returns:
valid status

Reimplemented from KPrintDialogPage.

Definition at line 44 of file kpdriverpage.cpp.

void KPDriverPage::setOptions ( const QMap< QString, QString > &  opts  )  [virtual]

This function is called to update the current page with the options contained in opts.

Reimplement it in subclasses.

Parameters:
opts the structure containing the options to update the page

Reimplemented from KPrintDialogPage.

Definition at line 55 of file kpdriverpage.cpp.

void KPDriverPage::getOptions ( QMap< QString, QString > &  opts,
bool  incldef = false 
) [virtual]

This function is called to fill the structure opts with the selected options from this dialog page.

If incldef is true, include also options with default values, otherwise discard them. Reimplement this function in subclasses.

Parameters:
opts the option set to fill
incldef if true, include also options with default values
See also:
setOptions()

Reimplemented from KPrintDialogPage.

Definition at line 60 of file kpdriverpage.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys