[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kresources/blog
From: Mike Arthur <mike () mikearthur ! co ! uk>
Date: 2007-08-01 3:28:50
Message-ID: 1185938930.561459.19650.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 694911 by mikearthur:
Fix naming and add commented out support for more APIs.
M +2 -2 resourceblog.cpp
M +1 -1 resourceblog.h
M +5 -1 resourceblogconfig.cpp
--- trunk/KDE/kdepim/kresources/blog/resourceblog.cpp #694910:694911
@@ -382,7 +382,7 @@
return false;
}
-bool ResourceBlog::fetchBlogs() {
+bool ResourceBlog::listBlogs() {
// Only children of Blogger 1.0 and Google Blogger Data support listBlogs()
KBlog::Blogger1* blogger = qobject_cast<KBlog::Blogger1*>( mAPI );
if ( blogger ) {
@@ -400,7 +400,7 @@
gdata->listBlogs();
return true;
}
- kError( 5800 ) << "ResourceBlog::fetchBlogs(): "
+ kError( 5800 ) << "ResourceBlog::listBlogs(): "
<< "API does not support multiple blogs.";
return false;
}
--- trunk/KDE/kdepim/kresources/blog/resourceblog.h #694910:694911
@@ -185,7 +185,7 @@
@return The success of the fetch call.
*/
- bool fetchBlogs();
+ bool listBlogs();
/**
Returns the current blog to post to.
--- trunk/KDE/kdepim/kresources/blog/resourceblogconfig.cpp #694910:694911
@@ -63,6 +63,10 @@
label = new QLabel( i18n( "API:" ), this );
mAPI = new KComboBox( false, this );
+ //TODO: When these are more stable/featureful, add them.
+ //mAPI->addItem( "Google Blogger Data" );
+ //mAPI->addItem( "LiveJournal" );
+ //mAPI->addItem( "Movable Type" );
mAPI->addItem( "MetaWeblog" );
mAPI->addItem( "Blogger 1.0" );
@@ -151,7 +155,7 @@
const QMap<QString,QString> & ) ),
this, SLOT( slotBlogInfoRetrieved(
const QMap<QString,QString> & ) ) );
- blog->fetchBlogs();
+ blog->listBlogs();
mBlogs->clear();
mBlogs->setEnabled( false );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic