3 |
|
|
4 |
#include "common.h" |
#include "common.h" |
5 |
|
|
6 |
#include "EchoPlugin.h" |
#include "plugins/EchoPlugin.h" |
7 |
#include "SpamPlugin.h" |
#include "plugins/SpamPlugin.h" |
8 |
#include "ShellExecPlugin.h" |
#include "plugins/ShellExecPlugin.h" |
9 |
|
#include "plugins/TogPlugin.h" |
10 |
|
#include "plugins/StatusPlugin.h" |
11 |
|
#include "plugins/ListPlugin.h" |
12 |
|
#include "plugins/HostStatusPlugin.h" |
13 |
|
|
14 |
typedef std::map<std::string, Plugin*>::iterator MapIterator; |
typedef std::map<std::string, Plugin*>::iterator MapIterator; |
15 |
|
|
49 |
|
|
50 |
static SpamPlugin spam; |
static SpamPlugin spam; |
51 |
|
|
52 |
static ShellExecPlugin wake("wake", "/home/torben/bin/wake"); |
static ShellExecPlugin wake("wake", "/home/torben/bin/wake", false, false); |
53 |
|
static ShellExecPlugin ping("ping", "nmap -sP 192.168.10.1-255 | grep appears | awk '{print $2}'", false,true); |
54 |
|
|
55 |
|
static TogPlugin tog; |
56 |
|
|
57 |
|
static StatusPlugin status; |
58 |
|
|
59 |
|
static ListPlugin list; |
60 |
|
|
61 |
|
static HostStatusPlugin hoststatus; |
62 |
|
|
63 |
for(MapIterator it = _plugins.begin(); it != _plugins.end(); ++it) |
for(MapIterator it = _plugins.begin(); it != _plugins.end(); ++it) |
64 |
{ |
{ |