KIO
global.h
Go to the documentation of this file.
113 KIO_EXPORT_DEPRECATED QTime calculateRemaining( KIO::filesize_t totalSize, KIO::filesize_t processedSize, KIO::filesize_t speed );
125 KIO_EXPORT QString itemsSummaryString(uint items, uint files, uint dirs, KIO::filesize_t size, bool showSize);
216 ERR_COULD_NOT_CREATE_SOCKET = KJob::UserDefinedError + 22, // KDE4: s/COULD_NOT/CANNOT/ or the other way round
264 ERR_UPGRADE_REQUIRED = KJob::UserDefinedError + 64, // A transport upgrade is required to access this
267 ERR_POST_DENIED = KJob::UserDefinedError + 65, // Issued when trying to POST data to a certain Ports
375 KIO_EXPORT QPixmap pixmapForUrl( const KUrl & _url, mode_t _mode = 0, KIconLoader::Group _group = KIconLoader::Desktop,
QString unsupportedActionErrorString(const QString &protocol, int cmd)
Returns an appropriate error message if the given command cmd is an unsupported action (ERR_UNSUPPORT...
Definition: global.cpp:376
QString getCacheControlString(KIO::CacheControl cacheControl)
Returns a string representation of the given cache control method.
Definition: global.cpp:1223
Definition: global.h:256
Definition: global.h:248
Definition: global.h:258
Definition: global.h:181
Definition: global.h:177
Definition: global.h:264
Definition: global.h:240
Definition: global.h:251
QString buildHTMLErrorString(int errorCode, const QString &errorText, const KUrl *reqUrl=0L, int method=-1)
Returns a translated html error message for errorCode using the additional error information provided...
Definition: global.h:151
Definition: global.h:269
Definition: global.h:199
Definition: global.h:154
Definition: global.h:272
Definition: global.h:215
Definition: global.h:229
Definition: global.h:174
const_iterator constBegin() const
Definition: global.h:235
QString decodeFileName(const QString &str)
Decodes (from the filename to the text displayed) This doesn't do anything anymore, it used to do the opposite of encodeFileName when encodeFileName was using %2F for '/'.
Definition: global.cpp:153
Definition: global.h:230
Definition: global.h:206
Definition: global.h:161
Definition: global.h:239
Definition: global.h:214
Definition: global.h:224
Definition: global.h:180
Definition: global.h:162
Definition: global.h:197
Definition: global.h:252
QPixmap pixmapForUrl(const KUrl &_url, mode_t _mode=0, KIconLoader::Group _group=KIconLoader::Desktop, int _force_size=0, int _state=0, QString *_path=0)
Convenience method to find the pixmap for a URL.
Definition: global.cpp:1239
QString convertSeconds(unsigned int seconds)
Convert seconds to a string representing number of days, hours, minutes and seconds.
Definition: global.cpp:79
Definition: global.h:238
Definition: global.h:152
Definition: global.h:169
Definition: global.h:156
Definition: global.h:210
KGuiItem insert()
Definition: global.h:225
Definition: global.h:182
Definition: global.h:172
Definition: global.h:179
Definition: global.h:253
Definition: global.h:163
Definition: global.h:217
Definition: global.h:208
Definition: global.h:170
Definition: global.h:166
Definition: global.h:219
Definition: global.h:221
Definition: global.h:244
Definition: global.h:198
Definition: global.h:196
Definition: global.h:249
Definition: global.h:222
Definition: global.h:241
QString encodeFileName(const QString &str)
Encodes (from the text displayed to the real filename) This translates '/' into a "unicode fraction s...
Definition: global.cpp:146
Definition: global.h:158
QString buildErrorString(int errorCode, const QString &errorText)
Returns a translated error message for errorCode using the additional error information provided by e...
Definition: global.cpp:164
Definition: global.h:243
Definition: global.h:203
const_iterator constEnd() const
Definition: global.h:233
QString itemsSummaryString(uint items, uint files, uint dirs, KIO::filesize_t size, bool showSize)
Helper for showing information about a set of files and directories.
Definition: global.cpp:119
Definition: global.h:200
Definition: global.h:245
Definition: global.h:160
Definition: global.h:257
Definition: global.h:165
typedef Permissions
Definition: global.h:207
Definition: global.h:228
KIO::CacheControl parseCacheControl(const QString &cacheControl)
Parses the string representation of the cache control option.
Definition: global.cpp:1204
Definition: global.h:218
Definition: global.h:167
Definition: global.h:164
Definition: global.h:184
Definition: global.h:226
Definition: global.h:176
QString convertSizeFromKiB(KIO::filesize_t kibSize)
Converts size from kibi-bytes (2^10) to the string representation.
Definition: global.cpp:58
Definition: global.h:175
Definition: global.h:201
Definition: global.h:209
const Key key(const T &value) const
Definition: global.h:227
Definition: global.h:185
Definition: global.h:204
Definition: global.h:153
Definition: global.h:216
Definition: global.h:271
Definition: global.h:168
Definition: global.h:250
Definition: global.h:157
Definition: global.h:202
Group
Definition: global.h:232
Definition: global.h:255
QTime calculateRemaining(KIO::filesize_t totalSize, KIO::filesize_t processedSize, KIO::filesize_t speed)
Calculates remaining time from total size, processed size and speed.
Definition: global.cpp:95
Definition: global.h:213
unsigned int calculateRemainingSeconds(KIO::filesize_t totalSize, KIO::filesize_t processedSize, KIO::filesize_t speed)
Calculates remaining time in seconds from total size, processed size and speed.
Definition: global.cpp:70
Definition: global.h:231
Definition: global.h:254
Definition: global.h:242
Definition: global.h:195
Definition: global.h:267
Definition: global.h:270
Definition: global.h:155
Definition: global.h:246
QByteArray rawErrorDetail(int errorCode, const QString &errorText, const KUrl *reqUrl=0L, int method=-1)
Returns translated error details for errorCode using the additional error information provided by err...
Definition: global.cpp:473
Definition: global.h:205
Definition: global.h:220
Definition: global.h:211
Definition: global.h:178
QString convertSize(KIO::filesize_t size)
Converts size from bytes to the string representation.
Definition: global.cpp:53
Definition: global.h:186
Definition: global.h:173
Definition: global.h:183
Definition: global.h:223
Definition: global.h:234
Definition: global.h:171
QFile::Permissions convertPermissions(int permissions)
Converts KIO file permissions from mode_t to QFile::Permissions format.
Definition: global.cpp:1251
QString number(KIO::filesize_t size)
Converts a size to a string representation Not unlike QString::number(...)
Definition: global.cpp:63
#define KDE_EXPORT
const T value(const Key &key) const
Definition: global.h:159
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.