KExtProcess::Profile Class Reference
#include <profile.h>
Inheritance diagram for KExtProcess::Profile:

Detailed Description
Profile for KExtProcess.A profile contains all ExtProcesses that should be linked together to reach the endpoint from where the actual process can be launched.
Without using a profile you have to manually use the ProcessFactory to create and link instances. This is generally only useful for inhouse tools that don't require variable logon procedures.
- Author:
- Martijn Klingens <klingens@kde.org>
Definition at line 42 of file profile.h.
Public Slots | |
| void | save (const QString &filename) |
| void | load (const QString &filename) |
| static QStringList | profileList () |
| QString | filename () const |
| QString | caption () const |
Signals | |
| void | stepMoved (const ProfileStep &oldStep, int oldIndex, int newIndex) |
| void | stepRemoved (const ProfileStep &oldStep, int oldIndex) |
| void | stepAdded (const ProfileStep &step, int index) |
| void | profileChanged () |
Public Member Functions | |
| Profile (QObject *parent, const char *name=0) | |
| void | cloneFrom (Profile *originalProfile) |
| void | addStep (const ProfileStep &step) |
| ProfileStepList | steps () const |
| ProfileStep | step (int index) const |
| void | removeStep (int index) |
| void | moveStepUp (int index) |
| void | moveStepDown (int index) |
Constructor & Destructor Documentation
|
||||||||||||
|
Standard constructor, creates an empty profile.
Definition at line 35 of file profile.cpp. |
Member Function Documentation
|
|
Add an extra login step at the end of the profile.
Definition at line 56 of file profile.cpp. |
|
|
Definition at line 312 of file profile.cpp. |
|
|
Create a copy of an existing profile.
Definition at line 46 of file profile.cpp. |
|
|
Definition at line 307 of file profile.cpp. |
|
|
Load a profile from disk. See the documentation for details about the storage of profiles.
Definition at line 144 of file profile.cpp. |
|
|
Move the step identified by.
Does nothing for out-of-bound indexes; emits stepMoved() if the step could actually be moved. Definition at line 100 of file profile.cpp. |
|
|
Move the step identified by.
Does nothing for out-of-bound indexes; emits stepMoved() if the step could actually be moved. Definition at line 82 of file profile.cpp. |
|
|
Emitted after the complete profile has changed. This happens when calling cloneFrom() or load(). |
|
|
Return a list of all available profiles.
Definition at line 128 of file profile.cpp. |
|
|
Remove a step identified by its index.
Definition at line 72 of file profile.cpp. |
|
|
Save the profile to disk. Profiles are located in the 'data' section of an application named 'kextprocess', which in practice means they can reside anywhere under $KDEDIRS/share/apps/kextprocess and $KDEHOME/share/apps/kextprocess. Profiles are deliberately stored under the explicit 'kextprocess' KInstance, to make sure they are shared across applications that use the library -- in general it makes no sense to have per-application profiles instead of per-user profiles. The config is stored in KConfig-format using KSimpleConfig, but the file format is not meant to be manually read by applications. (It's possible, and for maintainability of the library the format has to be documented anyway, but you're not supposed to do it :)
Definition at line 259 of file profile.cpp. |
|
|
Return a single step.
Definition at line 67 of file profile.cpp. |
|
||||||||||||
|
Emitted after a step is added. Steps are added at the bottom. The index of the bottom item is passed. |
|
||||||||||||||||
|
Emitted AFTER a profile step is moved. You can use the passed step and the indexes or reread the list by calling steps() again. This signal is emitted both when moving steps up and down. |
|
||||||||||||
|
Emitted AFTER a profile step is removed. You can use the passed step and old index or reread the list by calling steps() again. Any references you have to the step will remain valid due to ProfileStep's explicitly shared nature, but those steps will no longer be part of the profile. |
|
|
Return all steps in the profile.
Definition at line 62 of file profile.cpp. |
The documentation for this class was generated from the following files:

