KIO
namefinderjob.cpp
NameFinderJob finds a valid "New Folder" name.
QUrl baseUrl() const
Call this to get the base URL (i.e. the URL of the folder where a new folder/file is going to be crea...
Definition namefinderjob.cpp:103
NameFinderJob(const QUrl &baseUrl, const QString &name, QObject *parent)
Creates a NameFinderJob to get a "New Folder" (or "Text File.txt") name that doesn't already exist.
Definition namefinderjob.cpp:40
QString finalName() const
Call this to get the suggested new folder/file name.
Definition namefinderjob.cpp:108
QUrl finalUrl() const
Call this to get the full target URL (basically the baseUrl() + "/" + finalName()).
Definition namefinderjob.cpp:98
A KIO job that retrieves information about a file or directory.
void result(KJob *job)
KCOREADDONS_EXPORT QString makeSuggestedName(const QString &oldName)
KIOCORE_EXPORT StatJob * stat(const QUrl &url, JobFlags flags=DefaultFlags)
Find all details for one file or directory.
Definition statjob.cpp:203
QString name(StandardAction id)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
StripTrailingSlash
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.