source: nscp/modules/Scheduler/Scheduler.h @ 031acbf

0.4.00.4.10.4.2
Last change on this file since 031acbf was 031acbf, checked in by Michael Medin <michael@…>, 3 years ago

Added a simple scheduling concept

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**************************************************************************
2*   Copyright (C) 2004-2007 by Michael Medin <michael@medin.name>         *
3*                                                                         *
4*   This code is part of NSClient++ - http://trac.nakednuns.org/nscp      *
5*                                                                         *
6*   This program is free software; you can redistribute it and/or modify  *
7*   it under the terms of the GNU General Public License as published by  *
8*   the Free Software Foundation; either version 2 of the License, or     *
9*   (at your option) any later version.                                   *
10*                                                                         *
11*   This program is distributed in the hope that it will be useful,       *
12*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14*   GNU General Public License for more details.                          *
15*                                                                         *
16*   You should have received a copy of the GNU General Public License     *
17*   along with this program; if not, write to the                         *
18*   Free Software Foundation, Inc.,                                       *
19*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20***************************************************************************/
21NSC_WRAPPERS_MAIN();
22#include <config.h>
23#include <strEx.h>
24
25#include "simple_scheduler.hpp"
26
27
28class Scheduler {
29private:
30        scheduler::simple_scheduler scheduler_;
31
32
33public:
34        Scheduler() {}
35        virtual ~Scheduler() {}
36        // Module calls
37        bool loadModule(NSCAPI::moduleLoadMode mode);
38        bool unloadModule();
39
40
41        void add_schedule(std::wstring command);
42
43        std::wstring getModuleName() {
44                return _T("Scheduler");
45        }
46        NSCModuleWrapper::module_version getModuleVersion() {
47                NSCModuleWrapper::module_version version = {0, 3, 0 };
48                return version;
49        }
50        std::wstring getModuleDescription() {
51                return _T("A scheduler which schedules checks at regular intervals");
52        }
53
54        bool hasCommandHandler();
55        bool hasMessageHandler();
56};
Note: See TracBrowser for help on using the repository browser.