|
|
|
@ -42,7 +42,7 @@ pEpAgent::pEpAgent(const QString &id)
|
|
|
|
|
QDBusConnection::sessionBus().registerService(service);
|
|
|
|
|
qDebug() << __FUNCTION__ << "Registered as " << service;
|
|
|
|
|
|
|
|
|
|
Akonadi::AttributeFactory::registerAttribute<Akonadi::Pop3ResourceAttribute>();
|
|
|
|
|
//Akonadi::AttributeFactory::registerAttribute<Akonadi::Pop3ResourceAttribute>();
|
|
|
|
|
|
|
|
|
|
//mTheKernel = new DummyKernel(this);
|
|
|
|
|
|
|
|
|
@ -71,7 +71,6 @@ pEpAgent::pEpAgent(const QString &id)
|
|
|
|
|
|
|
|
|
|
qDBusRegisterMetaType<QList<qint64> >();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QDBusConnection::sessionBus().registerObject(QStringLiteral("/pEpAgent"), this, QDBusConnection::ExportAdaptors);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -109,8 +108,13 @@ pEpAgent::pEpAgent(const QString &id)
|
|
|
|
|
|
|
|
|
|
//new pEpSelectJob(identifier());
|
|
|
|
|
|
|
|
|
|
qCDebug(PEPAGENT_LOG) << __FUNCTION__ << " Test";
|
|
|
|
|
qDebug() << __FUNCTION__ << " Test";
|
|
|
|
|
// Here we spin up and connect to the pEp engine DBus service
|
|
|
|
|
m_pEpEngine = new QDBusInterface(
|
|
|
|
|
QStringLiteral("security.pep"),
|
|
|
|
|
QStringLiteral("/security/pep"),
|
|
|
|
|
QStringLiteral("security.pep"),
|
|
|
|
|
QDBusConnection::sessionBus()
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//pEpAgent::~pEpAgent()
|
|
|
|
@ -321,9 +325,19 @@ void pEpAgent::retrieveCollections()
|
|
|
|
|
collectionsRetrieved(std::move(collections));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pEpMessage pEpAgent::decryptMessage(const KMime::Message::Ptr &value){
|
|
|
|
|
void pEpAgent::test(){
|
|
|
|
|
qDebug() << __FUNCTION__ << "Test";
|
|
|
|
|
pEpMessage ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//pEpMessage pEpAgent::decryptMessage(const KMime::Message::Ptr &value){
|
|
|
|
|
//pEpMessage pEpAgent::decryptMessage(QString s){
|
|
|
|
|
//pEpMessage* pEpAgent::decryptMessage(const KMime::Message::Ptr &value){
|
|
|
|
|
pEpMessage* pEpAgent::decryptMessage(const QByteArray &content)
|
|
|
|
|
{;
|
|
|
|
|
qDebug() << __FUNCTION__ << "\n" << content;
|
|
|
|
|
//qDebug() << m_pEpEngine->call(QStringLiteral("decrypt_message"), content);
|
|
|
|
|
qDebug() << m_pEpEngine->call(QStringLiteral("hello"));
|
|
|
|
|
pEpMessage *ret = new pEpMessage();
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|