Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KScanDialogFactory Class Reference

#include <kscan.h>

Inheritance diagram for KScanDialogFactory:

KLibFactory List of all members.

Public Methods

virtual KScanDialogcreateDialog (QWidget *parent=0, const char *name=0, bool modal=false)=0

Protected Methods

virtual QObject * createObject (QObject *parent=0, const char *name=0, const char *classname="QObject", const QStringList &args=QStringList())
virtual void virtual_hook (int id, void *data)

Detailed Description

A factory for creating a KScanDialog. You need to reimplement createDialog().

Definition at line 163 of file kscan.h.


Member Function Documentation

virtual KScanDialog* KScanDialogFactory::createDialog QWidget *    parent = 0,
const char *    name = 0,
bool    modal = false
[pure virtual]
 

Your library should reimplement this method to return your KScanDialog derived dialog.

virtual QObject* KScanDialogFactory::createObject QObject *    parent = 0,
const char *    name = 0,
const char *    classname = "QObject",
const QStringList &    args = QStringList()
[protected, virtual]
 

Creates a new object. The returned object has to be derived from the requested classname.

It is valid behavior to create different kinds of objects depending on the requested classname. For example a koffice library may usually return a pointer to KoDocument. But if asked for a "QWidget", it could create a wrapper widget, that encapsulates the Koffice specific features.

This function is called by create()

Parameters:
parent  the parent of the QObject, 0 for no parent
name  the name of the QObject, 0 for no name
classname  the name of the class
args  a list of arguments

Implements KLibFactory.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:22 2003 for kdelibs by doxygen1.2.18