/* * This file is part of nzbget. See . * * Copyright (C) 2013-2016 Andrey Prygunkov * * This program 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 2 of the License, or * (at your option) any later version. * * This program 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 this program. If not, see . */ #ifndef SCRIPTCONFIG_H #define SCRIPTCONFIG_H #include "NString.h" #include "Container.h" #include "Options.h" class ScriptConfig { public: class Script { public: Script(const char* name, const char* location); Script(Script&&) = default; const char* GetName() { return m_name; } const char* GetLocation() { return m_location; } void SetDisplayName(const char* displayName) { m_displayName = displayName; } const char* GetDisplayName() { return m_displayName; } bool GetPostScript() { return m_postScript; } void SetPostScript(bool postScript) { m_postScript = postScript; } bool GetScanScript() { return m_scanScript; } void SetScanScript(bool scanScript) { m_scanScript = scanScript; } bool GetQueueScript() { return m_queueScript; } void SetQueueScript(bool queueScript) { m_queueScript = queueScript; } bool GetSchedulerScript() { return m_schedulerScript; } void SetSchedulerScript(bool schedulerScript) { m_schedulerScript = schedulerScript; } bool GetFeedScript() { return m_feedScript; } void SetFeedScript(bool feedScript) { m_feedScript = feedScript; } void SetQueueEvents(const char* queueEvents) { m_queueEvents = queueEvents; } const char* GetQueueEvents() { return m_queueEvents; } private: CString m_name; CString m_location; CString m_displayName; bool m_postScript; bool m_scanScript; bool m_queueScript; bool m_schedulerScript; bool m_feedScript; CString m_queueEvents; }; typedef std::list