Adjusted to latest TQVariant::TQVariant(bool) function.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/29/head
Slávek Banko 6 years ago
parent f007b524fb
commit 00c81d9763
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -127,7 +127,7 @@ namespace {
// some special types: // some special types:
template <> struct from_helper<bool> : public TQVariant { template <> struct from_helper<bool> : public TQVariant {
from_helper( bool b ) : TQVariant( b, int() ) {} from_helper( bool b ) : TQVariant( b ) {}
}; };
template <> struct from_helper<KURL> : public TQVariant { template <> struct from_helper<KURL> : public TQVariant {
from_helper( const KURL & url ) : TQVariant( url.path() ) {} from_helper( const KURL & url ) : TQVariant( url.path() ) {}
@ -180,7 +180,7 @@ namespace {
if ( argType() != ArgType_Path && argType()!= ArgType_DirPath ) return mValue.toStringList(); if ( argType() != ArgType_Path && argType()!= ArgType_DirPath ) return mValue.toStringList();
else return to<KURL::List>( mValue ); } else return to<KURL::List>( mValue ); }
void resetToDefault() { mValue = defaultValue(); mDirty = false; } void resetToDefault() { mValue = defaultValue(); mDirty = false; }
void setBoolValue( bool value ) { setValue( TQVariant( value, int() ) ); } void setBoolValue( bool value ) { setValue( TQVariant( value ) ); }
void setStringValue( const TQString & value ) { setValue( value ); } void setStringValue( const TQString & value ) { setValue( value ); }
void setIntValue( int value ) { setValue( value ); } void setIntValue( int value ) { setValue( value ); }
void setUIntValue( unsigned int value ) { setValue( value ); } void setUIntValue( unsigned int value ) { setValue( value ); }
@ -219,9 +219,9 @@ namespace {
return TQVariant(); return TQVariant();
case ArgType_None: case ArgType_None:
if ( isList() ) if ( isList() )
return TQValueList<TQVariant>() << TQVariant( data.defaults.boolean.value, int() ); return TQValueList<TQVariant>() << TQVariant( data.defaults.boolean.value );
else else
return TQVariant( data.defaults.boolean.value, int() ); return TQVariant( data.defaults.boolean.value );
case ArgType_String: case ArgType_String:
if ( isList() ) if ( isList() )
return TQStringList( TQString::fromLatin1( data.defaults.string ) ); return TQStringList( TQString::fromLatin1( data.defaults.string ) );

@ -100,7 +100,7 @@ TDEIO::TransferJob *APIBlogger::createUploadJob( const KURL &url, KBlog::BlogPos
kdDebug() << "Uploading Posting with url " << url.url() << endl; kdDebug() << "Uploading Posting with url " << url.url() << endl;
TQValueList<TQVariant> args( defaultArgs( posting->postID() ) ); TQValueList<TQVariant> args( defaultArgs( posting->postID() ) );
args << TQVariant( posting->content() ); args << TQVariant( posting->content() );
args << TQVariant( /*publish=*/true, 0 ); args << TQVariant( /*publish=*/true );
return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerEditPost ), args, false ); return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerEditPost ), args, false );
// } else { // } else {
// warningNotInitialized(); // warningNotInitialized();
@ -118,7 +118,7 @@ TDEIO::TransferJob *APIBlogger::createUploadNewJob( KBlog::BlogPosting *posting
kdDebug() << "Creating new Posting with blogid " << posting->blogID() << " at url " << mServerURL << endl; kdDebug() << "Creating new Posting with blogid " << posting->blogID() << " at url " << mServerURL << endl;
TQValueList<TQVariant> args( defaultArgs( posting->blogID() ) ); TQValueList<TQVariant> args( defaultArgs( posting->blogID() ) );
args << TQVariant( posting->content() ); args << TQVariant( posting->content() );
args << TQVariant( /*publish=*/true, 0 ); args << TQVariant( /*publish=*/true );
return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerNewPost ), args, false ); return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerNewPost ), args, false );
// } else { // } else {
// warningNotInitialized(); // warningNotInitialized();
@ -131,7 +131,7 @@ TDEIO::Job *APIBlogger::createRemoveJob( const KURL &/*url*/, const TQString &po
kdDebug() << "APIBlogger::createRemoveJob: postid=" << postid << endl; kdDebug() << "APIBlogger::createRemoveJob: postid=" << postid << endl;
// if ( isValid() ){ // if ( isValid() ){
TQValueList<TQVariant> args( defaultArgs( postid ) ); TQValueList<TQVariant> args( defaultArgs( postid ) );
args << TQVariant( /*publish=*/true, 0 ); args << TQVariant( /*publish=*/true );
return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerDeletePost ), args, false ); return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerDeletePost ), args, false );
// } else { // } else {
// warningNotInitialized(); // warningNotInitialized();

@ -260,7 +260,7 @@ bool ResourceXMLRPC::doLoad()
this, TQT_SLOT( loadEventCategoriesFinished( const TQValueList<TQVariant>&, const TQVariant& ) ), this, TQT_SLOT( loadEventCategoriesFinished( const TQValueList<TQVariant>&, const TQVariant& ) ),
this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) );
mServer->call( LoadTodoCategoriesCommand, TQVariant( false, 0 ), mServer->call( LoadTodoCategoriesCommand, TQVariant( false ),
this, TQT_SLOT( loadTodoCategoriesFinished( const TQValueList<TQVariant>&, const TQVariant& ) ), this, TQT_SLOT( loadTodoCategoriesFinished( const TQValueList<TQVariant>&, const TQVariant& ) ),
this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) );
return true; return true;

@ -208,7 +208,7 @@ bool ResourceXMLRPC::asyncLoad()
this, TQT_SLOT( listContactsFinished( const TQValueList<TQVariant>&, const TQVariant& ) ), this, TQT_SLOT( listContactsFinished( const TQValueList<TQVariant>&, const TQVariant& ) ),
this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) );
mServer->call( LoadCategoriesCommand, TQVariant( false, 0 ), mServer->call( LoadCategoriesCommand, TQVariant( false ),
this, TQT_SLOT( loadCategoriesFinished( const TQValueList<TQVariant>&, const TQVariant& ) ), this, TQT_SLOT( loadCategoriesFinished( const TQValueList<TQVariant>&, const TQVariant& ) ),
this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) );

Loading…
Cancel
Save