[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kblog
From: Christian Weilbach <christian () whiletaker ! homeip ! net>
Date: 2007-08-21 18:05:31
Message-ID: 1187719531.047174.19563.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 702990 by weilbach:
Fixed the example code for the blog classes.
M +2 -1 blogger1.h
M +6 -3 gdata.h
M +2 -1 metaweblog.h
M +2 -1 movabletype.h
--- trunk/KDE/kdepimlibs/kblog/blogger1.h #702989:702990
@@ -50,8 +50,9 @@
@code
Blog* myblog = new Blogger1("http://example.com/xmlrpc/gateway.php");
+ myblog->setUsername( "some_user_id" );
+ myblog->setPassword( "YoUrFunnYPasSword" );
KBlog::BlogPosting *post = new BlogPosting();
- post->setUsername( "some_user_id" );
post->setTitle( "This is the title." );
post->setContent( "Here is some the content..." );
myblog->createPosting( posting );
--- trunk/KDE/kdepimlibs/kblog/gdata.h #702989:702990
@@ -55,8 +55,9 @@
@code
Blog* myblog = new GData("http://myblogspot.account.com");
myblog->setProfileId( "2039484587348593945823" ); // can be fetched via fetchProfileId()
+ myblog->setUsername( "your_email@address.com" );
+ myblog->setPassword( "yOuRFuNnYPasSword" );
KBlog::BlogPosting *post = new BlogPosting();
- post->setUsername( "your_email@address.com" );
post->setTitle( "This is the title." );
post->setContent( "Here is some the content..." );
myblog->createPosting( posting );
@@ -123,9 +124,11 @@
QString interfaceName() const;
/**
- Get information about the user from the blog.
+ Get information about the profile from the blog.
+ Sets the profileId automatically for the blog it is called from.
- @see void fetchedUserInfo( const QMap\<QString,QString\>& )
+ @see setProfileId( const QString& )
+ @see void fetchedProfileId( const QString& )
*/
void fetchProfileId();
--- trunk/KDE/kdepimlibs/kblog/metaweblog.h #702989:702990
@@ -50,8 +50,9 @@
@code
Blog* myblog = new MetaWeblog("http://example.com/xmlrpc/gateway.php");
+ myblog->setUsername( "some_user_id" );
+ myblog->setPassword( "YouRFuNNYPasSwoRD" );
KBlog::BlogPosting *post = new BlogPosting();
- post->setUsername( "some_user_id" );
post->setTitle( "This is the title." );
post->setContent( "Here is some the content..." );
myblog->createPosting( posting );
--- trunk/KDE/kdepimlibs/kblog/movabletype.h #702989:702990
@@ -44,8 +44,9 @@
blog server supports Movable Type.
@code
Blog* myblog = new MovableType("http://example.com/xmlrpc/gateway.php");
+ myblog->setUsername( "some_user_id" );
+ myblog->setPassword( "YoURFunnyPAsSwoRD" );
KBlog::BlogPosting *post = new BlogPosting();
- post->setUsername( "some_user_id" );
post->setTitle( "This is the title." );
post->setContent( "Here is some the content..." );
myblog->createPosting( posting );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic