#ifndef SYNCTHINGDIRACTIONS_H #define SYNCTHINGDIRACTIONS_H #include #include "./syncthinginfoaction.h" class SyncthingFileItemActionStaticData; /*! * \brief The SyncthingDirActions class provides the read-only directory info actions. */ class SyncthingDirActions : public QObject { Q_OBJECT friend QList &operator<<(QList &, SyncthingDirActions &); public: explicit SyncthingDirActions(const Data::SyncthingDir &dir, const SyncthingFileItemActionStaticData *data = nullptr, QObject *parent = nullptr); public Q_SLOTS: void updateStatus(const std::vector &dirs); bool updateStatus(const Data::SyncthingDir &dir); private: QString m_dirId; QAction m_infoAction; SyncthingInfoAction m_statusAction; SyncthingInfoAction m_globalStatusAction; SyncthingInfoAction m_localStatusAction; SyncthingInfoAction m_lastScanAction; SyncthingInfoAction m_rescanIntervalAction; SyncthingInfoAction m_errorsAction; }; QList &operator<<(QList &actions, SyncthingDirActions &dirActions); #endif // SYNCTHINGDIRACTIONS_H