marble
upload.cpp
Go to the documentation of this file.
44 QString const message = QString("File %1 (%2) successfully created and uploaded").arg(package.file.fileName()).arg(Region::fileSize(package.file));
68 changeStatus( package, "error", "Failed to create remote directory: " + ssh.readAllStandardError());
104 QStringList const arguments = QStringList() << "http://filesmaster.kde.org/marble/newstuff/maps-monav.xml" << "-O" << monavFilename;
109 changeStatus( package, "error", "Failed to sync newstuff file: " + wget.readAllStandardError());
152 removeFile = QString("/home/marble/web/monav/%1/%2").arg(fileInfo.dir().dirName()).arg(package.file.fileName());
158 return removeFile.isEmpty() ? uploadNewstuff() : (uploadNewstuff() && deleteRemoteFile(removeFile));
179 authorNode.appendChild(m_xml.createTextNode("Automatically created from map data assembled by the OpenStreetMap community"));
254 void Upload::uploadAndDelete(const Region ®ion, const QFileInfo &file, const QString &transport)
void clear()
QDomNodeList elementsByTagName(const QString &tagname) const
QString toString(Qt::DateFormat format) const
QDomNode item(int index) const
Definition: upload.h:22
QDomNode appendChild(const QDomNode &newChild)
void uploadAndDelete(const Region ®ion, const QFileInfo &file, const QString &transport)
Definition: upload.cpp:254
bool remove()
double toDouble(bool *ok) const
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Definition: region.h:18
QDomElement toElement() const
QString number(int n, int base)
bool uploadFiles() const
QString text() const
QString tempPath()
void setAttribute(const QString &name, const QString &value)
QString absoluteFilePath() const
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QString path() const
void setStatus(const QString &id, const QString &name, const QString &status, const QString &message)
Definition: logger.cpp:69
void setJobParameters(const JobParameters ¶meters)
Definition: upload.cpp:282
Definition: jobparameters.h:16
QDomNode removeChild(const QDomNode &oldChild)
QDomNode namedItem(const QString &name) const
bool isNull() const
QDateTime currentDateTime()
QDomNode firstChild() const
uint length() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QProcess::ExitStatus exitStatus() const
int exitCode() const
void start(const QString &program, const QStringList &arguments, QFlags< QIODevice::OpenModeFlag > mode)
QByteArray readAllStandardError()
bool waitForFinished(int msecs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.