kshellcompletion.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef KSHELLCOMPLETION_H
00021
#define KSHELLCOMPLETION_H
00022
00023
#include <qstring.h>
00024
#include <qstringlist.h>
00025
00026
#include "kurlcompletion.h"
00027
00028
class KShellCompletionPrivate;
00029
00041 class KShellCompletion :
public KURLCompletion
00042 {
00043 Q_OBJECT
00044
00045
public:
00049
KShellCompletion();
00050
00057
QString makeCompletion(
const QString &text);
00058
00059
protected:
00060
00061
void postProcessMatch(
QString *match )
const;
00062
void postProcessMatches(
QStringList *matches )
const;
00063
void postProcessMatches(
KCompletionMatches *matches )
const;
00064
00065
private:
00066
00067
void splitText(
const QString &text,
QString &text_start,
QString &text_compl)
const;
00068
00069
bool quoteText(
QString *text,
bool force,
bool skip_last)
const;
00070
QString unquote(
const QString &text)
const;
00071
00072
QString m_text_start;
00073
QString m_text_compl;
00074
00075
QChar m_word_break_char;
00076
QChar m_quote_char1;
00077
QChar m_quote_char2;
00078
QChar m_escape_char;
00079
00080
protected:
00081
virtual void virtual_hook(
int id,
void* data );
00082
private:
00083 KShellCompletionPrivate *d;
00084 };
00085
00086
#endif // KSHELLCOMPLETION_H
This file is part of the documentation for kio Library Version 3.3.1.