diff options
| author | Adam <Adam@anope.org> | 2011-08-05 05:35:31 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-05 05:35:31 -0400 |
| commit | e66063e6304538d34c40460ca0aa2be5ddb6bdec (patch) | |
| tree | f50fe31097160f8f794669809e4f4ef87f477672 /modules/commands/os_session.h | |
| parent | 9ec18a3b020932eee6242c878149c484f49b13cb (diff) | |
Rewrote the example configurations and split them
up into seperate files for each pseudo client.
Also reorganized how the modules are stored, and
made most of the old "extra" modules "core"
Diffstat (limited to 'modules/commands/os_session.h')
| -rw-r--r-- | modules/commands/os_session.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/commands/os_session.h b/modules/commands/os_session.h new file mode 100644 index 000000000..faab37934 --- /dev/null +++ b/modules/commands/os_session.h @@ -0,0 +1,32 @@ +#ifndef OS_SESSION_H +#define OS_SESSION_H + +class SessionService : public Service +{ + public: + typedef Anope::map<Session *> SessionMap; + typedef std::vector<Exception *> ExceptionVector; + + SessionService(Module *m) : Service(m, "session") { } + + virtual void AddException(Exception *e) = 0; + + virtual void DelException(Exception *e) = 0; + + virtual Exception *FindException(User *u) = 0; + + virtual Exception *FindException(const Anope::string &host) = 0; + + virtual ExceptionVector &GetExceptions() = 0; + + virtual void AddSession(Session *s) = 0; + + virtual void DelSession(Session *s) = 0; + + virtual Session *FindSession(const Anope::string &mask) = 0; + + virtual SessionMap &GetSessions() = 0; +}; + +#endif + |
