use Credentials in ServiceJob again
This commit is contained in:
parent
7be75cab65
commit
99088c6669
@ -19,6 +19,7 @@
|
|||||||
#ifndef SERVICEJOB_P_H
|
#ifndef SERVICEJOB_P_H
|
||||||
#define SERVICEJOB_P_H
|
#define SERVICEJOB_P_H
|
||||||
|
|
||||||
|
#include "../remote/credentials.h"
|
||||||
#include "../servicejob.h"
|
#include "../servicejob.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
@ -44,6 +45,7 @@ public:
|
|||||||
QString operation;
|
QString operation;
|
||||||
QHash<QString, QVariant> parameters;
|
QHash<QString, QVariant> parameters;
|
||||||
QVariant result;
|
QVariant result;
|
||||||
|
Credentials identity;
|
||||||
bool m_allowAutoStart;
|
bool m_allowAutoStart;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef CREDENTIALS_H
|
#ifndef CREDENTIALS_H
|
||||||
#define CREDENTIALS_H
|
#define CREDENTIALS_H
|
||||||
|
|
||||||
#include "plasma.h"
|
#include "plasma/plasma.h"
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QDataStream>
|
#include <QtCore/QDataStream>
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include <kservice.h>
|
#include <kservice.h>
|
||||||
|
|
||||||
#include <plasma/plasma_export.h>
|
#include <plasma/plasma_export.h>
|
||||||
|
#include "plasma/remote/credentials.h"
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
@ -90,6 +91,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
QHash<QString, QVariant> parameters() const;
|
QHash<QString, QVariant> parameters() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the identity of the caller of this operation
|
||||||
|
*/
|
||||||
|
Credentials identity() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the result of the operation
|
* Returns the result of the operation
|
||||||
*
|
*
|
||||||
@ -120,6 +126,9 @@ private:
|
|||||||
Q_PRIVATE_SLOT(d, void preventAutoStart())
|
Q_PRIVATE_SLOT(d, void preventAutoStart())
|
||||||
|
|
||||||
ServiceJobPrivate * const d;
|
ServiceJobPrivate * const d;
|
||||||
|
|
||||||
|
friend class ServiceProvider;
|
||||||
|
friend class RemoteServiceJob;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Plasma
|
} // namespace Plasma
|
||||||
|
Loading…
x
Reference in New Issue
Block a user