KIO
chmodjob.cpp
Go to the documentation of this file.
123 const mode_t permissions = item.permissions() & 0777; // get rid of "set gid" and other special flags
125 /*kDebug(7007) << "toplevel url:" << info.url << "\n current permissions=" << QString::number(permissions,8)
212 int answer = KMessageBox::warningContinueCancel( 0, i18n( "<qt>Could not modify the ownership of file <b>%1</b>. You have insufficient access to the file to perform the change.</qt>" , path), QString(), KGuiItem(i18n("&Skip File")) );
QString i18n(const char *text)
Definition: chmodjob.cpp:51
void addMetaData(const QString &key, const QString &value)
Add key/value pair to the meta data that is sent to the slave.
Definition: job.cpp:264
void emitResult()
void setUiDelegate(KJobUiDelegate *delegate)
A ListJob is allows you to get the get the content of a directory.
Definition: jobclasses.h:936
#define mask
Definition: chmodjob.cpp:52
void setError(int errorCode)
Definition: global.h:214
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
mode_t permissions() const
Returns the permissions of the file (stat.st_mode containing only permissions).
Definition: kfileitem.cpp:1551
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setErrorText(const QString &errorText)
QString number(int n, int base)
SimpleJob * chown(const KUrl &url, const QString &owner, const QString &group)
Changes ownership and group of a file or directory.
Definition: job.cpp:718
This job changes permissions on a list of files or directories, optionally in a recursive manner...
Definition: chmodjob.h:39
long long numberValue(uint field, long long defaultValue=0) const
Definition: udsentry.cpp:78
bool isEmpty() const
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
iterator end()
bool isLink() const
Returns true if this item represents a link in the UNIX sense of a link.
Definition: kfileitem.cpp:1567
ChmodJob * chmod(const KFileItemList &lstItems, int permissions, int mask, const QString &newOwner, const QString &newGroup, bool recursive, JobFlags flags=DefaultFlags)
Creates a job that changes permissions/ownership on several files or directories, optionally recursiv...
Definition: chmodjob.cpp:268
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
Access permissions (part of the mode returned by stat)
Definition: udsentry.h:171
ListJob * listRecursive(const KUrl &url, JobFlags flags=DefaultFlags, bool includeHidden=true)
The same as the previous method, but recurses subdirectories.
Definition: job.cpp:2740
Filename - as displayed in directory listings etc.
Definition: udsentry.h:163
Name of the file where the link points to Allows to check for a symlink (don't use S_ISLNK !) ...
Definition: udsentry.h:184
typedef ConstIterator
virtual void registerJob(KJob *job)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: job_p.h:39
const KShortcut & end()
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
iterator begin()
QByteArray encodeName(const QString &fileName)
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 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:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.