kget
httpserver.cpp
Go to the documentation of this file.
42 KGet::showNotification(parent, "error", i18n("Unable to start WebInterface: Could not open KWallet"));
58 KGet::showNotification(static_cast<QWidget*>(parent()), "error", i18n("Unable to start WebInterface: Could not open KWallet"));
63 KGet::showNotification(static_cast<QWidget*>(parent()), "error", i18nc("@info", "Unable to start WebInterface: %1", m_tcpServer->errorString()));
95 // for HTTP authorization information see: http://www.governmentsecurity.org/articles/OverviewofHTTPAuthentication.php
102 QString authRequiredText = QString("<html><head><title>401 Authorization Required</title></head><body>"
226 i18nc("@action Refresh download list every x (seconds)", "Refresh download list every").toUtf8());
231 i18nc("@label text in footer", "KGet Web Interface | Valid XHTML 1.0 Strict & CSS").toUtf8().replace('&', "&"));
249 block.append(QString("WWW-Authenticate: Basic realm=\"KGet Webinterface Authorization\"\r\n").toUtf8());
static QString generalDestDir(bool preferXDGDownloadDir=false)
Returns a download directory.
Definition: kget.cpp:945
static TransferHandler * addTransfer(KUrl srcUrl, QString destDir=QString(), QString suggestedFileName=QString(), QString groupName=QString(), bool start=false)
Adds a new transfer to the KGet.
Definition: kget.cpp:179
QString & append(QChar ch)
Definition: transfergrouphandler.h:30
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const T & at(int i) const
QString & remove(int position, int n)
QString number(int n, int base)
bool isEmpty() const
bool listen(const QHostAddress &address, quint16 port)
bool isEmpty() const
QByteArray readAll()
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
static TransferGroupHandler * findGroup(const QString &name)
Get the group with the given name.
Definition: kget.cpp:690
WId winId() const
void deleteLater()
T & first()
QFuture< void > map(Sequence &sequence, MapFunction function)
QString errorString() const
QString right(int n) const
QByteArray & append(char ch)
static QList< TransferGroupHandler * > groupsFromExceptions(const KUrl &filename)
Definition: kget.cpp:730
void disconnectFromHost()
virtual QTcpSocket * nextPendingConnection()
QString & replace(int position, int n, QChar after)
QDateTime currentDateTime()
char * toString(const T &value)
QByteArray fromBase64(const QByteArray &base64)
static KNotification * showNotification(QWidget *parent, const QString &eventType, const QString &text, const QString &icon=QString("dialog-error"), const QString &title=i18n("KGet"), const KNotification::NotificationFlags &flags=KNotification::CloseOnTimeout)
Shows a knotification.
Definition: kget.cpp:1281
int length() const
static TransferHandler * findTransfer(const KUrl &src)
Get the transfer with the given url.
Definition: kget.cpp:680
qint64 write(const char *data, qint64 maxSize)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
virtual bool waitForReadyRead(int msecs)
static bool delTransfer(TransferHandler *transfer, DeleteMode mode=AutoDelete)
Removes a transfer from the KGet.
Definition: kget.cpp:362
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 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:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.