|
|
//------------------------------------------------------------------------------
// mass download
// (c) 2008-2009 ari pikivirta [ari.pikivirta(at)kolumbus.fi]
//------------------------------------------------------------------------------
// send email about bugs, features needed and features you would like;
// if you like this very much, feel free to donate and support supporting
// and developing these at www.paypal.com - (ari pikivirta[at]kolumbus.fi).
//------------------------------------------------------------------------------
//
// 1.5.0.31, 03112009, ari pikivirta
// * internet updater updated
// * minor changes to clear source code
// * added url after the emails collected
// * visible log cleared on starting new download
// * fixed bug on query on no file download on collecting emails only mode
// * fixed bug on checking file size even not downloaded
// * fixed bug that caused resume list not clear
// * added open target folder button to main view
// * about window moved to center of owner window isntead of desktop
//
// 1.4.2.29, 27062009, ari pikivirta
// * picture made transparent (because the background color can be changed..)
// * moved about and update buttons down to above close button
// * set setting window constraints to include minimum of all edit fields
//
// 1.4.2.28, 27062009, ari pikivirta
// * tested with collecting emails, seem to work now (with @ mails)
//
// 1.4.2.27, 27062009, ari pikivirta
// * added logo into the main window (just for fun)
// * added about window
// * added special feature to collect emails from the downloaded file contents,
// works in theory, but not tested yet - so don't trust it yet - but please
// report for me to be able to fix it.
//
// 1.4.1.26, 26062009, ari pikivirta
// * fixed bug that removed dots from downloaded filenames
// * applied application data folder as setting saving location
//
// 1.4.1.25, 22062009, ari pikivirta
// * added double checks to filtering for hopefully easier understanding
//
// 1.4.0.24, 14062009, ari pikivirta
// * implemented file content mask (filtering)
// * inversed content mask check meaning and default value (to FALSE)
//
// 1.3.4.23, 14062009, ari pikivirta
// * url count on resume list back visible while donwloading
//
// 1.3.4.22, 08062009, ari pikivirta
// * fixed bug on retry counter resuming the correct list position
// * progressbar will say completed instead of any % when done
//
// 1.3.4.21, 08062009, ari pikivirta
// * defaults changed to not to create folder for each domain
// * does not handle redirects anymore
// * checking server response code to be ok for accepting file
// * fixed bug on checking of threads on close app
// * internet updater updated
//
// 1.3.4.20, 07062009, ari pikivirta
// * added button to pause downloads
// * on window close waiting all threads to be terminated (may take some time)
// * converting urls and document names to "html params" to be allowed by OS
//
// 1.3.3.19, 05062009, ari pikivirta
// * each download result is ok if compare to actual file matches
// * window position checked to be on screen on restore
// * log buffer cleared only in case there was something to write
// * progress updated every 10 file instead every
// * Download button caption changed to break when downloading
// * User agent = Mozilla/3.0 (compatible; Mass Download)
// * thread count moved visible into the settings, new default = 10
//
// 1.3.2.18, 11052009, ari pikivirta
// * added connection timeout as visible setting
// * added read timeout as visible setting
//
// 1.3.2.17, 11052009, ari pikivirta
// * added new window for the settings, makes main window more clear
//
// 1.3.1.16, 10052009, ari pikivirta
// * showing error in log in case deleting of empty file fails
// * added connect (60s) and read timeout (15s) into the configuration file
//
// 1.3.1.15, 08052009, ari pikivirta
// * added file mask filter
// * aborting downloads on pressing download or resume while downloading
// * IsAllowedByContentmasks function added, but not in use yet
// * log clearing moved outside log lock
// * aborting downloads on executing installer downloaded via update
// * added wellcome message on very first startup
//
// 1.3.0.14, 04052009, ari pikivirta
// * changed resumelist format to allow having continue from number in front
// to make folder numbering possible to continue when resuming old list
//
// 1.3.0.13, 04052009, ari pikivirta
// * moving everything that remain downloading on abort to resume list
// * saving resume list on exit (maby downloading was aborted)
//
// 1.3.0.12, 04052009, ari pikivirta
// * max threads limitation bug fixed, was one too many
// * allowed creating folders from url even creating folder every n file
// * checking if directory exists before creating it (a bit faster)
//
// 1.2.2.11, 04052009, ari pikivirta
// * removing visible log lines after 1000 lines
//
// 1.2.2.10, 04052009, ari pikivirta
// * defaults for both url list and target folder set (might have caused trouble on windows 9x)
// * added checking of target folder existence before start downloading
// * on click browse target folder default is application directory in case it doesn't exist
//
// 1.2.2.9, 04052009, ari pikivirta
// * selecting new target folder is prevented while downloading
// * progressbar showing progress as text too
// * added retry count to resume failed downloads automatically
// * added option to create folder every n file(s)
//
// 1.2.1.7, 03052009, ari pikivirta
// * max threads added to setting file, default 4
// * error and warning messages checked more consistent
// * removed api_thread, because was not used
// * visible logging done via separate lock just to be 100% sure (of threadsafe)
// * added showing of revision in caption
//
// 1.2.1.6, 03052009, ari pikivirta
// * added read timeout of 15 seconds to each download thread (was infinite)
// * fixed bug that left zero sized files to download folder
// * minimum constraints defined for the main window
// * added background color to setting file (not available to change yet though)
//
// 1.2.0.5, 02052009, ari pikivirta
// * added 4 threads to make the downloading faster
//
// 1.1.0.4, 02052009, ari pikivirta
// * added possibility to save resume list to file (and clear from memory)
//
// 1.1.0.3, 02052009, ari pikivirta
// * added internet update function
// * added option to disable overriding already existing files
// * added option to disable creating folders from urls
// * added resume list to just retry only failed downloads again
//
// 1.0.2.2, 02062008, ari pikivirta
// * added deleting of file, in case nothing was received
//
//------------------------------------------------------------------------------
|