diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-01 17:18:13 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-01 17:18:13 +0900 |
commit | 6d2f3127be206390c4c576fc174ad6edeb020dfe (patch) | |
tree | ca430a49349b46c7e556a2c6cb140730a3b00b46 /tderesources/blogging | |
parent | 2852e8272a186108d3c8b2bc133e67fd8624e99c (diff) | |
download | tdepim-6d2f3127be206390c4c576fc174ad6edeb020dfe.tar.gz tdepim-6d2f3127be206390c4c576fc174ad6edeb020dfe.zip |
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tderesources/blogging')
-rw-r--r-- | tderesources/blogging/API_Blogger.cpp | 8 | ||||
-rw-r--r-- | tderesources/blogging/API_Blogger.h | 2 | ||||
-rw-r--r-- | tderesources/blogging/xmlrpcjob.cpp | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/tderesources/blogging/API_Blogger.cpp b/tderesources/blogging/API_Blogger.cpp index 984cc378b..ead54dcd2 100644 --- a/tderesources/blogging/API_Blogger.cpp +++ b/tderesources/blogging/API_Blogger.cpp @@ -159,7 +159,7 @@ bool APIBlogger::interpretUserInfoJob( TDEIO::Job *job ) TQValueList<TQVariant>::ConstIterator end = posts.end(); for ( ; it != end; ++it ) { kdDebug () << "MIDDLE: " << ( *it ).typeName() << endl; - const TQMap<TQString, TQVariant> postInfo = ( *it ).toMap(); + const TQStringVariantMap postInfo = ( *it ).toMap(); const TQString nickname = postInfo[ "nickname" ].toString(); const TQString userid = postInfo[ "userid" ].toString(); const TQString email = postInfo[ "email" ].toString(); @@ -188,7 +188,7 @@ kdDebug() << "APIBlogger::interpretListFoldersJob, no error!" << endl; TQValueList<TQVariant>::ConstIterator end = posts.end(); for ( ; it != end; ++it ) { kdDebug () << "MIDDLE: " << ( *it ).typeName() << endl; - const TQMap<TQString, TQVariant> postInfo = ( *it ).toMap(); + const TQStringVariantMap postInfo = ( *it ).toMap(); const TQString id( postInfo[ "blogid" ].toString() ); const TQString name( postInfo[ "blogName" ].toString() ); @@ -230,7 +230,7 @@ bool APIBlogger::interpretDownloadItemsJob( TDEIO::Job *job ) for ( ; it != end; ++it ) { BlogPosting posting; kdDebug () << "MIDDLE: " << ( *it ).typeName() << endl; - const TQMap<TQString, TQVariant> postInfo = ( *it ).toMap(); + const TQStringVariantMap postInfo = ( *it ).toMap(); if ( readPostingFromMap( &posting, postInfo ) ) { KCal::Journal *j = journalFromPosting( &posting ); // dumpBlog( &posting ); @@ -252,7 +252,7 @@ bool APIBlogger::interpretDownloadItemsJob( TDEIO::Job *job ) } -bool APIBlogger::readPostingFromMap( BlogPosting *post, const TQMap<TQString, TQVariant> &postInfo ) +bool APIBlogger::readPostingFromMap( BlogPosting *post, const TQStringVariantMap &postInfo ) { // FIXME: if ( !post ) return false; diff --git a/tderesources/blogging/API_Blogger.h b/tderesources/blogging/API_Blogger.h index d7d5f43b9..4c78f01ff 100644 --- a/tderesources/blogging/API_Blogger.h +++ b/tderesources/blogging/API_Blogger.h @@ -50,7 +50,7 @@ class APIBlogger : public APIBlog bool interpretListItemsJob( TDEIO::Job *job ); bool interpretDownloadItemsJob( TDEIO::Job *job ); protected: - bool readPostingFromMap( BlogPosting *post, const TQMap<TQString, TQVariant> &postInfo ); + bool readPostingFromMap( BlogPosting *post, const TQStringVariantMap &postInfo ); }; } diff --git a/tderesources/blogging/xmlrpcjob.cpp b/tderesources/blogging/xmlrpcjob.cpp index 5f57f1f65..70eb1d8cf 100644 --- a/tderesources/blogging/xmlrpcjob.cpp +++ b/tderesources/blogging/xmlrpcjob.cpp @@ -278,9 +278,9 @@ TQString XmlrpcJob::marshal( const TQVariant &arg ) case TQVariant::Map: { TQString markup = "<value><struct>\r\n"; - TQMap<TQString, TQVariant> map = arg.toMap(); - TQMap<TQString, TQVariant>::ConstIterator it = map.begin(); - TQMap<TQString, TQVariant>::ConstIterator end = map.end(); + TQStringVariantMap map = arg.toMap(); + TQStringVariantMap::ConstIterator it = map.begin(); + TQStringVariantMap::ConstIterator end = map.end(); for ( ; it != end; ++it ) { markup += "<member>\r\n"; @@ -357,7 +357,7 @@ kdDebug()<<"Demarshalling element \"" << elem.text() <<"\"" << endl; } else if ( typeName == "struct" ) { - TQMap<TQString, TQVariant> map; + TQStringVariantMap map; TQDomNode memberNode = typeElement.firstChild(); while ( !memberNode.isNull() ) { const TQString key = memberNode.toElement().elementsByTagName( "name" ).item( 0 ).toElement().text(); |