blogilo
stylegetter.cpp
Go to the documentation of this file.
118 return QLatin1String("<html><body><h2 align='center'>") + title + QLatin1String("</h2><br>") + content + QLatin1String("</html>");
122 return QLatin1String("<html><body><h2 align='center'>") + title + QLatin1String("</h2><br>") + content + QLatin1String("</html>");
242 mPostTitle = QString::fromLatin1("%1%2" ).arg( QLatin1String(POST_TITLE) ).arg( postRandomNumber );
243 mPostContent = QString::fromLatin1( "%1%2" ).arg( QLatin1String(POST_CONTENT) ).arg( postRandomNumber );
249 KMessageBox::detailedError( mParent, i18n( "An error occurred in the latest transaction." ), errMsg );
QString & append(QChar ch)
QObject * sender() const
QString & remove(int position, int n)
Definition of a blog post! it's implemented to decrease dependency to KBlog :)
Definition: bilbopost.h:41
Definition: bilboblog.h:45
static QString styledHtml(const int blogid, const QString &title, const QString &content)
Looks for a file named style.html for the requested blog in blogilo data directory, then writes the file content into a buffer, inserts given post title and content in the buffer, and returns it.
Definition: stylegetter.cpp:98
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString fromUtf8(const char *str, int size)
void sigGetStyleProgress(int percent)
While the class is fetching blog style from the web, this signal shows the operation progress...
void sigStyleFetched()
When StyleGetter finishes all jobs to get and save a blog style, this signal will be emmited...
void deleteLater()
QString & replace(int position, int n, QChar after)
QString fromLatin1(const char *str, int size)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
StyleGetter(const int blogid, QObject *parent)
Creates an instance of StyleGetter, to fetch the style of the requested blog.
Definition: stylegetter.cpp:50
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Definition: bilboblog.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:16 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:32:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.