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:1557
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual bool addSubjob(KJob *job)
Add a job that has to be finished before a result is emitted.
Definition: job.cpp:95
void setErrorText(const QString &errorText)
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
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
bool isLink() const
Returns true if this item represents a link in the UNIX sense of a link.
Definition: kfileitem.cpp:1573
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
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:2744
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
virtual void registerJob(KJob *job)
Definition: job_p.h:37
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)
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
QString number(KIO::filesize_t size)
Converts a size to a string representation Not unlike QString::number(...)
Definition: global.cpp:63
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.