kio
KShellCompletion Class Reference
This class does shell-like completion of file names. More...
#include <kshellcompletion.h>
Inheritance diagram for KShellCompletion:
Public Member Functions | |
KShellCompletion () | |
QString | makeCompletion (const QString &text) |
Protected Member Functions | |
void | postProcessMatch (QString *match) const |
void | postProcessMatches (KCompletionMatches *matches) const |
void | postProcessMatches (QStringList *matches) const |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
This class does shell-like completion of file names.A string passed to makeCompletion() will be interpreted as a shell command line. Completion will be done on the last argument on the line. Returned matches consist of the first arguments (uncompleted) plus the completed last argument.
Shell-like completion of file names
Definition at line 40 of file kshellcompletion.h.
Constructor & Destructor Documentation
KShellCompletion::KShellCompletion | ( | ) |
Member Function Documentation
Finds completions to the given text.
The first match is returned and emitted in the signal match().
- Parameters:
-
text the text to complete
- Returns:
- the first match, or QString::null if not found
Reimplemented from KURLCompletion.
Definition at line 46 of file kshellcompletion.cpp.
void KShellCompletion::postProcessMatch | ( | QString * | match | ) | const [protected] |
void KShellCompletion::postProcessMatches | ( | KCompletionMatches * | matches | ) | const [protected] |
void KShellCompletion::postProcessMatches | ( | QStringList * | matches | ) | const [protected] |
void KShellCompletion::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
The documentation for this class was generated from the following files: