The acceptance status is in status, not in Reply.

svn path=/branches/KDE/3.5/kdepim/; revision=661635
wilder-work
Thorsten Staerk 19 years ago
parent 481a931996
commit 5da7c1c940
  1. 6
      callback.cpp
  2. 6
      callback.h

@ -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" );

@ -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;

Loading…
Cancel
Save