KIO
dropintonewfolderPlugin.cpp
30QList<QAction *> DropIntoNewFolderPlugin::setup(const KFileItemListProperties &fileItemProps, const QUrl &destination)
41 auto statJob = KIO::stat(destination, KIO::StatJob::StatSide::SourceSide, KIO::StatDetail::StatBasic);
53 const QString dropIntoNewFolderMessage = i18nc("@action:inmenu Context menu shown when files are dragged", "Move Into New Folder");
55 QAction *action = new QAction(QIcon::fromTheme(QStringLiteral("folder-new")), dropIntoNewFolderMessage, this);
Provides information about the common properties of a group of KFileItem objects.
Definition kfileitemlistproperties.h:39
bool supportsMoving() const
Check if moving capability is supported.
Definition kfileitemlistproperties.cpp:145
QList< QUrl > urlList() const
List of urls, gathered from the fileitems.
Definition kfileitemlistproperties.cpp:160
void recordCopyJob(KIO::CopyJob *copyJob)
Record this CopyJob while it's happening and add a command for it so that the user can undo it.
Definition fileundomanager.cpp:272
int error() const
void result(KJob *job)
virtual Q_SCRIPTABLE void start()=0
void directoryCreated(const QUrl &url)
Emitted once the directory url has been successfully created.
#define K_PLUGIN_CLASS_WITH_JSON(classname, jsonFile)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
KIOCORE_EXPORT CopyJob * move(const QUrl &src, const QUrl &dest, JobFlags flags=DefaultFlags)
Moves a file or directory src to the given destination dest.
Definition copyjob.cpp:2657
KIOCORE_EXPORT StatJob * stat(const QUrl &url, JobFlags flags=DefaultFlags)
Find all details for one file or directory.
Definition statjob.cpp:203
void setEnabled(bool)
void triggered(bool checked)
QIcon fromTheme(const QString &name)
void append(QList< T > &&value)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool isLocalFile() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:50:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:50:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.