mirror of
https://github.com/anope/anope.git
synced 2026-06-26 10:36:38 +02:00
e66063e630
up into seperate files for each pseudo client. Also reorganized how the modules are stored, and made most of the old "extra" modules "core"
33 lines
702 B
C++
33 lines
702 B
C++
#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
|
|
|