• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KShellCompletion Class Reference

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

#include <kshellcompletion.h>

Inheritance diagram for KShellCompletion:

Inheritance graph
[legend]

List of all members.


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

Author:
David Smith <dsmith@algonet.se>

Definition at line 40 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 &  text  )  [virtual]

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]

Reimplemented from KURLCompletion.

Definition at line 85 of file kshellcompletion.cpp.

void KShellCompletion::postProcessMatches ( KCompletionMatches *  matches  )  const [protected]

Reimplemented from KURLCompletion.

Definition at line 124 of file kshellcompletion.cpp.

void KShellCompletion::postProcessMatches ( QStringList *  matches  )  const [protected]

Reimplemented from KURLCompletion.

Definition at line 106 of file kshellcompletion.cpp.

void KShellCompletion::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from KURLCompletion.

Definition at line 307 of file kshellcompletion.cpp.


The documentation for this class was generated from the following files:
  • kshellcompletion.h
  • kshellcompletion.cpp

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal