Remove useless recycle bin class.
This commit is contained in:
parent
55526baee5
commit
f8fa601100
7 changed files with 5 additions and 71 deletions
|
@ -435,7 +435,6 @@ set(APP_SOURCES
|
||||||
src/services/standard/standardcategory.cpp
|
src/services/standard/standardcategory.cpp
|
||||||
src/services/standard/standardfeed.cpp
|
src/services/standard/standardfeed.cpp
|
||||||
src/services/standard/standardserviceroot.cpp
|
src/services/standard/standardserviceroot.cpp
|
||||||
src/services/standard/standardrecyclebin.cpp
|
|
||||||
|
|
||||||
# TT-RSS feed service sources.
|
# TT-RSS feed service sources.
|
||||||
src/services/tt-rss/ttrssserviceentrypoint.cpp
|
src/services/tt-rss/ttrssserviceentrypoint.cpp
|
||||||
|
@ -559,7 +558,6 @@ set(APP_HEADERS
|
||||||
src/services/standard/standardcategory.h
|
src/services/standard/standardcategory.h
|
||||||
src/services/standard/standardfeed.h
|
src/services/standard/standardfeed.h
|
||||||
src/services/standard/standardserviceroot.h
|
src/services/standard/standardserviceroot.h
|
||||||
src/services/standard/standardrecyclebin.h
|
|
||||||
|
|
||||||
# TT-RSS service headers.
|
# TT-RSS service headers.
|
||||||
src/services/tt-rss/ttrssserviceroot.h
|
src/services/tt-rss/ttrssserviceroot.h
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
RecycleBin::RecycleBin(RootItem *parent_item) : RootItem(parent_item) {
|
RecycleBin::RecycleBin(RootItem *parent_item) : RootItem(parent_item) {
|
||||||
setKind(RootItemKind::Bin);
|
setKind(RootItemKind::Bin);
|
||||||
|
setId(ID_RECYCLE_BIN);
|
||||||
setIcon(qApp->icons()->fromTheme(QSL("folder-recycle-bin")));
|
setIcon(qApp->icons()->fromTheme(QSL("folder-recycle-bin")));
|
||||||
setTitle(tr("Recycle bin"));
|
setTitle(tr("Recycle bin"));
|
||||||
setDescription(tr("Recycle bin contains all deleted messages from all feeds."));
|
setDescription(tr("Recycle bin contains all deleted messages from all feeds."));
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
// This file is part of RSS Guard.
|
|
||||||
//
|
|
||||||
// Copyright (C) 2011-2016 by Martin Rotter <rotter.martinos@gmail.com>
|
|
||||||
//
|
|
||||||
// RSS Guard is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// RSS Guard is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with RSS Guard. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
#include "services/standard/standardrecyclebin.h"
|
|
||||||
|
|
||||||
#include "miscellaneous/application.h"
|
|
||||||
#include "miscellaneous/iconfactory.h"
|
|
||||||
#include "services/standard/standardserviceroot.h"
|
|
||||||
|
|
||||||
|
|
||||||
StandardRecycleBin::StandardRecycleBin(RootItem *parent)
|
|
||||||
: RecycleBin(parent) {
|
|
||||||
setId(ID_RECYCLE_BIN);
|
|
||||||
}
|
|
||||||
|
|
||||||
StandardRecycleBin::~StandardRecycleBin() {
|
|
||||||
qDebug("Destroying RecycleBin instance.");
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// This file is part of RSS Guard.
|
|
||||||
//
|
|
||||||
// Copyright (C) 2011-2016 by Martin Rotter <rotter.martinos@gmail.com>
|
|
||||||
//
|
|
||||||
// RSS Guard is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// RSS Guard is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with RSS Guard. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
#ifndef STANDARDRECYCLEBIN_H
|
|
||||||
#define STANDARDRECYCLEBIN_H
|
|
||||||
|
|
||||||
#include "services/abstract/recyclebin.h"
|
|
||||||
|
|
||||||
|
|
||||||
class StandardRecycleBin : public RecycleBin {
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
explicit StandardRecycleBin(RootItem *parent = NULL);
|
|
||||||
virtual ~StandardRecycleBin();
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // STANDARDRECYCLEBIN_H
|
|
|
@ -26,8 +26,8 @@
|
||||||
#include "gui/messagebox.h"
|
#include "gui/messagebox.h"
|
||||||
#include "gui/dialogs/formmain.h"
|
#include "gui/dialogs/formmain.h"
|
||||||
#include "exceptions/applicationexception.h"
|
#include "exceptions/applicationexception.h"
|
||||||
|
#include "services/abstract/recyclebin.h"
|
||||||
#include "services/standard/standardserviceentrypoint.h"
|
#include "services/standard/standardserviceentrypoint.h"
|
||||||
#include "services/standard/standardrecyclebin.h"
|
|
||||||
#include "services/standard/standardfeed.h"
|
#include "services/standard/standardfeed.h"
|
||||||
#include "services/standard/standardcategory.h"
|
#include "services/standard/standardcategory.h"
|
||||||
#include "services/standard/standardfeedsimportexportmodel.h"
|
#include "services/standard/standardfeedsimportexportmodel.h"
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
|
|
||||||
StandardServiceRoot::StandardServiceRoot(RootItem *parent)
|
StandardServiceRoot::StandardServiceRoot(RootItem *parent)
|
||||||
: ServiceRoot(parent), m_recycleBin(new StandardRecycleBin(this)),
|
: ServiceRoot(parent), m_recycleBin(new RecycleBin(this)),
|
||||||
m_actionExportFeeds(NULL), m_actionImportFeeds(NULL), m_serviceMenu(QList<QAction*>()),
|
m_actionExportFeeds(NULL), m_actionImportFeeds(NULL), m_serviceMenu(QList<QAction*>()),
|
||||||
m_feedContextMenu(QList<QAction*>()), m_actionFeedFetchMetadata(NULL) {
|
m_feedContextMenu(QList<QAction*>()), m_actionFeedFetchMetadata(NULL) {
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
|
|
||||||
|
|
||||||
class StandardRecycleBin;
|
class RecycleBin;
|
||||||
class StandardCategory;
|
class StandardCategory;
|
||||||
class StandardFeed;
|
class StandardFeed;
|
||||||
class FeedsImportExportModel;
|
class FeedsImportExportModel;
|
||||||
|
@ -97,7 +97,7 @@ class StandardServiceRoot : public ServiceRoot {
|
||||||
// which are suitable as IN clause for SQL queries.
|
// which are suitable as IN clause for SQL queries.
|
||||||
QStringList textualFeedIds(const QList<Feed *> &feeds);
|
QStringList textualFeedIds(const QList<Feed *> &feeds);
|
||||||
|
|
||||||
StandardRecycleBin *m_recycleBin;
|
RecycleBin *m_recycleBin;
|
||||||
QAction *m_actionExportFeeds;
|
QAction *m_actionExportFeeds;
|
||||||
QAction *m_actionImportFeeds;
|
QAction *m_actionImportFeeds;
|
||||||
QList<QAction*> m_serviceMenu;
|
QList<QAction*> m_serviceMenu;
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
|
|
||||||
|
|
||||||
TtRssRecycleBin::TtRssRecycleBin(RootItem *parent) : RecycleBin(parent) {
|
TtRssRecycleBin::TtRssRecycleBin(RootItem *parent) : RecycleBin(parent) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TtRssRecycleBin::~TtRssRecycleBin() {
|
TtRssRecycleBin::~TtRssRecycleBin() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue