KIO
netaccess.cpp
Go to the documentation of this file.
281 // We just have to hope people don't mess with setAutoDelete in slots connected to the job, though.
408 QString NetAccess::fish_executeInternal(const KUrl & url, const QString &command, QWidget* window)
465 for ( QMap<QString, QString>::iterator it = d->m_metaData->begin(); it != d->m_metaData->end(); ++it ) {
virtual void setWindow(QWidget *window)
Associate this job with a window given by window.
Definition: jobuidelegate.cpp:58
static bool stat(const KUrl &url, KIO::UDSEntry &entry, QWidget *window)
Tests whether a URL exists and return information on it.
Definition: netaccess.cpp:225
QString i18n(const char *text)
static int lastError()
Returns the error code for the last job, in case it failed.
Definition: netaccess.cpp:302
int indexOfSignal(const char *signal) const
When set, automatically overwrite the destination if it exists already.
Definition: jobclasses.h:67
SimpleJob * special(const KUrl &url, const QByteArray &data, JobFlags flags=DefaultFlags)
Execute any command that is specific to one slave (protocol).
Definition: job.cpp:745
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
static void removeTempFile(const QString &name)
Removes the specified file if and only if it was created by KIO::NetAccess as a temporary file for a ...
Definition: netaccess.cpp:307
MimetypeJob * mimetype(const KUrl &url, JobFlags flags=DefaultFlags)
Find mimetype for one file or directory.
Definition: job.cpp:1856
static bool upload(const QString &src, const KUrl &target, QWidget *window)
Uploads file src to URL target.
Definition: netaccess.cpp:127
static bool move(const KUrl &src, const KUrl &target, QWidget *window=0L)
Full-fledged equivalent of KIO::move.
Definition: netaccess.cpp:189
static QString mimetype(const KUrl &url, QWidget *window)
Determines the mimetype of a given URL.
Definition: netaccess.cpp:291
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isEmpty() const
SimpleJob * mkdir(const KUrl &url, int permissions=-1)
Creates a single directory.
Definition: job.cpp:697
static bool synchronousRun(Job *job, QWidget *window, QByteArray *data=0, KUrl *finalURL=0, QMap< QString, QString > *metaData=0)
This function executes a job in a synchronous way.
Definition: netaccess.cpp:276
bool isAutoDelete() const
static bool checkAccess(const QString &pathname, int mode)
virtual const QMetaObject * metaObject() const
StatJob * stat(const KUrl &url, JobFlags flags=DefaultFlags)
Find all details for one file or directory.
Definition: job.cpp:924
A KIO job that retrieves information about a file or directory.
Definition: jobclasses.h:440
FileCopyJob * file_move(const KUrl &src, const KUrl &dest, int permissions=-1, JobFlags flags=DefaultFlags)
Move a single file.
Definition: job.cpp:2479
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
A local file path if the ioslave display files sitting on the local filesystem (but in another hierar...
Definition: udsentry.h:166
bool exists() const
static bool mkdir(const KUrl &url, QWidget *window, int permissions=-1)
Creates a directory in a synchronous way.
Definition: netaccess.cpp:264
bool isEmpty() const
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void setPath(const QString &path)
Show the progress info GUI, no Resume and no Overwrite.
Definition: jobclasses.h:46
Definition: jobclasses.h:447
static void checkSlaveOnHold(bool b)
When true, the next job will check whether KLauncher has a slave on hold that is suitable for the job...
Definition: scheduler.cpp:895
void append(const T &value)
static bool exists(const KUrl &url, bool source, QWidget *window)
Tests whether a URL exists.
Definition: netaccess.cpp:207
Definition: global.h:222
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
QString protocol() const
void setAutoRemove(bool b)
static bool dircopy(const KUrl &src, const KUrl &target, QWidget *window)
Alternative method for copying over the network.
Definition: netaccess.cpp:175
bool isEmpty() const
int removeAll(const T &value)
static bool copy(const KUrl &src, const KUrl &target, QWidget *window=0)
Definition: netaccess.cpp:152
void deleteLater()
static QString fish_execute(const KUrl &url, const QString &command, QWidget *window)
Executes a remote process via the fish ioslave in a synchronous way.
Definition: netaccess.cpp:270
CopyJob * move(const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
Moves a file or directory src to the given destination dest.
Definition: copyjob.cpp:2186
static bool del(const KUrl &url, QWidget *window)
Deletes a file or a directory in a synchronous way.
Definition: netaccess.cpp:258
Definition: netaccess.h:73
KGuiItem ok()
static KUrl mostLocalUrl(const KUrl &url, QWidget *window)
Tries to map a local URL for the given URL.
Definition: netaccess.cpp:234
QString fileName() const
DeleteJob * del(const KUrl &src, JobFlags flags=DefaultFlags)
Delete a file or directory.
Definition: deletejob.cpp:492
QString mid(int position, int n) const
static bool file_copy(const KUrl &src, const KUrl &target, QWidget *window=0)
Alternative to upload for copying over the network.
Definition: netaccess.cpp:144
Definition: netaccess.h:74
void leaveModality()
static QString lastErrorString()
Returns the error string for the last job, in case it failed.
Definition: netaccess.cpp:297
char * data()
KAction * quit(const QObject *recvr, const char *slot, QObject *parent)
Definition: jobclasses.h:446
bool isLocalFile() const
int size() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setAutoDelete(bool autodelete)
static bool download(const KUrl &src, QString &target, QWidget *window)
Downloads a file from an arbitrary URL (src) to a temporary file on the local filesystem (target)...
Definition: netaccess.cpp:94
bool open()
QByteArray encodeName(const QString &fileName)
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.