aboutsummaryrefslogtreecommitdiff
path: root/subprojects/plugin_hostlist/plugin/plugin.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-04-23 17:47:39 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-04-23 17:47:39 +0300
commitaa7e8fe1a90fbba289aec9b59a872170a0c593c2 (patch)
treef755844140350029b949a022be74570b3f1b1b70 /subprojects/plugin_hostlist/plugin/plugin.cpp
parentplugin_hostlist: add fuzzer (diff)
downloadsmolbote-aa7e8fe1a90fbba289aec9b59a872170a0c593c2.tar.xz
move subprojects/plugin_hostlist to plugins/smolblok_hostlist
Diffstat (limited to 'subprojects/plugin_hostlist/plugin/plugin.cpp')
-rw-r--r--subprojects/plugin_hostlist/plugin/plugin.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/subprojects/plugin_hostlist/plugin/plugin.cpp b/subprojects/plugin_hostlist/plugin/plugin.cpp
deleted file mode 100644
index 28a7706..0000000
--- a/subprojects/plugin_hostlist/plugin/plugin.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * This file is part of smolbote. It's copyrighted by the contributors recorded
- * in the version control history of the file, available from its original
- * location: https://library.iserlohn-fortress.net/aqua/smolbote.git
- *
- * SPDX-License-Identifier: GPL-3.0
- */
-
-#include "plugin.h"
-#include "filterlist.h"
-
-FilterList* HostlistFilterPlugin::load(QIODevice &from) const
-{
- if(!from.isOpen())
- return nullptr;
-
- auto *list = new Hostlist::Filterlist;
- return list;
-}
-
-bool HostlistFilterPlugin::parse(FilterList *list, QIODevice &from) const
-{
- if(list == nullptr || !from.isOpen()) {
- return false;
- }
- auto *l = dynamic_cast<Hostlist::Filterlist*>(list);
- if(l == nullptr) {
- return false;
- }
- return l->load(from);
-}
-