C# Class WeebIRCServerTray.Home

Mostrar archivo Open project: RareAMV/WeebIRC

Public Properties

Property Type Description
OS string
allFiles string
allSeasonsJson string
animePerSeasonJson string
customdldir string
dldir string
doesOSMCExist string
downloads int
irc SimpleIRC
loggedIn bool
niblSearchJson string
parsedSubtitle bool
port int
previousMessage string
previousstat string
saveDebug bool
searchedAnimeJson string
showDebug bool

Public Methods

Method Description
Home ( ) : System
ParseSearchNibl ( string searchQuery ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
About_Click ( object sender, EventArgs e ) : void
DebugCallbackMethod ( string debugmsg ) : void
DebugIRC ( string debug ) : void

Calls debug callback with debug message from irc client

Debug_Click_1 ( object sender, EventArgs e ) : void
DownloadStatusChange ( ) : void

Irc on download status chaned event, sends, when connected to an irc server, the update on the file download to the http server, which sends it to the webclient

Form1_Load ( object sender, EventArgs e ) : void
GetCurrentFiles ( ) : void

Gets the current files in the download directory

GetLocalIPAddress ( ) : string
GetSubtitle ( string file, string customdir ) : void

Parses subtitle from .mkv file using external application "mkvextract.exe" from MkvToolNix (https://github.com/mbunkus/mkvtoolnix/blob/master/COPYING)

GetTimeStamp ( ) : string

Gets Current TimeStamp

Home_FormClosing ( object sender, FormClosingEventArgs e ) : void
Home_SizeChanged ( object sender, EventArgs e ) : void
HttpMessageReceived ( string message ) : void

Executes action on message received from http com server, action depends on message

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ParseAllSeasons ( ) : void
ParseAnimeSeason ( string url, string yearAndseason ) : void
ParseSearchAnime ( string url ) : void
RunningPlatform ( ) : void

Executes OS related code, got code partially from: http://stackoverflow.com/questions/10138040/how-to-detect-properly-windows-linux-mac-operating-systems It tryes to locate "mkvextract.exe" from MkvToolNix (https://github.com/mbunkus/mkvtoolnix/blob/master/COPYING), if not available, prompts user with ability to download application Starts interface when windows is detected, assuming local usage

SendIRCMessageToHttpServer ( string user, string message ) : void

Sends message received from irc client to http com server

SetupDownloadDir ( string dir ) : void

Sets the download directory to be used

Start_Click ( object sender, EventArgs e ) : void
Stop_Click ( object sender, EventArgs e ) : void
Tray_MouseClick ( object sender, MouseEventArgs e ) : void
pictureBox1_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Home() public method

public Home ( ) : System
return System

ParseSearchNibl() public static method

public static ParseSearchNibl ( string searchQuery ) : void
searchQuery string
return void

Property Details

OS public_oe static_oe property

public static string OS
return string

allFiles public_oe static_oe property

public static string allFiles
return string

allSeasonsJson public_oe static_oe property

public static string allSeasonsJson
return string

animePerSeasonJson public_oe static_oe property

public static string animePerSeasonJson
return string

customdldir public_oe static_oe property

public static string customdldir
return string

dldir public_oe static_oe property

public static string dldir
return string

doesOSMCExist public_oe static_oe property

public static string doesOSMCExist
return string

downloads public_oe static_oe property

public static int downloads
return int

irc public_oe static_oe property

public static SimpleIRC irc
return SimpleIRC

loggedIn public_oe static_oe property

public static bool loggedIn
return bool

niblSearchJson public_oe static_oe property

public static string niblSearchJson
return string

parsedSubtitle public_oe static_oe property

public static bool parsedSubtitle
return bool

port public_oe static_oe property

public static int port
return int

previousMessage public_oe static_oe property

public static string previousMessage
return string

previousstat public_oe static_oe property

public static string previousstat
return string

saveDebug public_oe static_oe property

public static bool saveDebug
return bool

searchedAnimeJson public_oe static_oe property

public static string searchedAnimeJson
return string

showDebug public_oe static_oe property

public static bool showDebug
return bool