use Credentials in ServiceJob again
This commit is contained in:
parent
7be75cab65
commit
99088c6669
@ -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;
|
||||
};
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef CREDENTIALS_H
|
||||
#define CREDENTIALS_H
|
||||
|
||||
#include "plasma.h"
|
||||
#include "plasma/plasma.h"
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QDataStream>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user