diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkcal/scheduler.h | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/scheduler.h')
-rw-r--r-- | libkcal/scheduler.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libkcal/scheduler.h b/libkcal/scheduler.h index bf22c9c81..ceeace4a1 100644 --- a/libkcal/scheduler.h +++ b/libkcal/scheduler.h @@ -47,14 +47,14 @@ class ScheduleMessage /** Message status. */ - enum Status { PublishNew, PublishUpdate, Obsolete, RequestNew, + enum tqStatus { PublishNew, PublishUpdate, Obsolete, RequestNew, RequestUpdate, Unknown }; /** Create a scheduling message with method as defined in Scheduler::Method and a status. */ - ScheduleMessage( IncidenceBase *, int method, Status status ); + ScheduleMessage( IncidenceBase *, int method, tqStatus status ); ~ScheduleMessage() {}; /** @@ -68,7 +68,7 @@ class ScheduleMessage /** Return status of this message. */ - Status status() { return mStatus; } + tqStatus status() { return mtqStatus; } /** Return error message if there is any. */ @@ -77,12 +77,12 @@ class ScheduleMessage /** Return a human-readable name for an iTIP message status. */ - static TQString statusName( Status status ); + static TQString statusName( tqStatus status ); private: IncidenceBase *mIncidence; int mMethod; - Status mStatus; + tqStatus mtqStatus; TQString mError; class Private; @@ -140,8 +140,8 @@ class LIBKCAL_EXPORT Scheduler on who's behalf this transaction is to be performed. */ bool acceptTransaction( IncidenceBase *, Method method, - ScheduleMessage::Status status, - const TQString& attendee = TQString::null ); + ScheduleMessage::tqStatus status, + const TQString& attendee = TQString() ); /** Return a machine-readable name for a iTIP method. @@ -169,20 +169,20 @@ class LIBKCAL_EXPORT Scheduler FreeBusyCache *freeBusyCache() const; protected: - bool acceptPublish( IncidenceBase *, ScheduleMessage::Status status, + bool acceptPublish( IncidenceBase *, ScheduleMessage::tqStatus status, Method method ); - bool acceptRequest( IncidenceBase *, ScheduleMessage::Status status, + bool acceptRequest( IncidenceBase *, ScheduleMessage::tqStatus status, const TQString & attendee ); - bool acceptAdd( IncidenceBase *, ScheduleMessage::Status status ); - KDE_DEPRECATED bool acceptCancel( IncidenceBase *, ScheduleMessage::Status status ); - bool acceptCancel( IncidenceBase *, ScheduleMessage::Status status, + bool acceptAdd( IncidenceBase *, ScheduleMessage::tqStatus status ); + KDE_DEPRECATED bool acceptCancel( IncidenceBase *, ScheduleMessage::tqStatus status ); + bool acceptCancel( IncidenceBase *, ScheduleMessage::tqStatus status, const TQString & attendee ); bool acceptDeclineCounter( IncidenceBase *, - ScheduleMessage::Status status ); - bool acceptReply( IncidenceBase *, ScheduleMessage::Status status, + ScheduleMessage::tqStatus status ); + bool acceptReply( IncidenceBase *, ScheduleMessage::tqStatus status, Method method ); - bool acceptRefresh( IncidenceBase *, ScheduleMessage::Status status ); - bool acceptCounter( IncidenceBase *, ScheduleMessage::Status status ); + bool acceptRefresh( IncidenceBase *, ScheduleMessage::tqStatus status ); + bool acceptCounter( IncidenceBase *, ScheduleMessage::tqStatus status ); bool acceptFreeBusy( IncidenceBase *, Method method ); Calendar *mCalendar; |