26 #include <kblog/wordpressbuggy.h> 
   27 #include <kblog/gdata.h> 
   30 #include <QApplication> 
   33 class BilboBlog::Private
 
   48     Qt::LayoutDirection mDir;
 
   49     QString mLocalDirectory;
 
   51     QHash<QString, bool> mSupportedFeatures;
 
   56         : 
QObject( parent ), d(new Private)
 
   63         : 
QObject( qApp ), d(new Private)
 
   67     d->mBlogid = blog.
blogid();
 
   70     d->mTitle = blog.
title();
 
   88             d->kblog = 
new KBlog::Blogger1( 
url(), 
this );
 
   91             d->kblog = 
new KBlog::GData( 
url(), 
this );
 
   94             d->kblog = 
new KBlog::MetaWeblog( 
url(), 
this );
 
   97             d->kblog = 
new KBlog::MovableType( 
url(), 
this );
 
  100             d->kblog = 
new KBlog::WordpressBuggy( 
url(), 
this );
 
  103         d->kblog->setUserAgent( QLatin1String(
APPNAME), QLatin1String(
VERSION) );
 
  104         d->kblog->setUsername( 
username() );
 
  105         d->kblog->setPassword( 
password() );
 
  106         d->kblog->setBlogId( 
blogid() );
 
  181             d->mSupportedFeatures[QLatin1String(
"uploadMedia")] = 
false;
 
  182             d->mSupportedFeatures[QLatin1String(
"category")] = 
false;
 
  183             d->mSupportedFeatures[QLatin1String(
"tag")] = 
false;
 
  186             d->mSupportedFeatures[QLatin1String(
"uploadMedia")] = 
true;
 
  187             d->mSupportedFeatures[QLatin1String(
"category")] = 
true;
 
  188             d->mSupportedFeatures[QLatin1String(
"tag")] = 
false;
 
  191             d->mSupportedFeatures[QLatin1String(
"uploadMedia")] = 
true;
 
  192             d->mSupportedFeatures[QLatin1String(
"category")] = 
true;
 
  193             d->mSupportedFeatures[QLatin1String(
"tag")] = 
true;
 
  196             d->mSupportedFeatures[QLatin1String(
"uploadMedia")] = 
true;
 
  197             d->mSupportedFeatures[QLatin1String(
"category")] = 
true;
 
  198             d->mSupportedFeatures[QLatin1String(
"tag")] = 
true;
 
  201             d->mSupportedFeatures[QLatin1String(
"uploadMedia")] = 
false;
 
  202             d->mSupportedFeatures[QLatin1String(
"category")] = 
false;
 
  203             d->mSupportedFeatures[QLatin1String(
"tag")] = 
true;
 
  206             d->mSupportedFeatures[QLatin1String(
"uploadMedia")] = 
false;
 
  207             d->mSupportedFeatures[QLatin1String(
"category")] = 
false;
 
  208             d->mSupportedFeatures[QLatin1String(
"tag")] = 
false;
 
  235     return d->mLocalDirectory;
 
  240     d->mLocalDirectory = directory;
 
  245     if(d->mBlogUrl.isEmpty())
 
  246         return d->mUrl.prettyUrl();
 
  258     return d->mSupportedFeatures[QLatin1String(
"uploadMedia")];
 
  263     return d->mSupportedFeatures[QLatin1String(
"category")];
 
  268     return d->mSupportedFeatures[QLatin1String(
"tag")];
 
  271 #include "bilboblog.moc" 
KBlog::Blog * blogBackend()
static const char APPNAME[]
void setApi(const ApiType)
QString localDirectory() const 
void setTitle(const QString &)
bool supportUploadMedia() const 
BilboBlog(QObject *parent=0)
static const char VERSION[]
Constants. 
void setDirection(const Qt::LayoutDirection)
void setPassword(const QString &)
void setUsername(const QString &)
bool supportCategory() const 
void setUrl(const KUrl &)
Qt::LayoutDirection direction() const 
void setLocalDirectory(const QString &)
void setError(bool isError)
KUrl url() const 
returns blog xmlrpc Url! For http://bilbo.wordpress.com : it's url() is http://bilbo.wordpress.com/xmlrpc.php and it's blogUrl() is http://bilbo.wordpress.com/ 
QString blogUrl() const 
return Blog Actual Url! For http://bilbo.wordpress.com : it's url() is http://bilbo.wordpress.com/xmlrpc.php and it's blogUrl() is http://bilbo.wordpress.com/ 
void setBlogId(const QString &)
void setBlogUrl(const QString &blogUrl)