summaryrefslogtreecommitdiffstats
path: root/libkcal/scheduler.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
commit0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78 (patch)
tree4138783f7dad757fc5fbfaa8d66a355288d3125e /libkcal/scheduler.cpp
parent9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (diff)
downloadtdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.tar.gz
tdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'libkcal/scheduler.cpp')
-rw-r--r--libkcal/scheduler.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/libkcal/scheduler.cpp b/libkcal/scheduler.cpp
index 70f4dbdf5..e0d44f530 100644
--- a/libkcal/scheduler.cpp
+++ b/libkcal/scheduler.cpp
@@ -39,14 +39,14 @@
using namespace KCal;
-ScheduleMessage::ScheduleMessage(IncidenceBase *incidence,int method,ScheduleMessage::tqStatus status)
+ScheduleMessage::ScheduleMessage(IncidenceBase *incidence,int method,ScheduleMessage::Status status)
{
mIncidence = incidence;
mMethod = method;
- mtqStatus = status;
+ mStatus = status;
}
-TQString ScheduleMessage::statusName(ScheduleMessage::tqStatus status)
+TQString ScheduleMessage::statusName(ScheduleMessage::Status status)
{
switch (status) {
case PublishUpdate:
@@ -99,7 +99,7 @@ FreeBusyCache *Scheduler::freeBusyCache() const
bool Scheduler::acceptTransaction( IncidenceBase *incidence,
Method method,
- ScheduleMessage::tqStatus status,
+ ScheduleMessage::Status status,
const TQString &attendee )
{
kdDebug(5800) << "Scheduler::acceptTransaction, method="
@@ -133,23 +133,23 @@ TQString Scheduler::methodName(Method method)
{
switch (method) {
case Publish:
- return TQString::tqfromLatin1("Publish");
+ return TQString::fromLatin1("Publish");
case Request:
- return TQString::tqfromLatin1("Request");
+ return TQString::fromLatin1("Request");
case Refresh:
- return TQString::tqfromLatin1("Refresh");
+ return TQString::fromLatin1("Refresh");
case Cancel:
- return TQString::tqfromLatin1("Cancel");
+ return TQString::fromLatin1("Cancel");
case Add:
- return TQString::tqfromLatin1("Add");
+ return TQString::fromLatin1("Add");
case Reply:
- return TQString::tqfromLatin1("Reply");
+ return TQString::fromLatin1("Reply");
case Counter:
- return TQString::tqfromLatin1("Counter");
+ return TQString::fromLatin1("Counter");
case Declinecounter:
- return TQString::tqfromLatin1("Decline Counter");
+ return TQString::fromLatin1("Decline Counter");
default:
- return TQString::tqfromLatin1("Unknown");
+ return TQString::fromLatin1("Unknown");
}
}
@@ -183,7 +183,7 @@ bool Scheduler::deleteTransaction(IncidenceBase *)
}
bool Scheduler::acceptPublish( IncidenceBase *newIncBase,
- ScheduleMessage::tqStatus status, Method method )
+ ScheduleMessage::Status status, Method method )
{
if( newIncBase->type() == "FreeBusy" ) {
return acceptFreeBusy( newIncBase, method );
@@ -225,7 +225,7 @@ bool Scheduler::acceptPublish( IncidenceBase *newIncBase,
}
bool Scheduler::acceptRequest( IncidenceBase *incidence,
- ScheduleMessage::tqStatus status,
+ ScheduleMessage::Status status,
const TQString &attendee )
{
Incidence *inc = static_cast<Incidence *>(incidence);
@@ -389,14 +389,14 @@ TryAgain:
return true;
}
-bool Scheduler::acceptAdd(IncidenceBase *incidence,ScheduleMessage::tqStatus /* status */)
+bool Scheduler::acceptAdd(IncidenceBase *incidence,ScheduleMessage::Status /* status */)
{
deleteTransaction(incidence);
return false;
}
bool Scheduler::acceptCancel( IncidenceBase *incidence,
- ScheduleMessage::tqStatus status,
+ ScheduleMessage::Status status,
const TQString &attendee )
{
Incidence *inc = static_cast<Incidence *>( incidence );
@@ -492,7 +492,7 @@ bool Scheduler::acceptCancel( IncidenceBase *incidence,
return ret;
}
-bool Scheduler::acceptCancel(IncidenceBase *incidence,ScheduleMessage::tqStatus /* status */)
+bool Scheduler::acceptCancel(IncidenceBase *incidence,ScheduleMessage::Status /* status */)
{
const IncidenceBase *toDelete = mCalendar->incidenceFromSchedulingID( incidence->uid() );
@@ -525,19 +525,19 @@ bool Scheduler::acceptCancel(IncidenceBase *incidence,ScheduleMessage::tqStatus
return ret;
}
-bool Scheduler::acceptDeclineCounter(IncidenceBase *incidence,ScheduleMessage::tqStatus /* status */)
+bool Scheduler::acceptDeclineCounter(IncidenceBase *incidence,ScheduleMessage::Status /* status */)
{
deleteTransaction(incidence);
return false;
}
-//bool Scheduler::acceptFreeBusy(Incidence *incidence,ScheduleMessage::tqStatus status)
+//bool Scheduler::acceptFreeBusy(Incidence *incidence,ScheduleMessage::Status status)
//{
// deleteTransaction(incidence);
// return false;
//}
-bool Scheduler::acceptReply(IncidenceBase *incidence,ScheduleMessage::tqStatus /* status */, Method method)
+bool Scheduler::acceptReply(IncidenceBase *incidence,ScheduleMessage::Status /* status */, Method method)
{
if(incidence->type()=="FreeBusy") {
return acceptFreeBusy(incidence, method);
@@ -576,7 +576,7 @@ bool Scheduler::acceptReply(IncidenceBase *incidence,ScheduleMessage::tqStatus /
if (attIn->email().lower()==attEv->email().lower()) {
//update attendee-info
kdDebug(5800) << "Scheduler::acceptTransaction update attendee" << endl;
- attEv->setqStatus(attIn->status());
+ attEv->seStatus(attIn->status());
attEv->setDelegate(attIn->delegate());
attEv->setDelegator(attIn->delegator());
ret = true;
@@ -668,14 +668,14 @@ bool Scheduler::acceptReply(IncidenceBase *incidence,ScheduleMessage::tqStatus /
return ret;
}
-bool Scheduler::acceptRefresh(IncidenceBase *incidence,ScheduleMessage::tqStatus /* status */)
+bool Scheduler::acceptRefresh(IncidenceBase *incidence,ScheduleMessage::Status /* status */)
{
// handled in korganizer's IncomingDialog
deleteTransaction(incidence);
return false;
}
-bool Scheduler::acceptCounter(IncidenceBase *incidence,ScheduleMessage::tqStatus /* status */)
+bool Scheduler::acceptCounter(IncidenceBase *incidence,ScheduleMessage::Status /* status */)
{
deleteTransaction(incidence);
return false;