summaryrefslogtreecommitdiffstats
path: root/kresources/blogging/API_Blog.h
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/blogging/API_Blog.h')
-rw-r--r--kresources/blogging/API_Blog.h110
1 files changed, 55 insertions, 55 deletions
diff --git a/kresources/blogging/API_Blog.h b/kresources/blogging/API_Blog.h
index 77c27d68b..18bc1be0f 100644
--- a/kresources/blogging/API_Blog.h
+++ b/kresources/blogging/API_Blog.h
@@ -13,10 +13,10 @@
#include <kio/job.h>
#include <libkcal/journal.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qdatetime.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqdatetime.h>
/**
This is the main interface for blog backends
@@ -31,53 +31,53 @@ public:
BlogPosting() {}
virtual ~BlogPosting() {}
- QString userID() const { return mUserID; }
- void setUserID( const QString &userID ) { mUserID = userID; }
+ TQString userID() const { return mUserID; }
+ void setUserID( const TQString &userID ) { mUserID = userID; }
- QString blogID() const { return mBlogID; }
- void setBlogID( const QString &blogID ) { mBlogID = blogID; }
+ TQString blogID() const { return mBlogID; }
+ void setBlogID( const TQString &blogID ) { mBlogID = blogID; }
- QString postID() const { return mPostID; }
- void setPostID( const QString &postID ) { assignPostID( postID ); mPostID = postID; }
+ TQString postID() const { return mPostID; }
+ void setPostID( const TQString &postID ) { assignPostID( postID ); mPostID = postID; }
- QString title() const { return mTitle; }
- void setTitle( const QString &title ) { mTitle = title; }
+ TQString title() const { return mTitle; }
+ void setTitle( const TQString &title ) { mTitle = title; }
- QString content() const { return mContent; }
- void setContent( const QString &content ) { mContent = content; }
+ TQString content() const { return mContent; }
+ void setContent( const TQString &content ) { mContent = content; }
- QString category() const { return mCategory; }
- void setCategory( const QString &category ) { mCategory = category; }
+ TQString category() const { return mCategory; }
+ void setCategory( const TQString &category ) { mCategory = category; }
- QString fingerprint() const { return mFingerprint; }
- void setFingerprint( const QString &fp ) { mFingerprint = fp; }
+ TQString fingerprint() const { return mFingerprint; }
+ void setFingerprint( const TQString &fp ) { mFingerprint = fp; }
- QDateTime dateTime() const { return mDateTime; }
- void setDateTime( const QDateTime &datetime ) { mDateTime = datetime; }
+ TQDateTime dateTime() const { return mDateTime; }
+ void setDateTime( const TQDateTime &datetime ) { mDateTime = datetime; }
- QDateTime creationDateTime() const { return mCreationDateTime; }
- void setCreationDateTime( const QDateTime &datetime ) { mCreationDateTime = datetime; }
+ TQDateTime creationDateTime() const { return mCreationDateTime; }
+ void setCreationDateTime( const TQDateTime &datetime ) { mCreationDateTime = datetime; }
- QDateTime modificationDateTime() const { return mModificationDateTime; }
- void setModificationDateTime( const QDateTime &datetime ) { mModificationDateTime = datetime; }
+ TQDateTime modificationDateTime() const { return mModificationDateTime; }
+ void setModificationDateTime( const TQDateTime &datetime ) { mModificationDateTime = datetime; }
virtual void wasDeleted( bool ) {}
virtual void wasUploaded( bool ) {}
- virtual void error( int /*code*/, const QString &/*error*/ ) {}
+ virtual void error( int /*code*/, const TQString &/*error*/ ) {}
protected:
// Override this method to detect the new postID assigned when adding a new post
- virtual void assignPostID( const QString &/*postID*/ ) {}
- QString mUserID;
- QString mBlogID;
- QString mPostID;
- QString mTitle;
- QString mContent;
- QString mCategory;
- QString mFingerprint;
- QDateTime mDateTime;
- QDateTime mCreationDateTime;
- QDateTime mModificationDateTime;
+ virtual void assignPostID( const TQString &/*postID*/ ) {}
+ TQString mUserID;
+ TQString mBlogID;
+ TQString mPostID;
+ TQString mTitle;
+ TQString mContent;
+ TQString mCategory;
+ TQString mFingerprint;
+ TQDateTime mDateTime;
+ TQDateTime mCreationDateTime;
+ TQDateTime mModificationDateTime;
};
@@ -85,18 +85,18 @@ class APIBlog : public QObject
{
Q_OBJECT
public:
- APIBlog( const KURL &server, QObject *parent = 0L, const char *name = 0L );
+ APIBlog( const KURL &server, TQObject *parent = 0L, const char *name = 0L );
virtual ~APIBlog();
- virtual QString interfaceName() const = 0;
+ virtual TQString interfaceName() const = 0;
- void setAppID( const QString &appID ) { mAppID = appID; }
- QString appID() const { return mAppID; }
+ void setAppID( const TQString &appID ) { mAppID = appID; }
+ TQString appID() const { return mAppID; }
- void setPassword( const QString &pass ) { mPassword = pass; }
- QString password() const { return mPassword; }
+ void setPassword( const TQString &pass ) { mPassword = pass; }
+ TQString password() const { return mPassword; }
- void setUsername( const QString &uname ) { mUsername = uname; }
- QString username() const { return mUsername; }
+ void setUsername( const TQString &uname ) { mUsername = uname; }
+ TQString username() const { return mUsername; }
void setURL( const KURL& url ) { mServerURL = url; }
KURL url() const { return mServerURL; }
@@ -119,8 +119,8 @@ class APIBlog : public QObject
bloggerSetTemplate
};
- virtual QString getFunctionName( blogFunctions type ) = 0;
- virtual QValueList<QVariant> defaultArgs( const QString &id = QString::null );
+ virtual TQString getFunctionName( blogFunctions type ) = 0;
+ virtual TQValueList<TQVariant> defaultArgs( const TQString &id = TQString::null );
virtual KIO::Job *createUserInfoJob() = 0;
virtual KIO::Job *createListFoldersJob() = 0;
@@ -128,7 +128,7 @@ class APIBlog : public QObject
virtual KIO::TransferJob *createDownloadJob( const KURL &url ) = 0;
virtual KIO::TransferJob *createUploadJob( const KURL &url, KBlog::BlogPosting *posting ) = 0;
virtual KIO::TransferJob *createUploadNewJob( KBlog::BlogPosting *posting ) = 0;
- virtual KIO::Job *createRemoveJob( const KURL &url, const QString &postid ) = 0;
+ virtual KIO::Job *createRemoveJob( const KURL &url, const TQString &postid ) = 0;
virtual bool interpretUserInfoJob( KIO::Job *job ) = 0;
virtual void interpretListFoldersJob( KIO::Job *job ) = 0;
@@ -140,21 +140,21 @@ class APIBlog : public QObject
signals:
// TODO: Connect these
- void userInfoRetrieved( const QString &nickname, const QString &userid, const QString &email );
- void folderInfoRetrieved( const QString &id, const QString &name );
+ void userInfoRetrieved( const TQString &nickname, const TQString &userid, const TQString &email );
+ void folderInfoRetrieved( const TQString &id, const TQString &name );
void itemOnServer( const KURL &remoteURL );
- void itemDownloaded( KCal::Incidence *j, const QString &localID,
- const KURL &remoteURL, const QString &fingerprint,
- const QString &storageLocation );
+ void itemDownloaded( KCal::Incidence *j, const TQString &localID,
+ const KURL &remoteURL, const TQString &fingerprint,
+ const TQString &storageLocation );
protected:
KURL mServerURL;
- QString mPassword;
- QString mUsername;
- QString mAppID;
+ TQString mPassword;
+ TQString mUsername;
+ TQString mAppID;
int mDownloadCount;
};