Purpose::Job Class

Job that will actually perform the sharing. More...

Header: #include <Purpose/Job>
CMake: find_package(KF6 REQUIRED COMPONENTS Purpose)
target_link_libraries(mytarget PRIVATE KF6::Purpose)
Inherits: KJob

Properties

Public Functions

QJsonObject data() const
QJsonObject output() const
void setOutput(const QJsonObject &output)

Signals

void outputChanged(const QJsonObject &output)

Detailed Description

When start is called, the sharing process will start and when the job emits finished, we'll know it's over.

The start method called shouldn't be called before all data has been filled in.

Property Documentation

[read-only] data : const QJsonObject

Represents the data the job will have available to perform its task.

Access functions:

QJsonObject data() const

output : QJsonObject

Returns the output generated by the plugin.

The information offered will depend on the plugin type.

Access functions:

QJsonObject output() const
void setOutput(const QJsonObject &output)

Notifier signal:

void outputChanged(const QJsonObject &output)