[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/pim/kblogger/src
From: Christian Weilbach <christian () whiletaker ! homeip ! net>
Date: 2008-01-08 15:32:13
Message-ID: 1199806333.830788.17704.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 758619 by weilbach:
Fix livejournal support and some small bugs. Due to the usage of Blogger 1.0 title is \
currently disabled, although the hacked in version would work... Need to have a \
further look.
M +1 -1 composer.cpp
M +15 -2 profileconfigdialog.cpp
--- trunk/playground/pim/kblogger/src/composer.cpp #758618:758619
@@ -331,7 +331,7 @@
}
//TEST - Post Title is Empty
- if ( !TitleLineEdit->isReadOnly() && TitleLineEdit->text().isEmpty() ) {
+ if ( !TitleLineEdit->isHidden() && TitleLineEdit->text().isEmpty() ) {
KMessageBox::sorry ( this, i18n ( "Please fill the Title field." ) );
return;
}
--- trunk/playground/pim/kblogger/src/profileconfigdialog.cpp #758618:758619
@@ -153,11 +153,21 @@
}
if( kcfg_Url->text().indexOf( "wordpress" ) != -1 ){
kcfg_Type->setCurrentIndex( 3 );
+ kcfg_Url->setText( kcfg_Url->text() + "/xmlrpc.php" );
fetchBlogId();
return;
}
+ if( kcfg_Url->text().indexOf( "livejournal" ) != -1 ){
+ kcfg_Type->setCurrentIndex( 0 );
+ kcfg_Url->setText( "http://www.livejournal.com/interface/blogger/" );
+ kcfg_BlogId->addItem( kcfg_User->text() );
+ mAutoconfigureButton->setEnabled( true );
+ mFetchIDButton->setEnabled( true );
+ return;
+ }
if( kcfg_Url->text().indexOf( "drupal" ) != -1 ){
kcfg_Type->setCurrentIndex( 3 );
+ kcfg_Url->setText( kcfg_Url->text() + "/xmlrpc.php" );
fetchBlogId();
return;
}
@@ -293,6 +303,7 @@
kcfg_BlogId->clear();
kcfg_BlogId->addItem( rxBlogId.cap(1) );
mAutoconfigureButton->setEnabled( true );
+ mFetchIDButton->setEnabled( true );
return;
}
@@ -300,8 +311,10 @@
if( rxLiveJournal.indexIn( httpData ) != -1 ){
kDebug() << " rel=\"openid.server\" \
href=\"http://www.livejournal.com/openid/server.bml\" matched"; \
kcfg_Type->setCurrentIndex( 0 );
- kcfg_Url->setText( kcfg_Url->text() + "/interface/blogger" ); //FIXME \
LiveJournal does not work most likely, there seems to be no Blogger 1 \
gateway
- fetchBlogId();
+ kcfg_Url->setText( "http://www.liverjournal.com/interface/blogger/" );
+ kcfg_BlogId->addItem( kcfg_User->text() );
+ mAutoconfigureButton->setEnabled( true );
+ mFetchIDButton->setEnabled( true );
return;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic