logo

FrmPlugins window More...

+ Inheritance diagram for NoteFly.FrmPlugins:

Public Member Functions

 FrmPlugins ()
 Initializes a new instance of the FrmPlugins class. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.. More...
 

Private Member Functions

void SetFormTitle ()
 Set the title of this form. More...
 
void SetFormTooltips ()
 Set all form tooltips if tooltips are enabled. More...
 
bool IsUpdatecheckPluginNeeded ()
  More...
 
void tabControlPlugins_SelectedIndexChanged (object sender, EventArgs e)
 Check if tabPagePluginsAvailable is selected, if it is then get a list with available all plugins. More...
 
void httputil_allplugins_DownloadCompleet (object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
 Downloading of a list of allplugins is compleet, parser results and display items in chlbxAvailiblePlugins. More...
 
void lbxAvailablePlugins_SelectedIndexChanged (object sender, EventArgs e)
 A plugin is selected, get the details from the selected plugin. More...
 
bool RateLimitRequest ()
 Check if request is not too fast after previous one. Avoid REST api silently refuses to answer. More...
 
void ClearPluginDetails ()
 Hide all plugins details More...
 
void httputil_plugindetail_DownloadCompleet (object sender, RunWorkerCompletedEventArgs e)
 Downloading of plugin details data is compleet, parser data and display plugin details More...
 
bool UpdateablePluginsContainsPlugin (DownloadDetailsPlugin plugin)
  More...
 
void btnPluginDownload_Click (object sender, EventArgs e)
 Start download of plugin. More...
 
void downloader_DownloadCompleet (string[] newpluginfile)
 Downloading of plugin compleet. More...
 
void DownloadUpdatesPluginsCompleet (string[] compressedpluginfiles)
 Downloading of plugin updates has been compleeted. More...
 
void DecompressDownload (string compressedpluginfile)
 Decompress the downloaded file. More...
 
void DeleteNotsysFile (string file, string logdesc)
 Check if file is not a system file, and if it's not then delete the file. More...
 
void searchtbPlugins_SearchStart (string keywords)
 The user request to search, make request for search results. More...
 
void httputil_searchplugins_DownloadCompleet (object sender, RunWorkerCompletedEventArgs e)
 Downloading of search results data is compleet, parser searchresult data and list search results More...
 
void searchtbPlugins_SearchStop ()
 The user wants to stop searching, get the list of all plugins again. More...
 
void SetAvailablePluginsNetwork (bool isconnected)
 Set a message if network connection failed. More...
 
bool CheckPluginsUpdates ()
 Check plugins on updates. More...
 
void httputil_pluginsversions_compleet (object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
 Parser results of versions requested plugins, and set tabpage with plugin update visible if there are plugin update(s) are available. More...
 
void btnupdateplugins_Click (object sender, EventArgs e)
 Button clicked to update plugins. More...
 
string[] GetAllDownloadUrls (int[] updatedplugins)
 Gets a array with all downloadurls in the updatableplugins list. More...
 
void timerTextUpdater_Tick (object sender, EventArgs e)
 Update the number of dots in after the loading text. More...
 
void SetTabPageUpdatesVisible (bool showupdatetab)
 Set the this.tabPagePluginsUpdates visible or invisible. More...
 
void btnRestartProgram_Click (object sender, EventArgs e)
 Restart this programme More...
 
void chxlbxPluginUpdates_ItemCheck (object sender, ItemCheckEventArgs e)
 An plugin in the updatable plugin checkboxlistbox is check or unchecked. Disable the btnupdateplugins button if no plugin is checked. More...
 
void linklblPluginMoreInfo_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e)
 More info plugin clicked. More...
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

const string RESTAPIDOMAIN = "http://update.notefly.org"
 REST server domain More...
 
const string RESTAPIPLUGINSLIST = "/REST/plugins/list.php"
 REST url where to get a list of plugins. More...
 
const string RESTAPIPLUGINDETAILS = "/REST/plugins/details.php?name="
 REST url where to get the detail of a partialer plugin More...
 
const string RESTAPIPLUGINSSEARCH = "/REST/plugins/search.php?keyword="
 REST url where to get a list of matching pluginnames searched by a partialer keyword. More...
 
const string RESTAPIPLUGINVERSION = "/REST/plugins/version.php"
 REST url where to get several versions of plugins in xml (with a http POST request). More...
 
const string PLUGINMOREINFOURL = "http://www.notefly.org/plugindetails?name="
  More...
 
const bool PLUGINUPDATECHECKEDDEFAULT = true
 Are plugin updates checkd by default More...
 
DownloadDetailsPlugin selectedplugindetails
 The current selected plugin on the available plugins tabpage. More...
 
List< DownloadDetailsPluginupdatableplugins
 All the plugins that can be updated. More...
 
List< int > updatedplugins
 Plugins positions in updatableplugins list that are being updated. More...
 
FrmDownloader frmdownloader
 Refence to FrmDownload window. More...
 
int textloadingdots = 0
 Number of dots after the loading text. More...
 
DateTime lastrequesttime
 The time the last request was made. More...
 
ToolTip tooltip
 The tooltips of FrmPlugins. More...
 
System.ComponentModel.IContainer components = null
 Required designer variable. More...
 
System.Windows.Forms.Timer timerTextUpdaterLoading
 
System.Windows.Forms.TabPage tabPagePluginsAvailable
 
System.Windows.Forms.SplitContainer splitContainerAvailablePlugins
 
System.Windows.Forms.Label lblTextNoInternetConnection
 
System.Windows.Forms.ListBox lbxAvailablePlugins
 
SearchTextBox searchtbPlugins
 
System.Windows.Forms.Label lblLicense
 
System.Windows.Forms.Label lblPluginVersion
 
System.Windows.Forms.Label lblPluginName
 
System.Windows.Forms.Label lblPluginDescription
 
System.Windows.Forms.Button btnPluginDownload
 
System.Windows.Forms.TabPage tabPagePluginsInstalled
 
PluginGrid pluginGrid
 
System.Windows.Forms.TabControl tabControlPlugins
 
System.Windows.Forms.TabPage tabPagePluginsUpdates
 
System.Windows.Forms.TableLayoutPanel tableLayoutpnlPluginUpdates
 
System.Windows.Forms.CheckedListBox chxlbxPluginUpdates
 
System.Windows.Forms.Button btnupdateplugins
 
System.Windows.Forms.Label lbltextpluginupdates
 
System.Windows.Forms.Button btnRestartProgram
 
System.Windows.Forms.LinkLabel linklblPluginMoreInfo
 

Detailed Description

Constructor & Destructor Documentation

NoteFly.FrmPlugins.FrmPlugins ( )

Member Function Documentation

void NoteFly.FrmPlugins.btnPluginDownload_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmPlugins.btnRestartProgram_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmPlugins.btnupdateplugins_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
bool NoteFly.FrmPlugins.CheckPluginsUpdates ( )
private
void NoteFly.FrmPlugins.chxlbxPluginUpdates_ItemCheck ( object  sender,
ItemCheckEventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmPlugins.ClearPluginDetails ( )
private
void NoteFly.FrmPlugins.DecompressDownload ( string  compressedpluginfile)
private
Parameters
newfiles
void NoteFly.FrmPlugins.DeleteNotsysFile ( string  file,
string  logdesc 
)
private
Parameters
fileThe file to delete
logdescLog mesage
override void NoteFly.FrmPlugins.Dispose ( bool  disposing)
protected
Parameters
disposingtrue if managed resources should be disposed; otherwise, false.
void NoteFly.FrmPlugins.downloader_DownloadCompleet ( string[]  newpluginfile)
private
Parameters
newfilesArray of files downloads.
void NoteFly.FrmPlugins.DownloadUpdatesPluginsCompleet ( string[]  compressedpluginfiles)
private
Parameters
newpluginfile
string [] NoteFly.FrmPlugins.GetAllDownloadUrls ( int[]  updatedplugins)
private
Parameters
updatedpluginsArray with positions in updateableplugins list to be updated.
Returns
Array with all download urls of plugins to be updated.
void NoteFly.FrmPlugins.httputil_allplugins_DownloadCompleet ( object  sender,
System.ComponentModel.RunWorkerCompletedEventArgs  e 
)
private
Parameters
senderSender object
eRunWorkerCompletedEvent Arguments
void NoteFly.FrmPlugins.httputil_plugindetail_DownloadCompleet ( object  sender,
RunWorkerCompletedEventArgs  e 
)
private
Parameters
senderSender object
eRunWorkerCompleted event arguments
void NoteFly.FrmPlugins.httputil_pluginsversions_compleet ( object  sender,
System.ComponentModel.RunWorkerCompletedEventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmPlugins.httputil_searchplugins_DownloadCompleet ( object  sender,
RunWorkerCompletedEventArgs  e 
)
private
Parameters
senderSender object
eRunWorkerCompleted Event Arguments
void NoteFly.FrmPlugins.InitializeComponent ( )
private
bool NoteFly.FrmPlugins.IsUpdatecheckPluginNeeded ( )
private
Returns
void NoteFly.FrmPlugins.lbxAvailablePlugins_SelectedIndexChanged ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmPlugins.linklblPluginMoreInfo_LinkClicked ( object  sender,
LinkLabelLinkClickedEventArgs  e 
)
private
Parameters
sender
e
bool NoteFly.FrmPlugins.RateLimitRequest ( )
private
Returns
True if request is too fast.
void NoteFly.FrmPlugins.searchtbPlugins_SearchStart ( string  keywords)
private
Parameters
keywordsThe keywords
void NoteFly.FrmPlugins.searchtbPlugins_SearchStop ( )
private
void NoteFly.FrmPlugins.SetAvailablePluginsNetwork ( bool  isconnected)
private
Parameters
isconnectedTrue if their is a network connection.
void NoteFly.FrmPlugins.SetFormTitle ( )
private
void NoteFly.FrmPlugins.SetFormTooltips ( )
private
void NoteFly.FrmPlugins.SetTabPageUpdatesVisible ( bool  showupdatetab)
private
Parameters
showupdatetabTrue if update tab is visible.
void NoteFly.FrmPlugins.tabControlPlugins_SelectedIndexChanged ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmPlugins.timerTextUpdater_Tick ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
bool NoteFly.FrmPlugins.UpdateablePluginsContainsPlugin ( DownloadDetailsPlugin  plugin)
private
Parameters
pluginname
Returns

Member Data Documentation

System.Windows.Forms.Button NoteFly.FrmPlugins.btnPluginDownload
private
System.Windows.Forms.Button NoteFly.FrmPlugins.btnRestartProgram
private
System.Windows.Forms.Button NoteFly.FrmPlugins.btnupdateplugins
private
System.Windows.Forms.CheckedListBox NoteFly.FrmPlugins.chxlbxPluginUpdates
private
System.ComponentModel.IContainer NoteFly.FrmPlugins.components = null
private
FrmDownloader NoteFly.FrmPlugins.frmdownloader
private
DateTime NoteFly.FrmPlugins.lastrequesttime
private
System.Windows.Forms.Label NoteFly.FrmPlugins.lblLicense
private
System.Windows.Forms.Label NoteFly.FrmPlugins.lblPluginDescription
private
System.Windows.Forms.Label NoteFly.FrmPlugins.lblPluginName
private
System.Windows.Forms.Label NoteFly.FrmPlugins.lblPluginVersion
private
System.Windows.Forms.Label NoteFly.FrmPlugins.lblTextNoInternetConnection
private
System.Windows.Forms.Label NoteFly.FrmPlugins.lbltextpluginupdates
private
System.Windows.Forms.ListBox NoteFly.FrmPlugins.lbxAvailablePlugins
private
System.Windows.Forms.LinkLabel NoteFly.FrmPlugins.linklblPluginMoreInfo
private
PluginGrid NoteFly.FrmPlugins.pluginGrid
private
const string NoteFly.FrmPlugins.PLUGINMOREINFOURL = "http://www.notefly.org/plugindetails?name="
private
const bool NoteFly.FrmPlugins.PLUGINUPDATECHECKEDDEFAULT = true
private
const string NoteFly.FrmPlugins.RESTAPIDOMAIN = "http://update.notefly.org"
private
const string NoteFly.FrmPlugins.RESTAPIPLUGINDETAILS = "/REST/plugins/details.php?name="
private
const string NoteFly.FrmPlugins.RESTAPIPLUGINSLIST = "/REST/plugins/list.php"
private
const string NoteFly.FrmPlugins.RESTAPIPLUGINSSEARCH = "/REST/plugins/search.php?keyword="
private
const string NoteFly.FrmPlugins.RESTAPIPLUGINVERSION = "/REST/plugins/version.php"
private
SearchTextBox NoteFly.FrmPlugins.searchtbPlugins
private
DownloadDetailsPlugin NoteFly.FrmPlugins.selectedplugindetails
private
System.Windows.Forms.SplitContainer NoteFly.FrmPlugins.splitContainerAvailablePlugins
private
System.Windows.Forms.TabControl NoteFly.FrmPlugins.tabControlPlugins
private
System.Windows.Forms.TableLayoutPanel NoteFly.FrmPlugins.tableLayoutpnlPluginUpdates
private
System.Windows.Forms.TabPage NoteFly.FrmPlugins.tabPagePluginsAvailable
private
System.Windows.Forms.TabPage NoteFly.FrmPlugins.tabPagePluginsInstalled
private
System.Windows.Forms.TabPage NoteFly.FrmPlugins.tabPagePluginsUpdates
private
int NoteFly.FrmPlugins.textloadingdots = 0
private
System.Windows.Forms.Timer NoteFly.FrmPlugins.timerTextUpdaterLoading
private
ToolTip NoteFly.FrmPlugins.tooltip
private
List<DownloadDetailsPlugin> NoteFly.FrmPlugins.updatableplugins
private
List<int> NoteFly.FrmPlugins.updatedplugins
private