diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kresources/blogging/API_Blog.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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() ); |