Anope IRC Services  Version 2.0
ns_cert.h
Go to the documentation of this file.
1 /* NickServ core functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  */
11 
12 struct NSCertList
13 {
14  protected:
15  NSCertList() { }
16  public:
17  virtual ~NSCertList() { }
18 
25  virtual void AddCert(const Anope::string &entry) = 0;
26 
34  virtual Anope::string GetCert(unsigned entry) const = 0;
35 
36  virtual unsigned GetCertCount() const = 0;
37 
45  virtual bool FindCert(const Anope::string &entry) const = 0;
46 
53  virtual void EraseCert(const Anope::string &entry) = 0;
54 
59  virtual void ClearCert() = 0;
60 
61  virtual void Check() = 0;
62 };
63 
64 class CertService : public Service
65 {
66  public:
67  CertService(Module *c) : Service(c, "CertService", "certs") { }
68 
69  virtual NickCore* FindAccountFromCert(const Anope::string &cert) = 0;
70 };
71 
NSCertList()
Definition: ns_cert.h:15
virtual void Check()=0
virtual void AddCert(const Anope::string &entry)=0
virtual NickCore * FindAccountFromCert(const Anope::string &cert)=0
virtual void ClearCert()=0
virtual bool FindCert(const Anope::string &entry) const =0
virtual ~NSCertList()
Definition: ns_cert.h:17
virtual void EraseCert(const Anope::string &entry)=0
virtual Anope::string GetCert(unsigned entry) const =0
virtual unsigned GetCertCount() const =0
CertService(Module *c)
Definition: ns_cert.h:67