#include <kurlcompletion.h>
Inheritance diagram for KURLCompletion:

Public Types | |
| enum | Mode |
Public Methods | |
| KURLCompletion () | |
| KURLCompletion (Mode) | |
| virtual | ~KURLCompletion () |
| virtual QString | makeCompletion (const QString &) |
| virtual void | setDir (const QString &dir) |
| virtual QString | dir () const |
| virtual bool | isRunning () const |
| virtual void | stop () |
| virtual Mode | mode () const |
| virtual void | setMode (Mode mode) |
| virtual bool | replaceEnv () const |
| virtual void | setReplaceEnv (bool replace) |
| virtual bool | replaceHome () const |
| virtual void | setReplaceHome (bool replace) |
| QString | replacedPath (const QString &text) |
Protected Methods | |
| void | postProcessMatch (QString *match) const |
| void | postProcessMatches (QStringList *matches) const |
| void | postProcessMatches (KCompletionMatches *matches) const |
| virtual void | virtual_hook (int id, void *data) |
This class does completion of URLs including user directories (~user) and environment variables. Remote URLs are passed to KIO.
Definition at line 42 of file kurlcompletion.h.
|
|
Determines how completion is done.
Definition at line 54 of file kurlcompletion.h. |
|
|
Constructs a KURLCompletion object in FileCompletion mode. |
|
|
This overloaded constructor allows you to set the Mode to ExeCompletion or FileCompletion without using setMode. Default is FileCompletion |
|
|
Destructs the KURLCompletion object. |
|
|
Returns the current directory. |
|
|
Returns true if asyncronous completion is in progress. |
|
|
Finds completions to the given text. Remote URLs are listed with KIO. For performance reasons, local files are listed with KIO only if KURLCOMPLETION_LOCAL_KIO is set. The completion is done asyncronously if KIO is used. Returns the first match for user, environment, and local dir completion and QString::null for asyncronous completion (KIO). Reimplemented from KCompletion. Reimplemented in KShellCompletion. |
|
|
Returns the completion mode: exe or file completion (default FileCompletion) |
|
|
This method is called after a completion is found and before the matching string is emitted. You can override this method to modify the string that will be emitted. This is necessary e.g. in KURLCompletion(), where files with spaces in their names are shown escaped ("filename\ with\ spaces"), but stored unescaped inside KCompletion. Never delete that pointer! Default implementation does nothing.
Reimplemented from KCompletion. Reimplemented in KShellCompletion. |
|
|
This method is called before a list of all available completions is emitted via matches. You can override this method to modify the found items before match() or matches() are emitted. Never delete that pointer! Default implementation does nothing.
Reimplemented from KCompletion. Reimplemented in KShellCompletion. |
|
|
This method is called before a list of all available completions is emitted via matches. You can override this method to modify the found items before match() or matches are emitted. Never delete that pointer! Default implementation does nothing.
Reimplemented from KCompletion. Reimplemented in KShellCompletion. |
|
|
Replaces username and/or environment variables, depending on the current settings and returns the filtered url. Only works with local files, i.e. returns back the original string for non-local urls. |
|
|
Returns whether environment variables are completed and whether they are replaced internally while finding completions. Default is enabled. |
|
|
Returns whether ~username is completed and whether ~username is replaced internally with the user's home directory while finding completions. Default is enabled. |
|
|
Sets the current directory (used as base for completion) Default = $HOME. |
|
|
Changes the completion mode: exe or file completion |
|
|
Enables/disables completion and replacement (internally) of environment variables in URLs. Default is enabled. |
|
|
Enables/disables completion of ~username and replacement (internally) of ~username with the user's home directory. Default is enabled. |
|
|
Stops asyncronous completion. |
1.2.18