-
Notifications
You must be signed in to change notification settings - Fork 0
/
IIrc.h
34 lines (33 loc) · 1.52 KB
/
IIrc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
struct IIrc
{
virtual void SendChannelMsg(LPCTSTR channel, LPCTSTR msg) = 0;
virtual void SendPrivateMsg(LPCTSTR to, LPCTSTR msg) = 0;
virtual void SendNoticeMsg(LPCTSTR to, LPCTSTR msg) = 0;
virtual void JoinChannel(LPCTSTR channel) = 0;
virtual void LeaveChannel(LPCTSTR channel, LPCTSTR msg) = 0;
virtual void Quit(LPCTSTR msg) = 0;
virtual void SendPass(LPCTSTR pass) = 0;
virtual void SendNick(LPCTSTR nick) = 0;
virtual void SendUser(LPCTSTR user,LPCTSTR realname) = 0;
virtual void ListChannels() = 0;
virtual void ListChannelNames(LPCTSTR channel) = 0;
virtual void GetTopic(LPCTSTR channel) = 0;
virtual void GetMode(LPCTSTR NameOrChannel) = 0;
virtual void Pong(LPCTSTR code) = 0;
virtual void RequestVersion(LPCTSTR from) = 0;
virtual void RequestUserinfo(LPCTSTR from) = 0;
virtual void RequestPing(LPCTSTR from) = 0;
virtual void RequestTime(LPCTSTR from) = 0;
virtual void SendAction(LPCTSTR channel,LPCTSTR msg) = 0;
virtual void AnswerVersionRequest(LPCTSTR from) = 0;
virtual void AnswerUserinfoRequest(LPCTSTR from) = 0;
virtual void AnswerPingRequest(LPCTSTR from) = 0;
virtual void AnswerTimeRequest(LPCTSTR from) = 0;
virtual void WhoIs(LPCTSTR nick) = 0;
virtual void Who(LPCTSTR nick) = 0;
virtual void WhoWas(LPCTSTR nick) = 0;
virtual void Output(LPCTSTR msg) = 0; // outputs text to output tab. not related to IRC but whatever
virtual long SetTimer(long id,long ms) = 0; // to disable id == id ms == 0, return id
virtual CString GetActiveViewName() = 0;
};