diff --git a/src/plasma/private/servicejob_p.h b/src/plasma/private/servicejob_p.h index 9426018b2..1178451ca 100644 --- a/src/plasma/private/servicejob_p.h +++ b/src/plasma/private/servicejob_p.h @@ -19,6 +19,7 @@ #ifndef SERVICEJOB_P_H #define SERVICEJOB_P_H +#include "../remote/credentials.h" #include "../servicejob.h" #include @@ -44,6 +45,7 @@ public: QString operation; QHash parameters; QVariant result; + Credentials identity; bool m_allowAutoStart; }; diff --git a/src/plasma/remote/credentials.h b/src/plasma/remote/credentials.h index 1a12dade0..68f1fff7a 100644 --- a/src/plasma/remote/credentials.h +++ b/src/plasma/remote/credentials.h @@ -19,7 +19,7 @@ #ifndef CREDENTIALS_H #define CREDENTIALS_H -#include "plasma.h" +#include "plasma/plasma.h" #include #include diff --git a/src/plasma/servicejob.h b/src/plasma/servicejob.h index f133c9a4f..89b0f70b2 100644 --- a/src/plasma/servicejob.h +++ b/src/plasma/servicejob.h @@ -26,6 +26,7 @@ #include #include +#include "plasma/remote/credentials.h" namespace Plasma { @@ -90,6 +91,11 @@ public: */ QHash 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