Commit 8d3e467f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

improve++

parent e158eeab
......@@ -18,12 +18,20 @@
#include "specialnotifierjob.h"
#include <Akonadi/Contact/ContactSearchJob>
#include <Akonadi/ItemFetchJob>
#include <Akonadi/ItemFetchScope>
#include <akonadi/kmime/messageparts.h>
#include <KNotification>
SpecialNotifierJob::SpecialNotifierJob(Akonadi::Item::Id id, QObject *parent)
: QObject(parent)
{
Akonadi::Item item(id);
Akonadi::ItemFetchJob *job = new Akonadi::ItemFetchJob( item, this );
job->fetchScope().fetchPayloadPart( Akonadi::MessagePart::Envelope, true );
connect( job, SIGNAL(result(KJob*)), SLOT(itemFetchJobDone(KJob*)) );
}
SpecialNotifierJob::~SpecialNotifierJob()
......@@ -31,6 +39,11 @@ SpecialNotifierJob::~SpecialNotifierJob()
}
void SpecialNotifierJob::slotItemFetchJobDone(KJob*)
{
//TODO
}
void SpecialNotifierJob::slotSearchJobFinished( KJob *job )
{
//TODO
......
......@@ -32,7 +32,7 @@ public:
private Q_SLOTS:
void slotSearchJobFinished( KJob *job );
void slotItemFetchJobDone(KJob*);
};
#endif // SPECIALNOTIFIERJOB_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment