Anope IRC Services  Version 2.0
Public Member Functions | Protected Member Functions
NSCertList Struct Referenceabstract

#include <ns_cert.h>

Inheritance diagram for NSCertList:
Inheritance graph
[legend]

Public Member Functions

virtual ~NSCertList ()
 
virtual void AddCert (const Anope::string &entry)=0
 
virtual Anope::string GetCert (unsigned entry) const =0
 
virtual unsigned GetCertCount () const =0
 
virtual bool FindCert (const Anope::string &entry) const =0
 
virtual void EraseCert (const Anope::string &entry)=0
 
virtual void ClearCert ()=0
 
virtual void Check ()=0
 

Protected Member Functions

 NSCertList ()
 

Detailed Description

Definition at line 12 of file ns_cert.h.

Constructor & Destructor Documentation

NSCertList::NSCertList ( )
inlineprotected

Definition at line 15 of file ns_cert.h.

virtual NSCertList::~NSCertList ( )
inlinevirtual

Definition at line 17 of file ns_cert.h.

Member Function Documentation

virtual void NSCertList::AddCert ( const Anope::string entry)
pure virtual

Add an entry to the nick's certificate list

Parameters
entryThe fingerprint to add to the cert list

Adds a new entry into the cert list.

Implemented in NSCertListImpl.

Referenced by CommandNSCert::DoAdd().

virtual void NSCertList::Check ( )
pure virtual

Implemented in NSCertListImpl.

Referenced by CommandNSCert::DoDel().

virtual void NSCertList::ClearCert ( )
pure virtual

Clears the entire nick's cert list

Deletes all the memory allocated in the certificate list vector and then clears the vector.

Implemented in NSCertListImpl.

virtual void NSCertList::EraseCert ( const Anope::string entry)
pure virtual

Erase a fingerprint from the nick's certificate list

Parameters
entryThe fingerprint to remove

Removes the specified fingerprint from the cert list.

Implemented in NSCertListImpl.

Referenced by CommandNSCert::DoDel().

virtual bool NSCertList::FindCert ( const Anope::string entry) const
pure virtual

Find an entry in the nick's cert list

Parameters
entryThe fingerprint to search for
Returns
True if the fingerprint is found in the cert list, false otherwise

Search for an fingerprint within the cert list.

Implemented in NSCertListImpl.

Referenced by CommandNSCert::DoAdd(), CommandNSCert::DoDel(), CommandNSGroup::Execute(), CommandNSRecover::Execute(), and NSCert::OnNickValidate().

virtual Anope::string NSCertList::GetCert ( unsigned  entry) const
pure virtual

Get an entry from the nick's cert list by index

Parameters
entryIndex in the certificaate list vector to retrieve
Returns
The fingerprint entry of the given index if within bounds, an empty string if the vector is empty or the index is out of bounds

Retrieves an entry from the certificate list corresponding to the given index.

Implemented in NSCertListImpl.

Referenced by CommandNSCert::DoList(), and WebCPanel::NickServ::Cert::OnRequest().

virtual unsigned NSCertList::GetCertCount ( ) const
pure virtual

The documentation for this struct was generated from the following file: