• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDEPrint

KPDriverPage Class Reference

#include <kpdriverpage.h>

Inheritance diagram for KPDriverPage:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 27 of file kpdriverpage.h.


Public Member Functions

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

Protected Attributes

DriverView * m_view

Constructor & Destructor Documentation

KPDriverPage::KPDriverPage ( KMPrinter *  p,
DrMain *  d = 0,
QWidget *  parent = 0 
) [explicit]

Definition at line 27 of file kpdriverpage.cpp.

KPDriverPage::~KPDriverPage (  ) 

Definition at line 41 of file kpdriverpage.cpp.


Member Function Documentation

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.

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 45 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.


Member Data Documentation

DriverView* KPDriverPage::m_view [protected]

Definition at line 38 of file kpdriverpage.h.


The documentation for this class was generated from the following files:
  • kpdriverpage.h
  • kpdriverpage.cpp

KDEPrint

Skip menu "KDEPrint"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  •   KDEPrint
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal