plugin: sub namespace modules
This commit is contained in:
parent
262ade0e59
commit
17509aa2d9
18 changed files with 36 additions and 36 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include <qpainter.h>
|
||||
#include <qtconcurrentrun.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::internal {
|
||||
|
||||
qreal CachingImageManager::effectiveScale() const {
|
||||
if (m_item && m_item->window()) {
|
||||
|
|
@ -220,4 +220,4 @@ QString CachingImageManager::sha256sum(const QString& path) {
|
|||
return hash.result().toHex();
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::internal
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <qobject.h>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::internal {
|
||||
|
||||
class CachingImageManager : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -62,4 +62,4 @@ private:
|
|||
[[nodiscard]] static QString sha256sum(const QString& path);
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::internal
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ inline qreal getFractionInRange(qreal playtime, qreal start, qreal duration) {
|
|||
|
||||
} // namespace
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::internal {
|
||||
|
||||
CircularIndicatorManager::CircularIndicatorManager(QObject* parent)
|
||||
: QObject(parent)
|
||||
|
|
@ -208,4 +208,4 @@ void CircularIndicatorManager::updateAdvance(qreal progress) {
|
|||
emit endFractionChanged();
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::internal
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <qobject.h>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::internal {
|
||||
|
||||
class CircularIndicatorManager : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -69,4 +69,4 @@ private:
|
|||
void updateRetreat(qreal progress);
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::internal
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <qfuturewatcher.h>
|
||||
#include <qtconcurrentrun.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::models {
|
||||
|
||||
FileSystemEntry::FileSystemEntry(const QString& path, const QString& relativePath, QObject* parent)
|
||||
: QObject(parent)
|
||||
|
|
@ -476,4 +476,4 @@ bool FileSystemModel::compareEntries(const FileSystemEntry* a, const FileSystemE
|
|||
return m_sortReverse ? cmp > 0 : cmp < 0;
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::models
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include <qobject.h>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::models {
|
||||
|
||||
class FileSystemEntry : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -144,4 +144,4 @@ private:
|
|||
[[nodiscard]] bool compareEntries(const FileSystemEntry* a, const FileSystemEntry* b) const;
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::models
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <stop_token>
|
||||
#include <vector>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
PipeWireWorker::PipeWireWorker(std::stop_token token, AudioCollector* collector)
|
||||
: m_loop(nullptr)
|
||||
|
|
@ -243,4 +243,4 @@ void AudioCollector::stop() {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
namespace ac {
|
||||
|
||||
|
|
@ -73,4 +73,4 @@ private:
|
|||
void stop() override;
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include <qdebug.h>
|
||||
#include <qthread.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
AudioProcessor::AudioProcessor(QObject* parent)
|
||||
: QObject(parent) {}
|
||||
|
|
@ -75,4 +75,4 @@ void AudioProvider::stop() {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <qqmlintegration.h>
|
||||
#include <qtimer.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
class AudioProcessor : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -45,4 +45,4 @@ private:
|
|||
void stop() override;
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "audioprovider.hpp"
|
||||
#include <aubio/aubio.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
BeatProcessor::BeatProcessor(QObject* parent)
|
||||
: AudioProcessor(parent)
|
||||
|
|
@ -55,4 +55,4 @@ void BeatTracker::updateBpm(smpl_t bpm) {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <aubio/aubio.h>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
class BeatProcessor : public AudioProcessor {
|
||||
Q_OBJECT
|
||||
|
|
@ -46,4 +46,4 @@ private:
|
|||
void updateBpm(smpl_t bpm);
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#include <cstddef>
|
||||
#include <qdebug.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
CavaProcessor::CavaProcessor(QObject* parent)
|
||||
: AudioProcessor(parent)
|
||||
|
|
@ -139,4 +139,4 @@ void CavaProvider::updateValues(QVector<double> values) {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <cava/cavacore.h>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
class CavaProcessor : public AudioProcessor {
|
||||
Q_OBJECT
|
||||
|
|
@ -61,4 +61,4 @@ private:
|
|||
void updateValues(QVector<double> values);
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include <qdebug.h>
|
||||
#include <qpointer.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
Service::Service(QObject* parent)
|
||||
: QObject(parent) {}
|
||||
|
|
@ -23,4 +23,4 @@ void Service::unref(QObject* sender) {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include <qobject.h>
|
||||
#include <qset.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
class Service : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -21,4 +21,4 @@ private:
|
|||
virtual void stop() = 0;
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "service.hpp"
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
ServiceRef::ServiceRef(Service* service, QObject* parent)
|
||||
: QObject(parent)
|
||||
|
|
@ -33,4 +33,4 @@ void ServiceRef::setService(Service* service) {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <qpointer.h>
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace caelestia {
|
||||
namespace caelestia::services {
|
||||
|
||||
class ServiceRef : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -25,4 +25,4 @@ private:
|
|||
QPointer<Service> m_service;
|
||||
};
|
||||
|
||||
} // namespace caelestia
|
||||
} // namespace caelestia::services
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue