Commit 9456dc60 authored by Laurent Montel's avatar Laurent Montel 😁

Move to job directory. Fix namespace

parent 87a3fc6e
......@@ -38,6 +38,7 @@ set( messagecomposer_job_src
job/emailaddressresolvejob.cpp
job/attachmentfrompublickeyjob.cpp
job/distributionlistexpandjob.cpp
job/savecontactpreferencejob.cpp
)
set( messagecomposer_composer_src
......@@ -46,7 +47,6 @@ set( messagecomposer_composer_src
composer/signaturecontroller.cpp
composer/composerlineedit.cpp
composer/composerviewbase.cpp
composer/savecontactpreferencejob.cpp
composer/keyresolver.cpp
)
......
......@@ -35,7 +35,7 @@
*/
#include "keyresolver.h"
#include "savecontactpreferencejob.h"
#include "job/savecontactpreferencejob.h"
#ifndef QT_NO_CURSOR
#include "messageviewer/utils/kcursorsaver.h"
......@@ -1824,7 +1824,7 @@ Kleo::KeyResolver::ContactPreferences Kleo::KeyResolver::lookupContactPreference
void Kleo::KeyResolver::saveContactPreference( const QString& email, const ContactPreferences& pref ) const
{
d->mContactPreferencesMap.insert( std::make_pair( email, pref ) );
SaveContactPreferenceJob *saveContactPreferencesJob = new SaveContactPreferenceJob(email, pref);
MessageComposer::SaveContactPreferenceJob *saveContactPreferencesJob = new MessageComposer::SaveContactPreferenceJob(email, pref);
saveContactPreferencesJob->start();
}
......
......@@ -28,7 +28,7 @@
#include <QPointer>
#include <QDebug>
using namespace Kleo;
using namespace MessageComposer;
SaveContactPreferenceJob::SaveContactPreferenceJob( const QString& email, const Kleo::KeyResolver::ContactPreferences& pref, QObject *parent)
: KJob(parent),
......
......@@ -22,7 +22,7 @@
#include <KABC/Addressee>
#include "keyresolver.h"
namespace Kleo {
namespace MessageComposer {
class SaveContactPreferenceJob : public KJob
{
Q_OBJECT
......
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