summaryrefslogtreecommitdiffstats
path: root/tderesources/egroupware/knotes_resourcexmlrpc.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 17:18:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 17:18:13 +0900
commit6d2f3127be206390c4c576fc174ad6edeb020dfe (patch)
treeca430a49349b46c7e556a2c6cb140730a3b00b46 /tderesources/egroupware/knotes_resourcexmlrpc.cpp
parent2852e8272a186108d3c8b2bc133e67fd8624e99c (diff)
downloadtdepim-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/egroupware/knotes_resourcexmlrpc.cpp')
-rw-r--r--tderesources/egroupware/knotes_resourcexmlrpc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tderesources/egroupware/knotes_resourcexmlrpc.cpp b/tderesources/egroupware/knotes_resourcexmlrpc.cpp
index 15d76b238..9a4770760 100644
--- a/tderesources/egroupware/knotes_resourcexmlrpc.cpp
+++ b/tderesources/egroupware/knotes_resourcexmlrpc.cpp
@@ -117,7 +117,7 @@ bool ResourceXMLRPC::load()
mServer->setUrl( KURL( mPrefs->url() ) );
mServer->setUserAgent( "KDE-Notes" );
- TQMap<TQString, TQVariant> args, columns;
+ TQStringVariantMap args, columns;
args.insert( "domain", mPrefs->domain() );
args.insert( "username", mPrefs->user() );
args.insert( "password", mPrefs->password() );
@@ -152,7 +152,7 @@ bool ResourceXMLRPC::save()
bool ResourceXMLRPC::addNote( KCal::Journal *journal )
{
- TQMap<TQString, TQVariant> args;
+ TQStringVariantMap args;
writeNote( journal, args );
KCal::Journal *oldJournal = mCalendar.journal( journal->uid() );
@@ -223,7 +223,7 @@ KCal::Alarm::List ResourceXMLRPC::alarms( const TQDateTime& from, const TQDateTi
void ResourceXMLRPC::loginFinished( const TQValueList<TQVariant>& variant,
const TQVariant& )
{
- TQMap<TQString, TQVariant> map = variant[ 0 ].toMap();
+ TQStringVariantMap map = variant[ 0 ].toMap();
KURL url = KURL( mPrefs->url() );
if ( map[ "GOAWAY" ].toString() == "XOXO" ) { // failed
@@ -243,7 +243,7 @@ void ResourceXMLRPC::loginFinished( const TQValueList<TQVariant>& variant,
void ResourceXMLRPC::logoutFinished( const TQValueList<TQVariant>& variant,
const TQVariant& )
{
- TQMap<TQString, TQVariant> map = variant[ 0 ].toMap();
+ TQStringVariantMap map = variant[ 0 ].toMap();
if ( map[ "GOODBYE" ].toString() != "XOXO" )
kdError() << "logout failed" << endl;
@@ -271,7 +271,7 @@ void ResourceXMLRPC::listNotesFinished( const TQValueList<TQVariant> &list, cons
TQValueList<TQVariant>::Iterator noteIt;
for ( noteIt = noteList.begin(); noteIt != noteList.end(); ++noteIt ) {
- TQMap<TQString, TQVariant> map = (*noteIt).toMap();
+ TQStringVariantMap map = (*noteIt).toMap();
KCal::Journal *journal = new KCal::Journal();
@@ -315,7 +315,7 @@ void ResourceXMLRPC::fault( int error, const TQString& errorMsg, const TQVariant
mSynchronizer->stop();
}
-void ResourceXMLRPC::writeNote( KCal::Journal* journal, TQMap<TQString, TQVariant>& args )
+void ResourceXMLRPC::writeNote( KCal::Journal* journal, TQStringVariantMap& args )
{
args.insert( "subject", journal->summary() );
args.insert( "des", journal->description() );
@@ -323,7 +323,7 @@ void ResourceXMLRPC::writeNote( KCal::Journal* journal, TQMap<TQString, TQVarian
(journal->secrecy() == KCal::Journal::SecrecyPublic ? "public" : "private" ) );
}
-void ResourceXMLRPC::readNote( const TQMap<TQString, TQVariant>& args, KCal::Journal *journal, TQString &uid )
+void ResourceXMLRPC::readNote( const TQStringVariantMap& args, KCal::Journal *journal, TQString &uid )
{
uid = args[ "id" ].toString();