blogilo
backend.cpp
Go to the documentation of this file.
79 connect( d->kBlog, SIGNAL( errorComment( KBlog::Blog::ErrorType, const QString &, KBlog::BlogPost*,
127 DBMan::self()->addCategory( name, description, htmlUrl, rssUrl, categoryId, parentId, d->bBlog->id() );
151 tempPost.setAdditionalContent( tempPost.additionalContent().replace( QLatin1Char('\n'), QLatin1String("<br/>") ) );
215 tmp = i18n( "Uploading media failed: Cannot read the media file, please check if it exists. Path: %1", media->localUrl().pathOrUrl() );
222 tmp = i18n( "Uploading media failed: Cannot read the media file, please check if it exists. Path: %1", media->localUrl().pathOrUrl() );
236 tmp = i18n( "Uploading media failed: Media file checksum is zero, please check file path. Path: %1",
245 kError() << "MWBlog is NULL: casting has not worked, this should NEVER happen, has the gui allowed using GDATA?";
246 tmp = i18n( "INTERNAL ERROR: MWBlog is NULL: casting has not worked, this should NEVER happen." );
253 connect( MWBlog, SIGNAL(createdMedia(KBlog::BlogMedia*)), this, SLOT(mediaUploaded(KBlog::BlogMedia*)) );
472 if ( d->bBlog->api() == BilboBlog::MOVABLETYPE_API || d->bBlog->api() == BilboBlog::WORDPRESSBUGGY_API ) {
const QRegExp splitRX(QLatin1String("((<hr/?>)?<!--split-->)"))
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Definition: bilboblog.h:45
Definition: bilboblog.h:45
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const T & at(int i) const
void sigCategoryListFetched(int blog_id)
emit when a categoriesListed() Done and Categories added to DB
bool saveAuthData(const QMap< QString, QString > &authData, int blog_id)
Definition: dbman.cpp:972
QString & remove(int position, int n)
Definition of a blog post! it's implemented to decrease dependency to KBlog :)
Definition: bilbopost.h:41
void sigError(const QString &errorMessage)
this signal emitted when an error occurred on current transaction.
void sigMediaError(const QString &errorMessage, BilboMedia *media)
Definition: bilboblog.h:45
void error(KBlog::Blog::ErrorType type, const QString &errorMessage)
Definition: backend.cpp:347
void bloggerAuthenticated(const QMap< QString, QString > &authData)
Definition: backend.cpp:486
void fetchPost(BilboPost *post)
Fetch a blog post from the server with a specific ID.
Definition: backend.cpp:333
const char * name() const
QString number(int n, int base)
int count(const T &value) const
void sigEntriesListFetched(int blog_id)
emit when a entriesListed() Done and Entries added to DB
This file is part of the for accessing Blog Servers from the Google's Blogger and BlogPost service an...
int addCategory(const QString &name, const QString &description, const QString &htmlUrl, const QString &rssUrl, const QString &categoryId, const QString &parentId, int blog_id)
Category:
Definition: dbman.cpp:637
bool isEmpty() const
void sigPostFetched(BilboPost *post)
int count(char ch) const
void getEntriesListFromServer(int count)
retrieve latest posts from server
Definition: backend.cpp:133
Definition: bilbomedia.h:38
QString mid(int position, int n) const
void authenticate(const QMap< QString, QString > &authData=QMap< QString, QString >())
Authenticate this instance of Blogger against Google account.
Definition: blogger.cpp:266
void slotMediaError(KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogMedia *media)
Definition: backend.cpp:357
int length() const
char * data()
void getCategoryListFromServer()
Request to Fetch categories list from server.
Definition: backend.cpp:92
void savePostInDbAndEmitResult(KBlog::BlogPost *post)
This function is called after a post published fine, to insert it to DB and emit sigPostPublished.
Definition: backend.cpp:394
void sigMediaUploaded(BilboMedia *media)
This signal is emitted when a media has been uploaded to the server.
void sigPostRemoved(int blog_id, const BilboPost &post)
this signal is emitted when a post removed successfully.
Definition: bilboblog.h:45
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void entriesListed(const QList< KBlog::BlogPost > &posts)
Definition: backend.cpp:141
Definition: bilboblog.h:45
void sigPostPublished(int blog_id, BilboPost *post)
This signal is emitted when a post published/modified and added/edited to Database.
void categoriesListed(const QList< QMap< QString, QString > > &categories)
Definition: backend.cpp:107
const T value(const Key &key) const
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.