org.kde.koala
public class KURLCompletion extends KCompletion
UNKNOWN: Completion of a single URL.
Field Summary | |
---|---|
static int | DirCompletion |
static int | ExeCompletion
Determines how completion is done.
|
static int | FileCompletion |
Constructor Summary | |
---|---|
protected | KURLCompletion(Class dummy) |
KURLCompletion()
Constructs a KURLCompletion object in FileCompletion mode. | |
KURLCompletion(int arg1)
This overloaded constructor allows you to set the Mode to ExeCompletion
or FileCompletion without using setMode. |
Method Summary | |
---|---|
String | className() |
protected void | customEvent(QCustomEvent e) |
String | dir()
Returns the current directory, as it was given in setDir |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isRunning()
Check whether asynchronous completion is in progress. |
String | makeCompletion(String text)
Finds completions to the given text.
|
QMetaObject | metaObject() |
int | mode()
Returns the completion mode: exe or file completion (default FileCompletion). |
protected void | postProcessMatch(StringBuffer match) |
protected void | postProcessMatches(String[] matches) |
String | replacedPath(String text)
Replaces username and/or environment variables, depending on the
current settings and returns the filtered url. |
static String | replacedPath(String text, boolean replaceHome, boolean replaceEnv) |
static String | replacedPath(String text, boolean replaceHome) |
boolean | replaceEnv()
Checks whether environment variables are completed and
whether they are replaced internally while finding completions.
|
boolean | replaceHome()
Returns whether ~username is completed and whether ~username
is replaced internally with the user's home directory while
finding completions. |
void | setDir(String dir)
Sets the current directory (used as base for completion).
|
void | setMode(int mode)
Changes the completion mode: exe or file completion |
void | setReplaceEnv(boolean replace)
Enables/disables completion and replacement (internally) of
environment variables in URLs. |
void | setReplaceHome(boolean replace)
Enables/disables completion of ~username and replacement
(internally) of ~username with the user's home directory.
|
protected void | slotIOFinished(Job arg1) |
void | stop()
Stops asynchronous completion. |
UNKNOWN: Constructs a KURLCompletion object in FileCompletion mode.
UNKNOWN: This overloaded constructor allows you to set the Mode to ExeCompletion or FileCompletion without using setMode.
Returns: the current directory (path or URL)
UNKNOWN: Returns the current directory, as it was given in setDir
Returns: true if asynchronous completion is in progress
UNKNOWN: Check whether asynchronous completion is in progress.
Parameters: text the text to complete
Returns: the first match, or null if not found
UNKNOWN: Finds completions to the given text.
Returns: the completion mode
UNKNOWN: Returns the completion mode: exe or file completion (default FileCompletion).
Parameters: text the text to process
Returns: the path or URL resulting from this operation. If you want to convert it to a KURL, use KURL.fromPathOrURL.
UNKNOWN: Replaces username and/or environment variables, depending on the current settings and returns the filtered url.
UNKNOWN:
Returns: true if environment vvariables will be replaced
UNKNOWN: Checks whether environment variables are completed and whether they are replaced internally while finding completions.
Returns: true to replace tilde with the home directory
UNKNOWN: Returns whether ~username is completed and whether ~username is replaced internally with the user's home directory while finding completions.
Parameters: dir the current directory, either as a path or URL
UNKNOWN: Sets the current directory (used as base for completion).
Parameters: mode the new completion mode
UNKNOWN: Changes the completion mode: exe or file completion
Parameters: replace true to replace environment variables
UNKNOWN: Enables/disables completion and replacement (internally) of environment variables in URLs.
Parameters: replace true to replace tilde with the home directory
UNKNOWN: Enables/disables completion of ~username and replacement (internally) of ~username with the user's home directory.
UNKNOWN: Stops asynchronous completion.