• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

Public Member Functions | Protected Member Functions | List of all members
KShellCompletion Class Reference

#include <kshellcompletion.h>

Inheritance diagram for KShellCompletion:
KURLCompletion

Public Member Functions

 KShellCompletion ()
 
TQString makeCompletion (const TQString &text)
 
- Public Member Functions inherited from KURLCompletion
 KURLCompletion ()
 
 KURLCompletion (Mode)
 
virtual ~KURLCompletion ()
 
virtual void setDir (const TQString &dir)
 
virtual TQString 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)
 
TQString replacedPath (const TQString &text)
 

Protected Member Functions

void postProcessMatch (TQString *match) const
 
void postProcessMatches (TQStringList *matches) const
 
void postProcessMatches (TDECompletionMatches *matches) const
 
virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from KURLCompletion
void postProcessMatch (TQString *match) const
 
void postProcessMatches (TQStringList *matches) const
 
void postProcessMatches (TDECompletionMatches *matches) const
 
virtual void customEvent (TQCustomEvent *e)
 

Additional Inherited Members

- Public Types inherited from KURLCompletion
enum  Mode { ExeCompletion =1 , FileCompletion , DirCompletion , SystemExeCompletion }
 
- Static Public Member Functions inherited from KURLCompletion
static TQString replacedPath (const TQString &text, bool replaceHome, bool replaceEnv=true)
 
- Protected Slots inherited from KURLCompletion
void slotEntries (TDEIO::Job *, const TDEIO::UDSEntryList &)
 
void slotIOFinished (TDEIO::Job *)
 

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 dsmit.nosp@m.h@al.nosp@m.gonet.nosp@m..se

Definition at line 40 of file kshellcompletion.h.

Constructor & Destructor Documentation

◆ KShellCompletion()

KShellCompletion::KShellCompletion ( )

Constructs a KShellCompletion object.

Definition at line 33 of file kshellcompletion.cpp.

Member Function Documentation

◆ makeCompletion()

TQString KShellCompletion::makeCompletion ( const TQString &  text)
virtual

Finds completions to the given text.

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

Parameters
textthe text to complete
Returns
the first match, or TQString::null if not found

Reimplemented from KURLCompletion.

Definition at line 46 of file kshellcompletion.cpp.


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

tdeio/tdeio

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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.1
This website is maintained by Timothy Pearson.