KIO
kurlcompletion.cpp
Go to the documentation of this file.
236 const bool m_complete_url; // if true completing a URL (i.e. 'm_prepend' is a URL), otherwise a path
318 // kDebug() << "Entered DirectoryListThread::run(), m_filter=" << m_filter << ", m_onlyExe=" << m_onlyExe << ", m_onlyDir=" << m_onlyDir << ", m_appendSlashToDir=" << m_appendSlashToDir << ", m_dirList.size()=" << m_dirList.size();
333 QDir::Filters iterator_filter = (m_noHidden ? QDir::Filter(0) : QDir::Hidden) | QDir::Readable | QDir::NoDotAndDotDot;
743 bool KUrlCompletionPrivate::userCompletion(const KUrlCompletionPrivate::MyURL& url, QString* pMatch)
779 bool KUrlCompletionPrivate::envCompletion(const KUrlCompletionPrivate::MyURL& url, QString* pMatch)
822 bool KUrlCompletionPrivate::exeCompletion(const KUrlCompletionPrivate::MyURL& url, QString* pMatch)
883 bool KUrlCompletionPrivate::fileCompletion(const KUrlCompletionPrivate::MyURL& url, QString* pMatch)
965 bool KUrlCompletionPrivate::urlCompletion(const KUrlCompletionPrivate::MyURL& url, QString* pMatch)
1005 QString directory = unescape(url_dir.directory(KUrl::AppendTrailingSlash | KUrl::ObeyTrailingSlash));
1363 KUrlCompletionPrivate::MyURL url(text, QString()); // no need to replace something of our current cwd
An alternative URL (If different from the caption).
Definition: udsentry.h:190
KUrlCompletion()
Constructs a KUrlCompletion object in FileCompletion mode.
Definition: kurlcompletion.cpp:502
virtual void clear()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
virtual bool replaceHome() const
Returns whether ~username is completed and whether ~username is replaced internally with the user's h...
Definition: kurlcompletion.cpp:574
QString & append(QChar ch)
Type type() const
QString directory(const DirectoryOptions &options=IgnoreTrailingSlash) const
Type
virtual void setMode(Mode mode)
Changes the completion mode: exe or file completion.
Definition: kurlcompletion.cpp:559
virtual bool isRunning() const
Check whether asynchronous completion is in progress.
Definition: kurlcompletion.cpp:674
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
Definition: kurlcompletion.cpp:78
A ListJob is allows you to get the get the content of a directory.
Definition: jobclasses.h:936
QString & prepend(QChar ch)
Definition: kurlcompletion.cpp:78
QString host() const
KStandardDirs * dirs()
Definition: kurlcompletion.cpp:78
Definition: kurlcompletion.cpp:78
virtual Mode mode() const
Returns the completion mode: exe or file completion (default FileCompletion).
Definition: kurlcompletion.cpp:554
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
QString currentPath()
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString homePath()
bool run(const KUrl &_url, bool _is_local)
Invokes the default action for the desktop entry.
Definition: kdesktopfileactions.cpp:54
KSharedConfigPtr config()
void setPath(const QString &path)
void clear()
ListJob * listDir(const KUrl &url, JobFlags flags=DefaultFlags, bool includeHidden=true)
List the contents of url, which is assumed to be a directory.
Definition: job.cpp:2735
int indexIn(const QString &str, int offset, CaretMode caretMode) const
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
QString & insert(int position, QChar ch)
virtual QString makeCompletion(const QString &text)
Finds completions to the given text.
Definition: kurlcompletion.cpp:589
long long numberValue(uint field, long long defaultValue=0) const
Definition: udsentry.cpp:78
bool isDir() const
QString fileName() const
typedef Filters
virtual bool replaceEnv() const
Checks whether environment variables are completed and whether they are replaced internally while fin...
Definition: kurlcompletion.cpp:564
bool authorizeUrlAction(const QString &action, const KUrl &baseUrl, const KUrl &destUrl)
void postProcessMatch(QString *match) const
Definition: kurlcompletion.cpp:1268
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual void setDir(const QString &dir)
Sets the current directory (used as base for completion).
Definition: kurlcompletion.cpp:544
bool setCurrent(const QString &path)
typedef Iterator
void deleteLater()
static bool isLocalProtocol(const QString &protocol)
Definition: kurlcompletion.cpp:960
static QString protocolClass(const QString &protocol)
QByteArray toLocal8Bit() const
Definition: kurlcompletion.h:53
bool isRelativePath(const QString &path)
QString & replace(int position, int n, QChar after)
void setFileName(const QString &_txt)
bool isValid() const
const ushort * utf16() const
QString mid(int position, int n) const
Definition: kurlcompletion.h:53
QString dir(const QString &fileClass)
Returns the most recently used directory accociated with this file-class.
Definition: krecentdirs.cpp:68
QString replacedPath(const QString &text) const
Replaces username and/or environment variables, depending on the current settings and returns the fil...
Definition: kurlcompletion.cpp:1372
Access permissions (part of the mode returned by stat)
Definition: udsentry.h:171
QString fileName(const DirectoryOptions &options=IgnoreTrailingSlash) const
Definition: kurlcompletion.cpp:78
Definition: kurlcompletion.cpp:78
bool isRelative() const
virtual void setReplaceEnv(bool replace)
Enables/disables completion and replacement (internally) of environment variables in URLs...
Definition: kurlcompletion.cpp:569
Filename - as displayed in directory listings etc.
Definition: udsentry.h:163
const QChar at(int position) const
typedef ConstIterator
CopyJob * copy(const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
Copy a file or directory src into the destination dest, which can be a file (including the final file...
Definition: copyjob.cpp:2164
int length() const
char * data()
QString left(int n) const
virtual QString dir() const
Returns the current directory, as it was given in setDir.
Definition: kurlcompletion.cpp:549
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
static bool supportsListing(const KUrl &url)
Returns whether the protocol can list files/objects.
Definition: kprotocolmanager.cpp:1032
const_iterator constEnd() const
const_iterator constBegin() const
Definition: kurlcompletion.cpp:78
const KShortcut & end()
void postProcessMatches(QStringList *matches) const
Definition: kurlcompletion.cpp:1317
virtual void setReplaceHome(bool replace)
Enables/disables completion of ~username and replacement (internally) of ~username with the user's ho...
Definition: kurlcompletion.cpp:579
QString prettyUrl(AdjustPathOption trailing=LeaveTrailingSlash) const
This class does completion of URLs including user directories (~user) and environment variables...
Definition: kurlcompletion.h:41
QByteArray encodeName(const QString &fileName)
QString decodeName(const QByteArray &localFileName)
Definition: kurlcompletion.cpp:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.