marble
tools/speaker-files/main.cpp
Go to the documentation of this file.
127 qDebug() << "Usage: " << application << " /path/to/input/directory /path/to/output/directory /path/to/newstuff.xml";
156 stream << "The ogg files in this directory are licensed under the creative commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license. ";
157 stream << "See http://creativecommons.org/licenses/by-sa/3.0/ and the file CC-BY-SA-3.0 in this directory.";
164 stream << "To install this voice guidance speaker in Marble, copy the entire directory to the audio/speakers/ directory in Marble's data path.\n\n";
165 stream << "For example, if this directory is called 'MySpeaker' and you want to use it on the Nokia N900, copy the directory with all files to /home/user/MyDocs/.local/share/marble/audio/speakers/MySpeaker\n\n";
166 stream << "Afterwards start Marble on the N900 and press the routing info box (four icons on the bottom) for two seconds with the pen. Enter the configuration dialog and choose the 'MySpeaker' speaker.\n\n";
204 void convertToTomTomFormat( const QString &input, const QString &output, const QString &nick, const QString &simpleNick, int index, bool male, const QString &lang )
273 QString const lang = language.mid( 0, language.indexOf( "(" )-1 ).replace( QLatin1Char(' '), QLatin1Char('-') );
297 xmlOut << " <name lang=\"en\">" << language << " - " << nick << " (" << gender << ")" << "</name>\n";
303 xmlOut << " <preview lang=\"en\">http://edu.kde.org/marble/speaker-" << gender << ".png</preview>\n";
304 xmlOut << " <payload lang=\"en\">http://files.kde.org/marble/audio/speakers/" << simpleNick << "/" << lang << "-" << simpleNick << ".tar.gz</payload>\n";
305 xmlOut << " <payload lang=\"ogg\">http://files.kde.org/marble/audio/speakers/" << simpleNick << "/" << lang << "-" << simpleNick << ".ogg</payload>\n";
306 xmlOut << " <payload lang=\"zip\">http://files.kde.org/marble/audio/speakers/" << simpleNick << "/" << lang << "-" << simpleNick << ".zip</payload>\n";
307 xmlOut << " <payload lang=\"tomtom\">http://files.kde.org/marble/audio/speakers/" << simpleNick << "/" << lang << "-" << simpleNick << "-TomTom.zip</payload>\n";
342 return process( QDir( input.absoluteFilePath() ), QDir( output.absoluteFilePath() ), xmlFile.absoluteFilePath() );
int execute(const QString &program, const QStringList &arguments)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void createLegalFiles(const QString &directory, const QString &name, const QString &email)
Definition: tools/speaker-files/main.cpp:143
void convertToMarbleFormat(const QString &input, const QString &output)
Definition: tools/speaker-files/main.cpp:188
bool remove()
QString fileName() const
QString filePath(const QString &fileName) const
QSqlDatabase addDatabase(const QString &type, const QString &connectionName)
void extract(const QString &zip, const QString &output)
Definition: tools/speaker-files/main.cpp:130
QDir root()
bool copy(const QString &newName)
void convertToNewStuffFormat(const QString &input, const QString &output)
Definition: tools/speaker-files/main.cpp:172
void convertToTomTomFormat(const QString &input, const QString &output, const QString &nick, const QString &simpleNick, int index, bool male, const QString &lang)
Definition: tools/speaker-files/main.cpp:204
QString number(int n, int base)
bool isDir() const
QVariant value(int index) const
QString absoluteFilePath() const
bool next()
bool open()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
bool exists() const
void setWorkingDirectory(const QString &dir)
virtual void close()
QString fileName() const
QString & replace(int position, int n, QChar after)
QString mid(int position, int n) const
bool mkdir(const QString &dirName) const
int process(const QDir &input, const QDir &output, const QString &xml)
Definition: tools/speaker-files/main.cpp:242
QStringList tomTomFiles()
Takes an .sqlite database with metadata about voice guidance speakers and associated ...
Definition: tools/speaker-files/main.cpp:49
bool isWritable() const
void setDatabaseName(const QString &name)
bool open()
QString toString() const
void start(const QString &program, const QStringList &arguments, QFlags< QIODevice::OpenModeFlag > mode)
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:40 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:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.