mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Deleted obsolete/unused stuff from ContentManager
This commit is contained in:
parent
7db27fd576
commit
bd54da2cb2
@ -624,18 +624,6 @@ void ContentManager::cancelBook(const QString& id)
|
|||||||
emit(oneBookChanged(id));
|
emit(oneBookChanged(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList ContentManager::getDownloadIds()
|
|
||||||
{
|
|
||||||
QStringList list;
|
|
||||||
if (!mp_downloader)
|
|
||||||
return list;
|
|
||||||
for(auto& id: mp_downloader->getDownloadIds()) {
|
|
||||||
qInfo() << QString::fromStdString(id);
|
|
||||||
list.append(QString::fromStdString(id));
|
|
||||||
}
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ContentManager::setCurrentLanguage(FilterList langPairList)
|
void ContentManager::setCurrentLanguage(FilterList langPairList)
|
||||||
{
|
{
|
||||||
QStringList languageList;
|
QStringList languageList;
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#define CONTENTMANAGER_H
|
#define CONTENTMANAGER_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <math.h>
|
|
||||||
#include "library.h"
|
#include "library.h"
|
||||||
#include "contentmanagerview.h"
|
#include "contentmanagerview.h"
|
||||||
#include <kiwix/downloader.h>
|
#include <kiwix/downloader.h>
|
||||||
@ -13,8 +12,6 @@
|
|||||||
class ContentManager : public QObject
|
class ContentManager : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(QStringList bookIds READ getBookIds NOTIFY booksChanged)
|
|
||||||
Q_PROPERTY(QStringList downloadIds READ getDownloadIds NOTIFY downloadsChanged)
|
|
||||||
Q_PROPERTY(bool isLocal MEMBER m_local READ isLocal WRITE setLocal NOTIFY localChanged)
|
Q_PROPERTY(bool isLocal MEMBER m_local READ isLocal WRITE setLocal NOTIFY localChanged)
|
||||||
|
|
||||||
public: // types
|
public: // types
|
||||||
@ -32,7 +29,6 @@ public: // functions
|
|||||||
|
|
||||||
ContentManagerView* getView() { return mp_view; }
|
ContentManagerView* getView() { return mp_view; }
|
||||||
void setLocal(bool local);
|
void setLocal(bool local);
|
||||||
QStringList getDownloadIds();
|
|
||||||
void setCurrentLanguage(FilterList languageList);
|
void setCurrentLanguage(FilterList languageList);
|
||||||
void setCurrentCategoryFilter(FilterList category);
|
void setCurrentCategoryFilter(FilterList category);
|
||||||
void setCurrentContentTypeFilter(FilterList contentTypeFilter);
|
void setCurrentContentTypeFilter(FilterList contentTypeFilter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user