diff options
Diffstat (limited to 'kresources/blogging/API_Blog.cpp')
-rw-r--r-- | kresources/blogging/API_Blog.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kresources/blogging/API_Blog.cpp b/kresources/blogging/API_Blog.cpp index 670cd1661..b6ac3752b 100644 --- a/kresources/blogging/API_Blog.cpp +++ b/kresources/blogging/API_Blog.cpp @@ -8,13 +8,13 @@ ***************************************************************************/ #include "API_Blog.h" #include <kdebug.h> -#include <qvariant.h> +#include <tqvariant.h> using namespace KBlog; -APIBlog::APIBlog( const KURL &url, QObject *parent, const char *name ) : - QObject( parent, name ), - mServerURL( url ), mAppID( QString::null ), mDownloadCount( 20 ) +APIBlog::APIBlog( const KURL &url, TQObject *parent, const char *name ) : + TQObject( parent, name ), + mServerURL( url ), mAppID( TQString::null ), mDownloadCount( 20 ) {} APIBlog::~APIBlog() @@ -42,7 +42,7 @@ BlogTemplate APIBlog::templateTags() const return mTemplate; }*/ -/*void APIBlog::deletePost( const QString &postID ) +/*void APIBlog::deletePost( const TQString &postID ) { BlogPosting *post = new BlogPosting(); post->setPostID( postID ); @@ -50,15 +50,15 @@ BlogTemplate APIBlog::templateTags() const delete post; }*/ -QValueList<QVariant> APIBlog::defaultArgs( const QString &id ) +TQValueList<TQVariant> APIBlog::defaultArgs( const TQString &id ) { - QValueList<QVariant> args; - args << QVariant( mAppID ); + TQValueList<TQVariant> args; + args << TQVariant( mAppID ); if ( !id.isNull() ) { - args << QVariant( id ); + args << TQVariant( id ); } - args << QVariant( mUsername ) - << QVariant( mPassword ); + args << TQVariant( mUsername ) + << TQVariant( mPassword ); return args; } @@ -67,9 +67,9 @@ KCal::Journal *APIBlog::journalFromPosting( KBlog::BlogPosting *blog ) { if ( !blog ) return 0; KCal::Journal *j = new KCal::Journal(); - QDateTime dt = blog->dateTime(); - QDateTime creationDt = blog->creationDateTime(); - QDateTime modificationDt = blog->modificationDateTime(); + TQDateTime dt = blog->dateTime(); + TQDateTime creationDt = blog->creationDateTime(); + TQDateTime modificationDt = blog->modificationDateTime(); kdDebug() << "dt ="<<dt.toString( Qt::ISODate ) << endl; kdDebug() << "creationDt ="<<creationDt.toString( Qt::ISODate ) << endl; kdDebug() << "modificationDt="<<modificationDt.toString( Qt::ISODate ) << endl; @@ -88,7 +88,7 @@ kdDebug() << "modificationDt="<<modificationDt.toString( Qt::ISODate ) << endl; << blog->dateTime().toString()<<endl; j->setSummary( blog->title() ); j->setDescription( blog->content() ); - j->setCategories( QStringList( blog->category() ) ); + j->setCategories( TQStringList( blog->category() ) ); j->setOrganizer( blog->userID() ); j->setCustomProperty( "KCalBloggerRes", "UserID", blog->userID() ); j->setCustomProperty( "KCalBloggerRes", "BlogID", blog->blogID() ); |