7#ifndef ACTIVITIES_INFO_H
8#define ACTIVITIES_INFO_H
14#include "kactivities_export.h"
56class KACTIVITIES_EXPORT
Info :
public QObject
60 Q_PROPERTY(QString
id READ
id)
61 Q_PROPERTY(QString name READ name NOTIFY nameChanged)
62 Q_PROPERTY(QString description READ description NOTIFY descriptionChanged)
63 Q_PROPERTY(QString icon READ icon NOTIFY iconChanged)
64 Q_PROPERTY(
bool isCurrent READ isCurrent NOTIFY isCurrentChanged)
65 Q_PROPERTY(
Info::State state READ state NOTIFY stateChanged)
68 explicit Info(
const QString &activity, QObject *parent =
nullptr);
217 const QScopedPointer<InfoPrivate> d;
219 Q_PRIVATE_SLOT(d,
void activityStateChanged(
const QString &,
int))
220 Q_PRIVATE_SLOT(d,
void added(
const QString &))
221 Q_PRIVATE_SLOT(d,
void removed(
const QString &))
222 Q_PRIVATE_SLOT(d,
void started(
const QString &))
223 Q_PRIVATE_SLOT(d,
void stopped(
const QString &))
224 Q_PRIVATE_SLOT(d,
void infoChanged(
const QString &))
225 Q_PRIVATE_SLOT(d,
void nameChanged(
const QString &,
const QString &))
226 Q_PRIVATE_SLOT(d,
void descriptionChanged(
const QString &,
const QString &))
227 Q_PRIVATE_SLOT(d,
void iconChanged(
const QString &,
const QString &))
229 Q_PRIVATE_SLOT(d,
void setCurrentActivity(
const QString &))
231 friend class InfoPrivate;
ServiceStatus
Different states of the activities service.
Definition consumer.h:75
This class provides info about an activity.
Definition info.h:57
void infoChanged()
Links the specified resource to the activity.
void stopped()
Emitted when the activity is stopped.
void added()
Emitted when the activity is added.
State
State of the activity.
Definition info.h:88
void descriptionChanged(const QString &description)
Emitted when the description is changed.
void isCurrentChanged(bool current)
Emitted when the activity becomes the current one, or when it stops being the current one.
void started()
Emitted when the activity is started.
Availability availability() const
void nameChanged(const QString &name)
Emitted when the name is changed.
Availability
Specifies which parts of this class are functional.
Definition info.h:79
void removed()
Emitted when the activity is removed.
void stateChanged(KActivities::Info::State state)
Emitted when the activity changes state.
void iconChanged(const QString &icon)
Emitted when the icon was changed.
QString description() const
Namespace for everything in libkactivities.
Definition consumer.h:20