Add some API to CModule

This let's module have access to all their active timers/sockets.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1293 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-12-18 16:22:31 +00:00
parent 804b259f69
commit 979f2651f3
+4
View File
@@ -303,6 +303,8 @@ public:
bool RemTimer(const CString& sLabel);
bool UnlinkTimer(CTimer* pTimer);
CTimer* FindTimer(const CString& sLabel);
vector<CTimer*>::const_iterator BeginTimers() const { return m_vTimers.begin(); }
vector<CTimer*>::const_iterator EndTimers() const { return m_vTimers.end(); }
virtual void ListTimers();
// !Timer stuff
@@ -312,6 +314,8 @@ public:
bool RemSocket(const CString& sSockName);
bool UnlinkSocket(CSocket* pSocket);
CSocket* FindSocket(const CString& sSockName);
vector<CSocket*>::const_iterator BeginSockets() const { return m_vSockets.begin(); }
vector<CSocket*>::const_iterator EndSockets() const { return m_vSockets.end(); }
virtual void ListSockets();
// !Socket stuff