From 5da7c1c940497e53d0dde6042e975fce4875ffcc Mon Sep 17 00:00:00 2001 From: Thorsten Staerk Date: Sun, 6 May 2007 07:49:23 +0000 Subject: [PATCH] The acceptance status is in status, not in Reply. svn path=/branches/KDE/3.5/kdepim/; revision=661635 --- callback.cpp | 6 +++--- callback.h | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/callback.cpp b/callback.cpp index 301c0bd1d..53d781785 100644 --- a/callback.cpp +++ b/callback.cpp @@ -57,7 +57,7 @@ Callback::Callback( KMMessage* msg, KMReaderWin* readerWin ) } bool Callback::mailICal( const QString& to, const QString iCal, - const QString& subject, int reply ) const + const QString& subject, QString status ) const { kdDebug(5006) << "Mailing message:\n" << iCal << endl; KMMessage *msg = new KMMessage; @@ -65,7 +65,7 @@ bool Callback::mailICal( const QString& to, const QString iCal, msg->setSubject( subject ); if( GlobalSettings::self()->exchangeCompatibleInvitations() ) { - if (reply == 5) msg->setSubject("The sender has accepted the invitation"); + msg->setSubject(status); } msg->setTo( to ); msg->setFrom( receiver() ); @@ -98,7 +98,7 @@ bool Callback::mailICal( const QString& to, const QString iCal, if( GlobalSettings::self()->exchangeCompatibleInvitations() ) { - if (reply == 5) msg->setSubject("The sender has accepted the invitation"); + msg->setSubject(status); // For Exchange, send ical as attachment, with proper // parameters msg->setCharset( "utf-8" ); diff --git a/callback.h b/callback.h index 23ee2c5e9..2dab1bc1c 100644 --- a/callback.h +++ b/callback.h @@ -55,9 +55,11 @@ public: /** Get the full message */ KMMessage* getMsg() const { return mMsg; } - /** Mail a message */ + /** Mail a message + * @ param status can be accepted/declined/tentative + */ bool mailICal( const QString& to, const QString iCal, - const QString& subject, int reply ) const; + const QString& subject, QString status ) const; /** Get the receiver of the mail */ QString receiver() const;