summaryrefslogtreecommitdiffstats
path: root/kresources/blogging/API_Blogger.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
commit86d8364ac704bdc8ad2dfcf52307d9626cfac567 (patch)
tree97d3ac2c2f60780d9a1de4f82caac7cb27534501 /kresources/blogging/API_Blogger.cpp
parenta9bde819f2b421dcc44741156e75eca4bb5fb4f4 (diff)
downloadtdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.tar.gz
tdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kresources/blogging/API_Blogger.cpp')
-rw-r--r--kresources/blogging/API_Blogger.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kresources/blogging/API_Blogger.cpp b/kresources/blogging/API_Blogger.cpp
index 0745467b8..69a722e22 100644
--- a/kresources/blogging/API_Blogger.cpp
+++ b/kresources/blogging/API_Blogger.cpp
@@ -44,53 +44,53 @@ TQString APIBlogger::getFunctionName( blogFunctions type )
-KIO::Job *APIBlogger::createUserInfoJob()
+TDEIO::Job *APIBlogger::createUserInfoJob()
{
kdDebug() << "read user info..." << endl;
TQValueList<TQVariant> args( defaultArgs() );
- return KIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetUserInfo ), args, false );
+ return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetUserInfo ), args, false );
}
-KIO::Job *APIBlogger::createListFoldersJob()
+TDEIO::Job *APIBlogger::createListFoldersJob()
{
// TODO: Check if we're already authenticated. If not, do it!
// if ( isValid() ) {
kdDebug() << "Fetch List of Blogs..." << endl;
TQValueList<TQVariant> args( defaultArgs() );
- return KIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetUsersBlogs ), args, false );
+ return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetUsersBlogs ), args, false );
// } else {
// warningNotInitialized();
// return 0;
// }
}
-KIO::TransferJob *APIBlogger::createListItemsJob( const KURL &url )
+TDEIO::TransferJob *APIBlogger::createListItemsJob( const KURL &url )
{
// TODO: Check if we're already authenticated. If not, do it!
// if ( isValid() ) {
kdDebug() << "Fetch List of Posts..." << endl;
TQValueList<TQVariant> args( defaultArgs( url.url() ) );
args << TQVariant( mDownloadCount );
- return KIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetRecentPosts ), args, false );
+ return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetRecentPosts ), args, false );
// } else {
// warningNotInitialized();
// return 0;
// }
}
-KIO::TransferJob *APIBlogger::createDownloadJob( const KURL &url )
+TDEIO::TransferJob *APIBlogger::createDownloadJob( const KURL &url )
{
// if ( isValid() ){
kdDebug() << "Fetch Posting with url " << url.url() << endl;
TQValueList<TQVariant> args( defaultArgs( url.url() ) );
- return KIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetPost ), args, false );
+ return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerGetPost ), args, false );
// } else {
// warningNotInitialized();
// return 0;
// }
}
-KIO::TransferJob *APIBlogger::createUploadJob( const KURL &url, KBlog::BlogPosting *posting )
+TDEIO::TransferJob *APIBlogger::createUploadJob( const KURL &url, KBlog::BlogPosting *posting )
{
if ( !posting ) {
kdDebug() << "APIBlogger::createUploadJob: posting=0" << endl;
@@ -101,14 +101,14 @@ KIO::TransferJob *APIBlogger::createUploadJob( const KURL &url, KBlog::BlogPosti
TQValueList<TQVariant> args( defaultArgs( posting->postID() ) );
args << TQVariant( posting->content() );
args << TQVariant( /*publish=*/true, 0 );
- return KIO::xmlrpcCall( mServerURL, getFunctionName( bloggerEditPost ), args, false );
+ return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerEditPost ), args, false );
// } else {
// warningNotInitialized();
// return 0;
// }
}
-KIO::TransferJob *APIBlogger::createUploadNewJob( KBlog::BlogPosting *posting )
+TDEIO::TransferJob *APIBlogger::createUploadNewJob( KBlog::BlogPosting *posting )
{
if ( !posting ) {
kdDebug() << "APIBlogger::createUploadNewJob: posting=0" << endl;
@@ -119,20 +119,20 @@ KIO::TransferJob *APIBlogger::createUploadNewJob( KBlog::BlogPosting *posting )
TQValueList<TQVariant> args( defaultArgs( posting->blogID() ) );
args << TQVariant( posting->content() );
args << TQVariant( /*publish=*/true, 0 );
- return KIO::xmlrpcCall( mServerURL, getFunctionName( bloggerNewPost ), args, false );
+ return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerNewPost ), args, false );
// } else {
// warningNotInitialized();
// return 0;
// }
}
-KIO::Job *APIBlogger::createRemoveJob( const KURL &/*url*/, const TQString &postid )
+TDEIO::Job *APIBlogger::createRemoveJob( const KURL &/*url*/, const TQString &postid )
{
kdDebug() << "APIBlogger::createRemoveJob: postid=" << postid << endl;
// if ( isValid() ){
TQValueList<TQVariant> args( defaultArgs( postid ) );
args << TQVariant( /*publish=*/true, 0 );
- return KIO::xmlrpcCall( mServerURL, getFunctionName( bloggerDeletePost ), args, false );
+ return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerDeletePost ), args, false );
// } else {
// warningNotInitialized();
// return 0;
@@ -142,11 +142,11 @@ kdDebug() << "APIBlogger::createRemoveJob: postid=" << postid << endl;
-bool APIBlogger::interpretUserInfoJob( KIO::Job *job )
+bool APIBlogger::interpretUserInfoJob( TDEIO::Job *job )
{
// TODO: Implement user authentication
// isValid = true;
- KIO::XmlrpcJob *trfjob = dynamic_cast<KIO::XmlrpcJob*>(job);
+ TDEIO::XmlrpcJob *trfjob = dynamic_cast<TDEIO::XmlrpcJob*>(job);
if ( job->error() || !trfjob ) {
// TODO: Error handling
return false;
@@ -172,10 +172,10 @@ bool APIBlogger::interpretUserInfoJob( KIO::Job *job )
return false;
}
-void APIBlogger::interpretListFoldersJob( KIO::Job *job )
+void APIBlogger::interpretListFoldersJob( TDEIO::Job *job )
{
kdDebug() << "APIBlogger::interpretListFoldersJob" << endl;
- KIO::XmlrpcJob *trfjob = dynamic_cast<KIO::XmlrpcJob*>(job);
+ TDEIO::XmlrpcJob *trfjob = dynamic_cast<TDEIO::XmlrpcJob*>(job);
if ( job->error() || !trfjob ) {
// TODO: Error handling
} else {
@@ -204,15 +204,15 @@ kdDebug()<< "Emitting folderInfoRetrieved( id=" << id << ", name=" << name << ")
}
}
-bool APIBlogger::interpretListItemsJob( KIO::Job *job )
+bool APIBlogger::interpretListItemsJob( TDEIO::Job *job )
{
return interpretDownloadItemsJob( job );
}
-bool APIBlogger::interpretDownloadItemsJob( KIO::Job *job )
+bool APIBlogger::interpretDownloadItemsJob( TDEIO::Job *job )
{
kdDebug(5800)<<"APIBlogger::interpretDownloadItemJob"<<endl;
- KIO::XmlrpcJob *trfjob = dynamic_cast<KIO::XmlrpcJob*>(job);
+ TDEIO::XmlrpcJob *trfjob = dynamic_cast<TDEIO::XmlrpcJob*>(job);
bool success = false;
if ( job->error() || !trfjob ) {
// TODO: Error handling