use Credentials in ServiceJob again

This commit is contained in:
Marco Martin 2013-02-15 15:44:17 +01:00
parent 7be75cab65
commit 99088c6669
3 changed files with 12 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#ifndef SERVICEJOB_P_H
#define SERVICEJOB_P_H
#include "../remote/credentials.h"
#include "../servicejob.h"
#include <QString>
@ -44,6 +45,7 @@ public:
QString operation;
QHash<QString, QVariant> parameters;
QVariant result;
Credentials identity;
bool m_allowAutoStart;
};

View File

@ -19,7 +19,7 @@
#ifndef CREDENTIALS_H
#define CREDENTIALS_H
#include "plasma.h"
#include "plasma/plasma.h"
#include <QtCore/QObject>
#include <QtCore/QDataStream>

View File

@ -26,6 +26,7 @@
#include <kservice.h>
#include <plasma/plasma_export.h>
#include "plasma/remote/credentials.h"
namespace Plasma
{
@ -90,6 +91,11 @@ public:
*/
QHash<QString, QVariant> parameters() const;
/**
* @return the identity of the caller of this operation
*/
Credentials identity() const;
/**
* Returns the result of the operation
*
@ -120,6 +126,9 @@ private:
Q_PRIVATE_SLOT(d, void preventAutoStart())
ServiceJobPrivate * const d;
friend class ServiceProvider;
friend class RemoteServiceJob;
};
} // namespace Plasma