C# Класс Yaircc.UI.IRCMarshal

Represents a marshal that sits between an IRC connection and the application's UI.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BeganConnecting void
ChannelDisposed void
ConnectionEstablished void
ConnectionFailed void
ConnectionTerminated void
DataReceived void
PerformServerTabAction void
ProcessMessage void
ProcessNumericReply void
ProcessQueue void
Reconnect void
ReconnectTimer_Elapsed void
SetupConnectionEventHandlers void

Открытые методы

Метод Описание
CreateChannel ( string displayName, bool switchTo ) : IRCChannel

Creates a new channel and tab.

Dispose ( ) : void

Releases all resources used by the IRCMarshal.

GetChannelByTab ( IRCTabPage tab ) : IRCChannel

Gets a channel using the tab it is linked to.

GetReplyAttributes ( Reply reply ) : MessageTypeAttribute

Get the MessageTypeAttribute associated with reply

IRCMarshal ( Connection connection, System.Windows.Forms.TabControl tabHost, List autoCommands, MainForm parent ) : System

Initialises a new instance of the IRCMarshal class.

Send ( IRCTabPage sender, Message message ) : void

Sends the message to the associated server.

Приватные методы

Метод Описание
BeganConnecting ( object sender, EventArgs e ) : void

Handles the BeganConnecting event of Yaircc.Net.IRC.Connection.

ChannelDisposed ( object sender ) : void

Handles the Disposed event of Yaircc.UI.IRCChannel.

ConnectionEstablished ( object sender, EventArgs e ) : void

Handles the ConnectionEstablished event of Yaircc.Net.IRC.Connection.

ConnectionFailed ( object sender, ConnectionFailedEventArgs e ) : void

Handles the ConnectionFailed event of Yaircc.Net.IRC.Connection.

ConnectionTerminated ( object sender, EventArgs e ) : void

Handles the ConnectionTerminated event of Yaircc.Net.IRC.Connection.

DataReceived ( object sender, DataReceivedEventArgs e ) : void

Handles the DataReceived event of Yaircc.Net.IRC.Connection.

PerformServerTabAction ( System.Action action ) : void

Invoke an action if the server tab has been instantiated.

ProcessMessage ( Message message ) : void

Process a message that contains a text based command.

ProcessNumericReply ( Message message ) : void

Process a message that is categorised as being a numeric reply in the RFC documents.

ProcessQueue ( ) : void

Processes all the current items in the message queue.

Reconnect ( ) : void

Reconnects to the server.

ReconnectTimer_Elapsed ( object sender, System e ) : void

Handles the Elapsed event of System.Timers.Timer.

SetupConnectionEventHandlers ( ) : void

Setup the event handlers required by the connection.

Описание методов

CreateChannel() публичный Метод

Creates a new channel and tab.
public CreateChannel ( string displayName, bool switchTo ) : IRCChannel
displayName string The name of the channel.
switchTo bool A value indicating whether or not to switch to the new channel.
Результат IRCChannel

Dispose() публичный Метод

Releases all resources used by the IRCMarshal.
public Dispose ( ) : void
Результат void

GetChannelByTab() публичный Метод

Gets a channel using the tab it is linked to.
public GetChannelByTab ( IRCTabPage tab ) : IRCChannel
tab IRCTabPage The tab to find the channel by.
Результат IRCChannel

GetReplyAttributes() публичный статический Метод

Get the MessageTypeAttribute associated with reply
public static GetReplyAttributes ( Reply reply ) : MessageTypeAttribute
reply Reply The whose attributes are returned
Результат Yaircc.Net.IRC.MessageTypeAttribute

IRCMarshal() публичный Метод

Initialises a new instance of the IRCMarshal class.
public IRCMarshal ( Connection connection, System.Windows.Forms.TabControl tabHost, List autoCommands, MainForm parent ) : System
connection Yaircc.Net.IRC.Connection The connection to marshal data to and from.
tabHost System.Windows.Forms.TabControl The TabControl that hosts the server and channel tabs.
autoCommands List A queue of commands to automatically execute once a connection is fully established.
parent MainForm The owning form.
Результат System

Send() публичный Метод

Sends the message to the associated server.
public Send ( IRCTabPage sender, Message message ) : void
sender IRCTabPage The source tab page.
message Yaircc.Net.IRC.Message The message to send.
Результат void