class KURLCompletion

Completion of a single URL. More...

Definition#include <kurlcompletion.h>
InheritsKCompletion (kdecore)
Inherited byKShellCompletion
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Protected Methods

Protected Slots


Detailed Description

This class does completion of URLs including user directories (~user) and environment variables. Remote URLs are passed to KIO.

enum Mode {ExeCompletion=1, FileCompletion }

Determines how completion is done ExeCompletion - executables in $PATH or with full path FileCompletion - all files with full path or in dir(), URLs are listed using KIO

 KURLCompletion (Mode)

This overloaded constructor allows you to set the Mode to ExeCompletion or FileCompletion without using setMode

QString  makeCompletion (const QString&)

[virtual]

Find 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

void  setDir ( QString dir)

[virtual]

Set the current directory (used as base for completion) Default = $HOME

QString  dir ()

[virtual]

Get the current directory

bool  isRunning ()

[virtual]

Returns true if asyncronous completion is in progress

void  stop ()

[virtual]

Stop asyncronous copmpletion

Mode  mode ()

[virtual]

Return completion mode: exe or file completion (default FileCompletion)

void  setMode ( Mode mode )

[virtual]

Change completion mode: exe or file completion

bool  replaceEnv ()

[virtual]

Replace environment variables when doing completion (default true)

bool  replaceHome ()

[virtual]

Replace user home dirs (~user) when doing completion (default true)