kio Library API Documentation

KShellCompletion Class Reference

This class does shell-like completion of file names. Shell-like completion of file names. More...

#include <kshellcompletion.h>

Inheritance diagram for KShellCompletion:

KURLCompletion KCompletion QObject List of all members.

Public Methods

 KShellCompletion ()
 Constructs a KShellCompletion object.

QString makeCompletion (const QString &)
 Finds completions to the given 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)

Detailed Description

This class does shell-like completion of file names. 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.

Author:
David Smith <dsmith@algonet.se>
Version:
$Id:

Definition at line 41 of file kshellcompletion.h.


Constructor & Destructor Documentation

KShellCompletion::KShellCompletion  
 

Constructs a KShellCompletion object.

Definition at line 33 of file kshellcompletion.cpp.


Member Function Documentation

QString KShellCompletion::makeCompletion const QString   [virtual]
 

Finds completions to the given text.

The first match is returned and emitted in the signal match()

Reimplemented from KURLCompletion.

Definition at line 46 of file kshellcompletion.cpp.

References QString::length(), KURLCompletion::makeCompletion(), KURLCompletion::mode(), KURLCompletion::Mode, and KURLCompletion::setMode().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:37 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001