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

kio/kio

  • kio
  • kio
kshellcompletion.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 David Smith <dsmith@algonet.se>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KSHELLCOMPLETION_H
21 #define KSHELLCOMPLETION_H
22 
23 #include <tqstring.h>
24 #include <tqstringlist.h>
25 
26 #include "kurlcompletion.h"
27 
28 class KShellCompletionPrivate;
29 
40 class KIO_EXPORT KShellCompletion : public KURLCompletion
41 {
42  Q_OBJECT
43 
44 public:
48  KShellCompletion();
49 
56  TQString makeCompletion(const TQString &text);
57 
58 protected:
59  // Called by KCompletion
60  void postProcessMatch( TQString *match ) const;
61  void postProcessMatches( TQStringList *matches ) const;
62  void postProcessMatches( KCompletionMatches *matches ) const;
63 
64 private:
65  // Find the part of text that should be completed
66  void splitText(const TQString &text, TQString &text_start, TQString &text_compl) const;
67  // Insert quotes and neseccary escapes
68  bool quoteText(TQString *text, bool force, bool skip_last) const;
69  TQString unquote(const TQString &text) const;
70 
71  TQString m_text_start; // part of the text that was not completed
72  TQString m_text_compl; // part of the text that was completed (unchanged)
73 
74  TQChar m_word_break_char;
75  TQChar m_quote_char1;
76  TQChar m_quote_char2;
77  TQChar m_escape_char;
78 
79 protected:
80  virtual void virtual_hook( int id, void* data );
81 private:
82  KShellCompletionPrivate *d;
83 };
84 
85 #endif // KSHELLCOMPLETION_H
KURLCompletion
This class does completion of URLs including user directories (~user) and environment variables...
Definition: kurlcompletion.h:41
KURLCompletion::makeCompletion
virtual TQString makeCompletion(const TQString &text)
Finds completions to the given text.
Definition: kurlcompletion.cpp:575
KShellCompletion
This class does shell-like completion of file names.
Definition: kshellcompletion.h:40

kio/kio

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

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |