Restructure files: add utils directory

This commit is contained in:
Bart De Vries 2023-10-26 09:52:23 +02:00
parent 917f8be83e
commit 0e2fbd547a
24 changed files with 24 additions and 25 deletions

View File

@ -16,13 +16,13 @@ set(kasts_srcs
datamanager.cpp
audiomanager.cpp
error.cpp
enclosuredownloadjob.cpp
storagemanager.cpp
storagemovejob.cpp
updatefeedjob.cpp
fetchfeedsjob.cpp
systrayicon.cpp
networkconnectionmanager.cpp
utils/enclosuredownloadjob.cpp
utils/storagemanager.cpp
utils/storagemovejob.cpp
utils/updatefeedjob.cpp
utils/fetchfeedsjob.cpp
utils/systrayicon.cpp
utils/networkconnectionmanager.cpp
models/abstractepisodemodel.cpp
models/abstractepisodeproxymodel.cpp
models/chaptermodel.cpp
@ -140,7 +140,7 @@ ecm_qt_declare_logging_category(kasts_srcs
if(ANDROID)
list(APPEND kasts_srcs
androidlogging.h)
utils/androidlogging.h)
endif()
if(KASTS_FLATPAK)

View File

@ -19,8 +19,8 @@
#include "feed.h"
#include "fetcher.h"
#include "models/errorlogmodel.h"
#include "networkconnectionmanager.h"
#include "settingsmanager.h"
#include "utils/networkconnectionmanager.h"
class AudioManagerPrivate
{

View File

@ -22,8 +22,8 @@
#include "feed.h"
#include "fetcher.h"
#include "settingsmanager.h"
#include "storagemanager.h"
#include "sync/sync.h"
#include "utils/storagemanager.h"
DataManager::DataManager()
{

View File

@ -23,16 +23,16 @@
#include "audiomanager.h"
#include "database.h"
#include "datamanager.h"
#include "enclosuredownloadjob.h"
#include "entry.h"
#include "error.h"
#include "fetcher.h"
#include "models/downloadmodel.h"
#include "models/errorlogmodel.h"
#include "networkconnectionmanager.h"
#include "settingsmanager.h"
#include "storagemanager.h"
#include "sync/sync.h"
#include "utils/enclosuredownloadjob.h"
#include "utils/networkconnectionmanager.h"
#include "utils/storagemanager.h"
Enclosure::Enclosure(Entry *entry)
: QObject(entry)

View File

@ -22,13 +22,13 @@
#include "database.h"
#include "enclosure.h"
#include "fetchfeedsjob.h"
#include "kasts-version.h"
#include "models/errorlogmodel.h"
#include "networkconnectionmanager.h"
#include "settingsmanager.h"
#include "storagemanager.h"
#include "sync/sync.h"
#include "utils/fetchfeedsjob.h"
#include "utils/networkconnectionmanager.h"
#include "utils/storagemanager.h"
Fetcher::Fetcher()
{

View File

@ -49,12 +49,12 @@
#include "models/feedsproxymodel.h"
#include "models/podcastsearchmodel.h"
#include "models/queuemodel.h"
#include "networkconnectionmanager.h"
#include "settingsmanager.h"
#include "storagemanager.h"
#include "sync/sync.h"
#include "sync/syncutils.h"
#include "systrayicon.h"
#include "utils/networkconnectionmanager.h"
#include "utils/storagemanager.h"
#include "utils/systrayicon.h"
#ifdef Q_OS_WINDOWS
#include <windows.h>

View File

@ -20,7 +20,7 @@
#include "audiomanager.h"
#include "database.h"
#include "storagemanager.h"
#include "utils/storagemanager.h"
ChapterModel::ChapterModel(QObject *parent)
: QAbstractListModel(parent)

View File

@ -27,11 +27,8 @@
#include "datamanager.h"
#include "entry.h"
#include "fetcher.h"
#include "fetchfeedsjob.h"
#include "models/errorlogmodel.h"
#include "networkconnectionmanager.h"
#include "settingsmanager.h"
#include "storagemanager.h"
#include "sync/gpodder/devicerequest.h"
#include "sync/gpodder/episodeactionrequest.h"
#include "sync/gpodder/gpodder.h"
@ -44,6 +41,9 @@
#include "sync/gpodder/uploadsubscriptionrequest.h"
#include "sync/syncjob.h"
#include "sync/syncutils.h"
#include "utils/fetchfeedsjob.h"
#include "utils/networkconnectionmanager.h"
#include "utils/storagemanager.h"
using namespace SyncUtils;

View File

@ -19,7 +19,6 @@
#include "database.h"
#include "datamanager.h"
#include "entry.h"
#include "fetchfeedsjob.h"
#include "models/errorlogmodel.h"
#include "settingsmanager.h"
#include "sync/gpodder/episodeactionrequest.h"
@ -29,6 +28,7 @@
#include "sync/gpodder/uploadsubscriptionrequest.h"
#include "sync/sync.h"
#include "sync/syncutils.h"
#include "utils/fetchfeedsjob.h"
using namespace SyncUtils;

View File

@ -13,7 +13,6 @@
#include <KLocalizedString>
StorageMoveJob::StorageMoveJob(const QString &from, const QString &to, QStringList &list, QObject *parent)
: KJob(parent)
, m_from(from)