From ce836bea2ed8bb7c8cf773ba02c47a4e77df11fe Mon Sep 17 00:00:00 2001 From: Bo Thorsen Date: Mon, 31 Mar 2003 15:27:16 +0000 Subject: [PATCH] Add the refresh signal to the icaliface interface svn path=/trunk/kdepim/; revision=217342 --- kmailicalifaceimpl.cpp | 11 +++++++++++ kmailicalifaceimpl.h | 2 ++ kmgroupware.h | 6 +++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/kmailicalifaceimpl.cpp b/kmailicalifaceimpl.cpp index cf77978ae..29d6bc742 100644 --- a/kmailicalifaceimpl.cpp +++ b/kmailicalifaceimpl.cpp @@ -36,6 +36,8 @@ KMailICalIfaceImpl::KMailICalIfaceImpl( KMGroupware* gw ) connect( gw, SIGNAL( incidenceDeleted( const QString&, const QString& ) ), this, SLOT( slotIncidenceDeleted( const QString&, const QString& ) ) ); + connect( gw, SIGNAL( signalRefresh( const QString& ) ), + this, SLOT( slotRefresh( const QString& ) ) ); } bool KMailICalIfaceImpl::addIncidence( const QString& folder, @@ -83,4 +85,13 @@ void KMailICalIfaceImpl::slotIncidenceDeleted( const QString& folder, const QStr //kapp->dcopClient()->send( "korganizer", "ResourceIMAP", "deleteIncidence(QString,QString)", data ); } +void KMailICalIfaceImpl::slotRefresh( const QString& type ) +{ + QByteArray data; + QDataStream arg(data, IO_WriteOnly ); + arg << type; + kdDebug() << "Emitting DCOP signal signalRefresh( " << type << " )" << endl; + emitDCOPSignal( "signalRefresh(QString)", data ); +} + #include "kmailicalifaceimpl.moc" diff --git a/kmailicalifaceimpl.h b/kmailicalifaceimpl.h index 8ce5c2003..64f8725ca 100644 --- a/kmailicalifaceimpl.h +++ b/kmailicalifaceimpl.h @@ -37,6 +37,8 @@ public: public slots: void slotIncidenceAdded( const QString& folder, const QString& ical ); void slotIncidenceDeleted( const QString& folder, const QString& uid ); + void slotRefresh( const QString& type); + private: KMGroupware* mGroupware; }; diff --git a/kmgroupware.h b/kmgroupware.h index 6a964a2ca..038a4ee0b 100644 --- a/kmgroupware.h +++ b/kmgroupware.h @@ -40,8 +40,8 @@ public: KMGroupware( QObject* parent = 0, const char* name = 0 ); virtual ~KMGroupware(); - /////////////////////////////////// - // Resource IMAP interface + //////////////////////////////////////////////////////////////// + // Resource IMAP interface - See also kmailicalifaceimap.(h|cpp) bool addIncidence( const QString& type, const QString& uid, const QString& ical ); @@ -60,7 +60,7 @@ private slots: void slotIncidenceAdded( KMFolder*, Q_UINT32 ); void slotIncidenceDeleted( KMFolder*, Q_UINT32 ); - ////////////////////////////////// + //////////////////////////////////////////////////////////////// public: