From 1d994c544474da53159257d9097997c0744a48a5 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Apr 2004 10:43:34 +0000 Subject: Added support for SVS-style Server class methods for modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@400 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8h-source.html | 172 ++++++++++++++++++--------------- 1 file changed, 94 insertions(+), 78 deletions(-) (limited to 'docs/module-doc/modules_8h-source.html') diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 81ca53cdb..44f988d0f 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -107,84 +107,100 @@ 00163 00173 virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); 00174 -00187 virtual int Module::OnUserPreJoin(userrec* user, chanrec* chan, char* cname); -00188 -00189 }; -00190 -00191 -00197 class Server : public classbase -00198 { -00199 public: -00203 Server(); -00207 virtual ~Server(); -00208 -00212 virtual void SendOpers(std::string s); -00217 virtual void Log(int level, std::string s); -00222 virtual void Send(int Socket, std::string s); -00227 virtual void SendServ(int Socket, std::string s); -00232 virtual void SendFrom(int Socket, userrec* User, std::string s); -00237 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00244 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00249 virtual bool CommonChannels(userrec* u1, userrec* u2); -00257 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00262 virtual void SendWallops(userrec* User, std::string text); -00263 -00267 virtual bool IsNick(std::string nick); -00271 virtual userrec* FindNick(std::string nick); -00275 virtual chanrec* FindChannel(std::string channel); -00280 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00283 virtual std::string GetServerName(); -00286 virtual std::string GetNetworkName(); -00292 virtual Admin GetAdmin(); -00311 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00312 -00327 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); -00328 -00350 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00351 }; -00352 -00359 class ConfigReader : public classbase -00360 { -00361 protected: -00364 std::string fname; -00365 public: -00370 ConfigReader(); // default constructor reads ircd.conf -00374 ConfigReader(std::string filename); // read a module-specific config -00378 ~ConfigReader(); -00383 std::string ReadValue(std::string tag, std::string name, int index); -00390 int Enumerate(std::string tag); -00394 bool Verify(); -00395 }; -00396 -00397 -00398 -00404 class FileReader : public classbase -00405 { -00406 file_cache fc; -00407 public: -00412 FileReader(); -00418 FileReader(std::string filename); -00422 ~FileReader(); -00428 void LoadFile(std::string filename); -00433 bool Exists(); -00434 std::string GetLine(int x); -00440 int FileSize(); -00441 }; -00442 -00443 -00450 class ModuleFactory : public classbase -00451 { -00452 public: -00453 ModuleFactory() { } -00454 virtual ~ModuleFactory() { } -00459 virtual Module * CreateModule() = 0; -00460 }; -00461 -00462 -00463 typedef DLLFactory<ModuleFactory> ircd_module; -00464 -00465 #endif -
Generated on Mon Apr 5 02:03:52 2004 for InspIRCd by +00187 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); +00188 +00189 +00194 virtual void OnOper(userrec* user); +00195 +00204 virtual void OnInfo(userrec* user); +00205 +00210 void Module::OnWhois(userrec* source, userrec* dest); +00211 }; +00212 +00213 +00219 class Server : public classbase +00220 { +00221 public: +00225 Server(); +00229 virtual ~Server(); +00230 +00234 virtual void SendOpers(std::string s); +00239 virtual void Log(int level, std::string s); +00244 virtual void Send(int Socket, std::string s); +00249 virtual void SendServ(int Socket, std::string s); +00254 virtual void SendFrom(int Socket, userrec* User, std::string s); +00259 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00266 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00271 virtual bool CommonChannels(userrec* u1, userrec* u2); +00279 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00284 virtual void SendWallops(userrec* User, std::string text); +00285 +00289 virtual bool IsNick(std::string nick); +00293 virtual userrec* FindNick(std::string nick); +00297 virtual chanrec* FindChannel(std::string channel); +00302 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00305 virtual std::string GetServerName(); +00308 virtual std::string GetNetworkName(); +00314 virtual Admin GetAdmin(); +00333 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00334 +00349 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); +00350 +00372 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00373 +00386 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00387 +00393 virtual chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key); +00394 +00400 virtual chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason); +00401 +00407 virtual void ChangeUserNick(userrec* user, std::string nickname); +00408 +00419 virtual void QuitUser(userrec* user, std::string reason); +00420 }; +00421 +00428 class ConfigReader : public classbase +00429 { +00430 protected: +00433 std::string fname; +00434 public: +00439 ConfigReader(); // default constructor reads ircd.conf +00443 ConfigReader(std::string filename); // read a module-specific config +00447 ~ConfigReader(); +00452 std::string ReadValue(std::string tag, std::string name, int index); +00459 int Enumerate(std::string tag); +00463 bool Verify(); +00464 }; +00465 +00466 +00467 +00473 class FileReader : public classbase +00474 { +00475 file_cache fc; +00476 public: +00481 FileReader(); +00487 FileReader(std::string filename); +00491 ~FileReader(); +00497 void LoadFile(std::string filename); +00502 bool Exists(); +00503 std::string GetLine(int x); +00509 int FileSize(); +00510 }; +00511 +00512 +00519 class ModuleFactory : public classbase +00520 { +00521 public: +00522 ModuleFactory() { } +00523 virtual ~ModuleFactory() { } +00528 virtual Module * CreateModule() = 0; +00529 }; +00530 +00531 +00532 typedef DLLFactory<ModuleFactory> ircd_module; +00533 +00534 #endif +
Generated on Tue Apr 6 11:42:30 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3