KExtProcess::ProcessFactory Class Reference
#include <processfactory.h>
Inheritance diagram for KExtProcess::ProcessFactory:

Detailed Description
ProcessFactory - Create a process based on the name.This class is a singleton.
FIXME: Why did I choose the singleton pattern over simple static methods? There's no need for a factory OBJECT, just a CLASS would suffice...
- Martijn
Definition at line 60 of file processfactory.h.
Public Member Functions | |
| virtual | ~ProcessFactory () |
| ExtProcess * | createProcess (const QString &processType, QObject *parent=0, const char *name=0) |
| ExtProcess * | createProcess (Profile *profile, QObject *parent=0, const char *name=0) |
| QWidget * | createProcessConfigWidget (const ProfileStep &step, QWidget *parentWidget=0, const char *name=0) |
| const ProcessTypeInfoList | processTypes () const |
Static Public Member Functions | |
| static ProcessFactory * | self () |
Constructor & Destructor Documentation
|
|
Destructor.
Definition at line 67 of file processfactory.cpp. |
Member Function Documentation
|
||||||||||||||||
|
Create an ExtProcess defined by a Profile. Returns a null pointer if creation fails (i.e. unknown process type). When the profile specifies more than one step all additional steps are created as child objects of eachother. The first ProfileStep is the starting point, but not the ExtProcess that actually controls the application that ultimately has to be run. Thus it's the deepest object in the hierarchy and the LAST ProfileStep is the returned ExtProcess. Example: 1. SSH to me@myserver 2. Su to root The returned process is an SuProcess which has a SSHProcess as child.
Definition at line 104 of file processfactory.cpp. |
|
||||||||||||||||
|
Create an ExtProcess defined by the specified name.
Definition at line 82 of file processfactory.cpp. |
|
||||||||||||||||
|
Create a configuration widget for an ExtProcess defined by the specified name.
Definition at line 184 of file processfactory.cpp. |
|
|
Get a list of all available process types that can be created. Note that NullProcess is not in the list, since it is a builtin that is created in certain error conditions, but not explicitly available for creation. Definition at line 155 of file processfactory.cpp. |
|
|
Get our singleton instance. Creates a new instance if none exists yet. Definition at line 74 of file processfactory.cpp. |
The documentation for this class was generated from the following files:

