You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
881 B
C++
56 lines
881 B
C++
/*
|
|
SPDX-FileCopyrightText: 2019 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef VIEWINDICATORRESOURCES_H
|
|
#define VIEWINDICATORRESOURCES_H
|
|
|
|
// Qt
|
|
#include <QObject>
|
|
|
|
namespace Latte {
|
|
namespace ViewPart {
|
|
class Indicator;
|
|
}
|
|
}
|
|
|
|
namespace Latte {
|
|
namespace ViewPart {
|
|
namespace IndicatorPart {
|
|
|
|
/**
|
|
* Resources requested from indicator in order to reduce consumption
|
|
**/
|
|
|
|
class Resources: public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(QList<QObject *> svgs READ svgs NOTIFY svgsChanged)
|
|
|
|
public:
|
|
Resources(Indicator *parent);
|
|
virtual ~Resources();
|
|
|
|
QList<QObject *> svgs() const;
|
|
|
|
public slots:
|
|
Q_INVOKABLE void setSvgImagePaths(QStringList paths);
|
|
|
|
signals:
|
|
void svgsChanged();
|
|
|
|
private:
|
|
QStringList m_svgImagePaths;
|
|
|
|
Indicator *m_indicator{nullptr};
|
|
|
|
QList<QObject *> m_svgs;
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|