File indexing completed on 2022-11-29 13:02:28

0001 /*
0002     SPDX-FileCopyrightText: 2010-2016 Ivan Cukic <ivan.cukic(at)kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef KACTIVITIESINFO_P_H
0008 #define KACTIVITIESINFO_P_H
0009 
0010 #include "info.h"
0011 #include <memory>
0012 
0013 #include "activitiescache_p.h"
0014 
0015 namespace KActivities
0016 {
0017 class InfoPrivate
0018 {
0019 public:
0020     InfoPrivate(Info *info, const QString &activity);
0021 
0022     void activityStateChanged(const QString &, int) const;
0023 
0024     void added(const QString &) const;
0025     void removed(const QString &) const;
0026     void started(const QString &) const;
0027     void stopped(const QString &) const;
0028     void infoChanged(const QString &) const;
0029     void nameChanged(const QString &, const QString &) const;
0030     void descriptionChanged(const QString &, const QString &) const;
0031     void iconChanged(const QString &, const QString &) const;
0032     void setServiceStatus(Consumer::ServiceStatus status) const;
0033     void setCurrentActivity(const QString &currentActivity);
0034 
0035     Info *const q;
0036     std::shared_ptr<ActivitiesCache> cache;
0037     bool isCurrent;
0038 
0039     const QString id;
0040 };
0041 
0042 } // namespace KActivities
0043 
0044 #endif // ACTIVITIES_INFO_P_H