Added more "known hosts" to the list: We now use a list of 64 domains, taken (mostly) from the Alexa 'top 500 sites on the web' list, to test the Internet connectivity. Also added a self-test function to check all hosts (press CTRL+F12 in the update dialog).

This commit is contained in:
LoRd_MuldeR 2011-12-01 22:16:06 +01:00
parent c54b9cb045
commit e4d414b822
6 changed files with 281 additions and 107 deletions

View File

@ -482,7 +482,7 @@ cores, the maximum number of parallel instances is six. On systems with 16 cores
parallel instances is eight. On systems with 32 cores, the maximum number of parallel instances is eleven.<br> parallel instances is eight. On systems with 32 cores, the maximum number of parallel instances is eleven.<br>
And on systems with 64 cores, the maximum number of parallel instances is 16. 16 is the upper limit.<br> And on systems with 64 cores, the maximum number of parallel instances is 16. 16 is the upper limit.<br>
<br> <br>
<a href="http://img685.imageshack.us/img685/9453/cpucoresmappingnew.png" target="_blank"><img src="http://img685.imageshack.us/img685/9453/cpucoresmappingnew.th.png" border="0" alt="thumb"></a><br> <a href="http://img853.imageshack.us/img853/1428/corestoinstancesbig.png" target="_blank"><img src="http://img853.imageshack.us/img853/1428/corestoinstancesbig.th.png" border="0" alt="thumb"></a><br>
<br> <br>
You may wonder why LameXP doesn't always create one instance for each CPU core. In theory, the more instances<br> You may wonder why LameXP doesn't always create one instance for each CPU core. In theory, the more instances<br>
we run in parallel, the more CPU cores can be utilized - until all CPU cores are busy and the overall CPU<br> we run in parallel, the more CPU cores can be utilized - until all CPU cores are busy and the overall CPU<br>

View File

@ -2633,141 +2633,141 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="154"/> <location filename="../../src/Dialog_Processing.cpp" line="153"/>
<source>Show details for selected job</source> <source>Show details for selected job</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="155"/> <location filename="../../src/Dialog_Processing.cpp" line="154"/>
<source>Browse Output File Location</source> <source>Browse Output File Location</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/> <location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Encoding Files</source> <source>Encoding Files</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/> <location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Your files are being encoded, please be patient...</source> <source>Your files are being encoded, please be patient...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="335"/> <location filename="../../src/Dialog_Processing.cpp" line="334"/>
<source>Encoding files, please wait...</source> <source>Encoding files, please wait...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="378"/> <location filename="../../src/Dialog_Processing.cpp" line="377"/>
<source>Multi-threading enabled: Running %1 instances in parallel!</source> <source>Multi-threading enabled: Running %1 instances in parallel!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="398"/> <location filename="../../src/Dialog_Processing.cpp" line="397"/>
<source>Aborted! Waiting for running jobs to terminate...</source> <source>Aborted! Waiting for running jobs to terminate...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="413"/> <location filename="../../src/Dialog_Processing.cpp" line="412"/>
<source>Encoding: %1 files of %2 completed so far, please wait...</source> <source>Encoding: %1 files of %2 completed so far, please wait...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="441"/> <location filename="../../src/Dialog_Processing.cpp" line="440"/>
<source>Creating the playlist file, please wait...</source> <source>Creating the playlist file, please wait...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/> <location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted by the user after %1 file(s)!</source> <source>Process was aborted by the user after %1 file(s)!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/> <location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted prematurely by the user!</source> <source>Process was aborted prematurely by the user!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/> <location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>LameXP - Aborted</source> <source>LameXP - Aborted</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/> <location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>Process was aborted by the user.</source> <source>Process was aborted by the user.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="465"/> <location filename="../../src/Dialog_Processing.cpp" line="464"/>
<source>Process finished after %1.</source> <source>Process finished after %1.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="474"/> <location filename="../../src/Dialog_Processing.cpp" line="473"/>
<source>Error: %1 of %2 files failed. Double-click failed items for detailed information!</source> <source>Error: %1 of %2 files failed. Double-click failed items for detailed information!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/> <location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>LameXP - Error</source> <source>LameXP - Error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/> <location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>At least one file has failed!</source> <source>At least one file has failed!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="484"/>
<location filename="../../src/Dialog_Processing.cpp" line="485"/> <location filename="../../src/Dialog_Processing.cpp" line="485"/>
<location filename="../../src/Dialog_Processing.cpp" line="486"/>
<source>All files completed successfully.</source> <source>All files completed successfully.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="486"/> <location filename="../../src/Dialog_Processing.cpp" line="485"/>
<source>LameXP - Done</source> <source>LameXP - Done</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/> <location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>Playlist creation failed</source> <source>Playlist creation failed</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/> <location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>The playlist file could not be created:</source> <source>The playlist file could not be created:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="953"/> <location filename="../../src/Dialog_Processing.cpp" line="952"/>
<source>Warning: Computer will shutdown in %1 seconds...</source> <source>Warning: Computer will shutdown in %1 seconds...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="956"/>
<location filename="../../src/Dialog_Processing.cpp" line="957"/> <location filename="../../src/Dialog_Processing.cpp" line="957"/>
<location filename="../../src/Dialog_Processing.cpp" line="958"/>
<source>Cancel Shutdown</source> <source>Cancel Shutdown</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1013"/> <location filename="../../src/Dialog_Processing.cpp" line="1012"/>
<source>hour(s)</source> <source>hour(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1014"/> <location filename="../../src/Dialog_Processing.cpp" line="1013"/>
<location filename="../../src/Dialog_Processing.cpp" line="1018"/> <location filename="../../src/Dialog_Processing.cpp" line="1017"/>
<source>minute(s)</source> <source>minute(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1019"/> <location filename="../../src/Dialog_Processing.cpp" line="1018"/>
<location filename="../../src/Dialog_Processing.cpp" line="1023"/> <location filename="../../src/Dialog_Processing.cpp" line="1022"/>
<source>second(s)</source> <source>second(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1024"/> <location filename="../../src/Dialog_Processing.cpp" line="1023"/>
<source>millisecond(s)</source> <source>millisecond(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -2867,103 +2867,107 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="218"/> <location filename="../../src/Dialog_Update.cpp" line="247"/>
<location filename="../../src/Dialog_Update.cpp" line="463"/> <location filename="../../src/Dialog_Update.cpp" line="500"/>
<source>Build</source> <source>Build</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="219"/> <location filename="../../src/Dialog_Update.cpp" line="248"/>
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="307"/> <location filename="../../src/Dialog_Update.cpp" line="344"/>
<source>Testing your internet connection, please wait...</source> <source>Testing your internet connection, please wait...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="327"/> <location filename="../../src/Dialog_Update.cpp" line="364"/>
<location filename="../../src/Dialog_Update.cpp" line="928"/>
<source>It appears that the computer currently is offline!</source> <source>It appears that the computer currently is offline!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="330"/> <location filename="../../src/Dialog_Update.cpp" line="367"/>
<location filename="../../src/Dialog_Update.cpp" line="931"/>
<source>Please make sure your computer is connected to the internet and try again.</source> <source>Please make sure your computer is connected to the internet and try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="380"/> <location filename="../../src/Dialog_Update.cpp" line="417"/>
<location filename="../../src/Dialog_Update.cpp" line="978"/>
<source>Network connectivity test has failed!</source> <source>Network connectivity test has failed!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="383"/> <location filename="../../src/Dialog_Update.cpp" line="420"/>
<location filename="../../src/Dialog_Update.cpp" line="981"/>
<source>Please make sure your internet connection is working properly and try again.</source> <source>Please make sure your internet connection is working properly and try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="397"/> <location filename="../../src/Dialog_Update.cpp" line="434"/>
<source>Checking for new updates online, please wait...</source> <source>Checking for new updates online, please wait...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="448"/> <location filename="../../src/Dialog_Update.cpp" line="485"/>
<source>Failed to fetch update information from server!</source> <source>Failed to fetch update information from server!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="453"/> <location filename="../../src/Dialog_Update.cpp" line="490"/>
<source>Sorry, the update server might be busy at this time. Plase try again later.</source> <source>Sorry, the update server might be busy at this time. Plase try again later.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="465"/> <location filename="../../src/Dialog_Update.cpp" line="502"/>
<source>More information available at:</source> <source>More information available at:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="471"/> <location filename="../../src/Dialog_Update.cpp" line="508"/>
<source>A new version of LameXP is available!</source> <source>A new version of LameXP is available!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="473"/> <location filename="../../src/Dialog_Update.cpp" line="510"/>
<source>We highly recommend all users to install this update as soon as possible.</source> <source>We highly recommend all users to install this update as soon as possible.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="482"/> <location filename="../../src/Dialog_Update.cpp" line="519"/>
<source>No new updates available at this time.</source> <source>No new updates available at this time.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="484"/> <location filename="../../src/Dialog_Update.cpp" line="521"/>
<source>Your version of LameXP is still up-to-date. Please check for updates regularly!</source> <source>Your version of LameXP is still up-to-date. Please check for updates regularly!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="493"/> <location filename="../../src/Dialog_Update.cpp" line="530"/>
<source>Your version appears to be newer than the latest release.</source> <source>Your version appears to be newer than the latest release.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="495"/> <location filename="../../src/Dialog_Update.cpp" line="532"/>
<source>This usually indicates your are currently using a pre-release version of LameXP.</source> <source>This usually indicates your are currently using a pre-release version of LameXP.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="778"/> <location filename="../../src/Dialog_Update.cpp" line="815"/>
<source>Update is being downloaded, please be patient...</source> <source>Update is being downloaded, please be patient...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="817"/> <location filename="../../src/Dialog_Update.cpp" line="854"/>
<source>Update ready to install. Applicaion will quit...</source> <source>Update ready to install. Applicaion will quit...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="825"/> <location filename="../../src/Dialog_Update.cpp" line="862"/>
<source>Update failed. Please try again or download manually!</source> <source>Update failed. Please try again or download manually!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -2633,141 +2633,141 @@
<translation type="unfinished">Powrót</translation> <translation type="unfinished">Powrót</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="154"/> <location filename="../../src/Dialog_Processing.cpp" line="153"/>
<source>Show details for selected job</source> <source>Show details for selected job</source>
<translation type="unfinished">Pokaż szczegóły wybranego zadania</translation> <translation type="unfinished">Pokaż szczegóły wybranego zadania</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="155"/> <location filename="../../src/Dialog_Processing.cpp" line="154"/>
<source>Browse Output File Location</source> <source>Browse Output File Location</source>
<translation type="unfinished">Wybierz lokalizację dla plików wyjściowych</translation> <translation type="unfinished">Wybierz lokalizację dla plików wyjściowych</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/> <location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Encoding Files</source> <source>Encoding Files</source>
<translation type="unfinished">Kompresowanie plików</translation> <translation type="unfinished">Kompresowanie plików</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="173"/> <location filename="../../src/Dialog_Processing.cpp" line="172"/>
<source>Your files are being encoded, please be patient...</source> <source>Your files are being encoded, please be patient...</source>
<translation type="unfinished">Twoje pliki właśnie kompresowane, prosze być cierpliwy...</translation> <translation type="unfinished">Twoje pliki właśnie kompresowane, prosze być cierpliwy...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="335"/> <location filename="../../src/Dialog_Processing.cpp" line="334"/>
<source>Encoding files, please wait...</source> <source>Encoding files, please wait...</source>
<translation type="unfinished">Kompresowanie plików, prosze czekać...</translation> <translation type="unfinished">Kompresowanie plików, prosze czekać...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="378"/> <location filename="../../src/Dialog_Processing.cpp" line="377"/>
<source>Multi-threading enabled: Running %1 instances in parallel!</source> <source>Multi-threading enabled: Running %1 instances in parallel!</source>
<translation type="unfinished">Wielowątkowosć włączona: Równolegle wykonywanych jest %1 kodowań!</translation> <translation type="unfinished">Wielowątkowosć włączona: Równolegle wykonywanych jest %1 kodowań!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="398"/> <location filename="../../src/Dialog_Processing.cpp" line="397"/>
<source>Aborted! Waiting for running jobs to terminate...</source> <source>Aborted! Waiting for running jobs to terminate...</source>
<translation type="unfinished">Przerwano! Czekanie na wyłączenie procesu...</translation> <translation type="unfinished">Przerwano! Czekanie na wyłączenie procesu...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="413"/> <location filename="../../src/Dialog_Processing.cpp" line="412"/>
<source>Encoding: %1 files of %2 completed so far, please wait...</source> <source>Encoding: %1 files of %2 completed so far, please wait...</source>
<translation type="unfinished">Kompresja: Prosze czekać, jak dotąd wykonano %1 z %2 plików...</translation> <translation type="unfinished">Kompresja: Prosze czekać, jak dotąd wykonano %1 z %2 plików...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="441"/> <location filename="../../src/Dialog_Processing.cpp" line="440"/>
<source>Creating the playlist file, please wait...</source> <source>Creating the playlist file, please wait...</source>
<translation type="unfinished">Tworzenie pliku playlisty, prosze czekać...</translation> <translation type="unfinished">Tworzenie pliku playlisty, prosze czekać...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/> <location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted by the user after %1 file(s)!</source> <source>Process was aborted by the user after %1 file(s)!</source>
<translation type="unfinished">Proces został przerwany przez użytkownika po wykonaniu %1 plików!</translation> <translation type="unfinished">Proces został przerwany przez użytkownika po wykonaniu %1 plików!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="451"/> <location filename="../../src/Dialog_Processing.cpp" line="450"/>
<source>Process was aborted prematurely by the user!</source> <source>Process was aborted prematurely by the user!</source>
<translation type="unfinished">Proces został przedwcześnie zakończony przez użytkownika!</translation> <translation type="unfinished">Proces został przedwcześnie zakończony przez użytkownika!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/> <location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>LameXP - Aborted</source> <source>LameXP - Aborted</source>
<translation type="unfinished">LameXP - Przerwano</translation> <translation type="unfinished">LameXP - Przerwano</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="452"/> <location filename="../../src/Dialog_Processing.cpp" line="451"/>
<source>Process was aborted by the user.</source> <source>Process was aborted by the user.</source>
<translation type="unfinished">Proces został przerwany przez użytkownika.</translation> <translation type="unfinished">Proces został przerwany przez użytkownika.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="465"/> <location filename="../../src/Dialog_Processing.cpp" line="464"/>
<source>Process finished after %1.</source> <source>Process finished after %1.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="474"/> <location filename="../../src/Dialog_Processing.cpp" line="473"/>
<source>Error: %1 of %2 files failed. Double-click failed items for detailed information!</source> <source>Error: %1 of %2 files failed. Double-click failed items for detailed information!</source>
<translation type="unfinished">Błąd: %1 z %2 plików nie zostało skompresowanych. Kliknij dwukrotnie na plik aby zobaczyć szczegóły!</translation> <translation type="unfinished">Błąd: %1 z %2 plików nie zostało skompresowanych. Kliknij dwukrotnie na plik aby zobaczyć szczegóły!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/> <location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>LameXP - Error</source> <source>LameXP - Error</source>
<translation type="unfinished">LameXP - Błąd</translation> <translation type="unfinished">LameXP - Błąd</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="475"/> <location filename="../../src/Dialog_Processing.cpp" line="474"/>
<source>At least one file has failed!</source> <source>At least one file has failed!</source>
<translation type="unfinished">Przynajmniej jeden plik nie został skompresowany!</translation> <translation type="unfinished">Przynajmniej jeden plik nie został skompresowany!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="484"/>
<location filename="../../src/Dialog_Processing.cpp" line="485"/> <location filename="../../src/Dialog_Processing.cpp" line="485"/>
<location filename="../../src/Dialog_Processing.cpp" line="486"/>
<source>All files completed successfully.</source> <source>All files completed successfully.</source>
<translation type="unfinished">Kompresja wszystkich plików zakończona powodzeniem.</translation> <translation type="unfinished">Kompresja wszystkich plików zakończona powodzeniem.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="486"/> <location filename="../../src/Dialog_Processing.cpp" line="485"/>
<source>LameXP - Done</source> <source>LameXP - Done</source>
<translation type="unfinished">LameXP - Zrobione</translation> <translation type="unfinished">LameXP - Zrobione</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/> <location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>Playlist creation failed</source> <source>Playlist creation failed</source>
<translation type="unfinished">Tworzenie playlisty zakończone niepowodzeniem</translation> <translation type="unfinished">Tworzenie playlisty zakończone niepowodzeniem</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="883"/> <location filename="../../src/Dialog_Processing.cpp" line="882"/>
<source>The playlist file could not be created:</source> <source>The playlist file could not be created:</source>
<translation type="unfinished">Playlista nie mogła zostać utworzona:</translation> <translation type="unfinished">Playlista nie mogła zostać utworzona:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="953"/> <location filename="../../src/Dialog_Processing.cpp" line="952"/>
<source>Warning: Computer will shutdown in %1 seconds...</source> <source>Warning: Computer will shutdown in %1 seconds...</source>
<translation type="unfinished">Ostrzeżenie: Komputer zostanie zamknięty za %1 sekund/y...</translation> <translation type="unfinished">Ostrzeżenie: Komputer zostanie zamknięty za %1 sekund/y...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="956"/>
<location filename="../../src/Dialog_Processing.cpp" line="957"/> <location filename="../../src/Dialog_Processing.cpp" line="957"/>
<location filename="../../src/Dialog_Processing.cpp" line="958"/>
<source>Cancel Shutdown</source> <source>Cancel Shutdown</source>
<translation type="unfinished">Anuluj wyłączenie komputera</translation> <translation type="unfinished">Anuluj wyłączenie komputera</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1013"/> <location filename="../../src/Dialog_Processing.cpp" line="1012"/>
<source>hour(s)</source> <source>hour(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1014"/> <location filename="../../src/Dialog_Processing.cpp" line="1013"/>
<location filename="../../src/Dialog_Processing.cpp" line="1018"/> <location filename="../../src/Dialog_Processing.cpp" line="1017"/>
<source>minute(s)</source> <source>minute(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1019"/> <location filename="../../src/Dialog_Processing.cpp" line="1018"/>
<location filename="../../src/Dialog_Processing.cpp" line="1023"/> <location filename="../../src/Dialog_Processing.cpp" line="1022"/>
<source>second(s)</source> <source>second(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Processing.cpp" line="1024"/> <location filename="../../src/Dialog_Processing.cpp" line="1023"/>
<source>millisecond(s)</source> <source>millisecond(s)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -2867,103 +2867,107 @@
<translation type="unfinished">Zamknij</translation> <translation type="unfinished">Zamknij</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="218"/> <location filename="../../src/Dialog_Update.cpp" line="247"/>
<location filename="../../src/Dialog_Update.cpp" line="463"/> <location filename="../../src/Dialog_Update.cpp" line="500"/>
<source>Build</source> <source>Build</source>
<translation type="unfinished">Build</translation> <translation type="unfinished">Build</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="219"/> <location filename="../../src/Dialog_Update.cpp" line="248"/>
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished">Nieznany</translation> <translation type="unfinished">Nieznany</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="307"/> <location filename="../../src/Dialog_Update.cpp" line="344"/>
<source>Testing your internet connection, please wait...</source> <source>Testing your internet connection, please wait...</source>
<translation type="unfinished">Testowanie połączenia internetowego, prosze czekać...</translation> <translation type="unfinished">Testowanie połączenia internetowego, prosze czekać...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="327"/> <location filename="../../src/Dialog_Update.cpp" line="364"/>
<location filename="../../src/Dialog_Update.cpp" line="928"/>
<source>It appears that the computer currently is offline!</source> <source>It appears that the computer currently is offline!</source>
<translation type="unfinished">LameXP wykrył brak dostępu do internetu!</translation> <translation type="unfinished">LameXP wykrył brak dostępu do internetu!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="330"/> <location filename="../../src/Dialog_Update.cpp" line="367"/>
<location filename="../../src/Dialog_Update.cpp" line="931"/>
<source>Please make sure your computer is connected to the internet and try again.</source> <source>Please make sure your computer is connected to the internet and try again.</source>
<translation type="unfinished">Upewnij się że komputer jest podłączony do internetu i spróbuj ponownie.</translation> <translation type="unfinished">Upewnij się że komputer jest podłączony do internetu i spróbuj ponownie.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="380"/> <location filename="../../src/Dialog_Update.cpp" line="417"/>
<location filename="../../src/Dialog_Update.cpp" line="978"/>
<source>Network connectivity test has failed!</source> <source>Network connectivity test has failed!</source>
<translation type="unfinished">Test połączenia internetowego zakończony niepowodzeniem!</translation> <translation type="unfinished">Test połączenia internetowego zakończony niepowodzeniem!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="383"/> <location filename="../../src/Dialog_Update.cpp" line="420"/>
<location filename="../../src/Dialog_Update.cpp" line="981"/>
<source>Please make sure your internet connection is working properly and try again.</source> <source>Please make sure your internet connection is working properly and try again.</source>
<translation type="unfinished">Upewnij się że połączenie internetowe działa prawidłowo i spróbuj ponownie.</translation> <translation type="unfinished">Upewnij się że połączenie internetowe działa prawidłowo i spróbuj ponownie.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="397"/> <location filename="../../src/Dialog_Update.cpp" line="434"/>
<source>Checking for new updates online, please wait...</source> <source>Checking for new updates online, please wait...</source>
<translation type="unfinished">Sprawdzanie aktualizacji online, prosze czekać...</translation> <translation type="unfinished">Sprawdzanie aktualizacji online, prosze czekać...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="448"/> <location filename="../../src/Dialog_Update.cpp" line="485"/>
<source>Failed to fetch update information from server!</source> <source>Failed to fetch update information from server!</source>
<translation type="unfinished">Pobieranie informacji z serwera zakończone niepowodzeniem!</translation> <translation type="unfinished">Pobieranie informacji z serwera zakończone niepowodzeniem!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="453"/> <location filename="../../src/Dialog_Update.cpp" line="490"/>
<source>Sorry, the update server might be busy at this time. Plase try again later.</source> <source>Sorry, the update server might be busy at this time. Plase try again later.</source>
<translation type="unfinished">Serwer aktualizacji wydaje się nie odpowiadać w tej chwili. Prosze spróbować później.</translation> <translation type="unfinished">Serwer aktualizacji wydaje się nie odpowiadać w tej chwili. Prosze spróbować później.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="465"/> <location filename="../../src/Dialog_Update.cpp" line="502"/>
<source>More information available at:</source> <source>More information available at:</source>
<translation type="unfinished">Więcej informacji tutaj:</translation> <translation type="unfinished">Więcej informacji tutaj:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="471"/> <location filename="../../src/Dialog_Update.cpp" line="508"/>
<source>A new version of LameXP is available!</source> <source>A new version of LameXP is available!</source>
<translation type="unfinished">Dostępna nowa wersja LameXP!</translation> <translation type="unfinished">Dostępna nowa wersja LameXP!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="473"/> <location filename="../../src/Dialog_Update.cpp" line="510"/>
<source>We highly recommend all users to install this update as soon as possible.</source> <source>We highly recommend all users to install this update as soon as possible.</source>
<translation type="unfinished">Jest wysoce zalecane aby zainstalować aktualizację jak najszybciej.</translation> <translation type="unfinished">Jest wysoce zalecane aby zainstalować aktualizację jak najszybciej.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="482"/> <location filename="../../src/Dialog_Update.cpp" line="519"/>
<source>No new updates available at this time.</source> <source>No new updates available at this time.</source>
<translation type="unfinished">Nie ma nowych aktualizacji w tej chwili.</translation> <translation type="unfinished">Nie ma nowych aktualizacji w tej chwili.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="484"/> <location filename="../../src/Dialog_Update.cpp" line="521"/>
<source>Your version of LameXP is still up-to-date. Please check for updates regularly!</source> <source>Your version of LameXP is still up-to-date. Please check for updates regularly!</source>
<translation type="unfinished">Posiadasz najnowszą wersję LameXP. Sprawdzaj aktualizacje regularnie!</translation> <translation type="unfinished">Posiadasz najnowszą wersję LameXP. Sprawdzaj aktualizacje regularnie!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="493"/> <location filename="../../src/Dialog_Update.cpp" line="530"/>
<source>Your version appears to be newer than the latest release.</source> <source>Your version appears to be newer than the latest release.</source>
<translation type="unfinished">Posiadasz nowszą wersję LameXP niż ostatnie wydanie.</translation> <translation type="unfinished">Posiadasz nowszą wersję LameXP niż ostatnie wydanie.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="495"/> <location filename="../../src/Dialog_Update.cpp" line="532"/>
<source>This usually indicates your are currently using a pre-release version of LameXP.</source> <source>This usually indicates your are currently using a pre-release version of LameXP.</source>
<translation type="unfinished">To wskazuje na to, że posiadasz wersję alfa LameXP.</translation> <translation type="unfinished">To wskazuje na to, że posiadasz wersję alfa LameXP.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="778"/> <location filename="../../src/Dialog_Update.cpp" line="815"/>
<source>Update is being downloaded, please be patient...</source> <source>Update is being downloaded, please be patient...</source>
<translation type="unfinished">Pobieranie aktualizacji w toku, prosze czekać...</translation> <translation type="unfinished">Pobieranie aktualizacji w toku, prosze czekać...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="817"/> <location filename="../../src/Dialog_Update.cpp" line="854"/>
<source>Update ready to install. Applicaion will quit...</source> <source>Update ready to install. Applicaion will quit...</source>
<translation type="unfinished">Aktualizacja gotowa do instalacji. Teraz program zostanie zamknięty...</translation> <translation type="unfinished">Aktualizacja gotowa do instalacji. Teraz program zostanie zamknięty...</translation>
</message> </message>
<message> <message>
<location filename="../../src/Dialog_Update.cpp" line="825"/> <location filename="../../src/Dialog_Update.cpp" line="862"/>
<source>Update failed. Please try again or download manually!</source> <source>Update failed. Please try again or download manually!</source>
<translation type="unfinished">Aktualizacja zakończona niepowodzeniem. Prosze spróbować ponownie lub zainstalować ręcznie!</translation> <translation type="unfinished">Aktualizacja zakończona niepowodzeniem. Prosze spróbować ponownie lub zainstalować ręcznie!</translation>
</message> </message>

View File

@ -29,8 +29,8 @@
#define VER_LAMEXP_MINOR_HI 0 #define VER_LAMEXP_MINOR_HI 0
#define VER_LAMEXP_MINOR_LO 4 #define VER_LAMEXP_MINOR_LO 4
#define VER_LAMEXP_TYPE Alpha #define VER_LAMEXP_TYPE Alpha
#define VER_LAMEXP_PATCH 5 #define VER_LAMEXP_PATCH 6
#define VER_LAMEXP_BUILD 796 #define VER_LAMEXP_BUILD 798
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Tool versions (minimum expected versions!) // Tool versions (minimum expected versions!)

View File

@ -73,43 +73,72 @@ static const char *update_mirrors_back[] =
NULL NULL
}; };
static const char *known_hosts[] = static const char *known_hosts[] = //Taken form: http://www.alexa.com/topsites
{ {
"http://www.163.com/",
"http://www.360buy.com/",
"http://www.amazon.com/", "http://www.amazon.com/",
"http://www.aol.com/", "http://www.aol.com/",
"http://www.apache.org/", "http://www.apache.org/",
"http://www.apple.com/",
"http://www.adobe.com/",
"http://www.avidemux.org/", "http://www.avidemux.org/",
"http://www.babylon.com/",
"http://www.baidu.com/",
"http://www.bbc.co.uk/", "http://www.bbc.co.uk/",
"http://www.bing.com/", "http://www.bing.com/",
"http://www.cnet.com/",
"http://cnzz.com/",
"http://www.ebay.com/", "http://www.ebay.com/",
"http://www.equation.com/", "http://www.equation.com/",
"http://fc2.com/",
"http://www.ffmpeg.org/", "http://www.ffmpeg.org/",
"http://www.flickr.com/",
"http://www.gitorious.org/", "http://www.gitorious.org/",
"http://www.gnome.org/", "http://www.gnome.org/",
"http://www.gnu.org/", "http://www.gnu.org/",
"http://go.com/",
"http://code.google.com/", "http://code.google.com/",
"http://haali.su/mkv/",
"http://www.heise.de/", "http://www.heise.de/",
"http://www.huffingtonpost.co.uk/",
"http://www.iana.org/", "http://www.iana.org/",
"http://www.imdb.com/",
"http://www.imgburn.com/", "http://www.imgburn.com/",
"http://imgur.com/",
"http://www.kernel.org/", "http://www.kernel.org/",
"http://www.libav.org/", "http://www.libav.org/",
"http://www.linkedin.com/",
"http://www.livedoor.com/",
"http://www.livejournal.com/",
"http://mail.ru/",
"http://www.mediafire.com/",
"http://www.mozilla.org/", "http://www.mozilla.org/",
"http://mplayerhq.hu/", "http://mplayerhq.hu/",
"http://www.msn.com/?st=1", "http://www.msn.com/?st=1",
"http://oss.netfarm.it/", "http://oss.netfarm.it/",
"http://www.nytimes.com/",
"http://www.opera.com/", "http://www.opera.com/",
"http://www.quakelive.com/", "http://www.quakelive.com/",
"http://www.seamonkey-project.org/", "http://www.seamonkey-project.org/",
"http://www.sina.com.cn/",
"http://www.sohu.com/",
"http://www.soso.com/",
"http://sourceforge.net/", "http://sourceforge.net/",
"http://www.spiegel.de/", "http://www.spiegel.de/",
"http://tdm-gcc.tdragon.net/", "http://tdm-gcc.tdragon.net/",
"http://www.tdrsmusic.com/", "http://www.tdrsmusic.com/",
"http://www.ubuntu.com/",
"http://twitter.com/",
"http://www.uol.com.br/",
"http://www.videohelp.com/", "http://www.videohelp.com/",
"http://www.videolan.org/", "http://www.videolan.org/",
"http://www.weibo.com/",
"http://www.wikipedia.org/", "http://www.wikipedia.org/",
"http://wordpress.com/",
"http://www.yahoo.com/", "http://www.yahoo.com/",
"http://www.yandex.ru/",
"http://www.youtube.com/", "http://www.youtube.com/",
"http://www.zedo.com/",
NULL NULL
}; };
@ -259,6 +288,14 @@ void UpdateDialog::keyPressEvent(QKeyEvent *e)
{ {
if(closeButton->isEnabled()) logButtonClicked(); if(closeButton->isEnabled()) logButtonClicked();
} }
else if((e->key() == Qt::Key_F12) && e->modifiers().testFlag(Qt::ControlModifier))
{
if(closeButton->isEnabled())
{
testKnownWebSites();
logButtonClicked();
}
}
else else
{ {
QDialog::keyPressEvent(e); QDialog::keyPressEvent(e);
@ -365,7 +402,7 @@ void UpdateDialog::checkForUpdates(void)
else else
{ {
QApplication::processEvents(); QApplication::processEvents();
Sleep(15); Sleep(8);
} }
} }
@ -578,7 +615,7 @@ bool UpdateDialog::getFile(const QString &url, const QString &outFile, unsigned
QTimer timer; QTimer timer;
timer.setSingleShot(true); timer.setSingleShot(true);
timer.setInterval(15000); timer.setInterval(25000);
connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
process.start(m_binaryWGet, args); process.start(m_binaryWGet, args);
@ -844,3 +881,131 @@ void UpdateDialog::progressBarValueChanged(int value)
{ {
WinSevenTaskbar::setTaskbarProgress(this->parentWidget(), value, progressBar->maximum()); WinSevenTaskbar::setTaskbarProgress(this->parentWidget(), value, progressBar->maximum());
} }
void UpdateDialog::testKnownWebSites(void)
{
int connectionScore = 0;
// ----- Initialization ----- //
progressBar->setValue(0);
WinSevenTaskbar::setTaskbarState(this->parentWidget(), WinSevenTaskbar::WinSevenTaskbarNormalState);
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/transmit_blue.png"));
installButton->setEnabled(false);
closeButton->setEnabled(false);
retryButton->setEnabled(false);
logButton->setEnabled(false);
if(infoLabel->isVisible()) infoLabel->hide();
if(hintLabel->isVisible()) hintLabel->hide();
if(hintIcon->isVisible()) hintIcon->hide();
frameAnimation->show();
QApplication::processEvents();
QApplication::setOverrideCursor(Qt::WaitCursor);
// ----- Test Internet Connection ----- //
statusLabel->setText("Testing all known hosts, this may take a few minutes...");
m_logFile->clear();
m_logFile->append("Checking internet connection...");
QFuture<BOOL> connectedState = QtConcurrent::run(getInternetConnectedState);
while(!connectedState.isFinished())
{
QApplication::processEvents(QEventLoop::WaitForMoreEvents);
}
if(!connectedState.result())
{
m_logFile->append(QStringList() << "" << "Operating system reports that the computer is currently offline !!!");
if(!retryButton->isVisible()) retryButton->show();
if(!logButton->isVisible()) logButton->show();
closeButton->setEnabled(true);
retryButton->setEnabled(true);
logButton->setEnabled(true);
if(frameAnimation->isVisible()) frameAnimation->hide();
statusLabel->setText(tr("It appears that the computer currently is offline!"));
progressBar->setValue(progressBar->maximum());
hintIcon->setPixmap(QIcon(":/icons/network_error.png").pixmap(16,16));
hintLabel->setText(tr("Please make sure your computer is connected to the internet and try again."));
hintIcon->show();
hintLabel->show();
LAMEXP_DELETE(m_updateInfo);
if(m_settings->soundsEnabled()) PlaySound(MAKEINTRESOURCE(IDR_WAVE_ERROR), GetModuleHandle(NULL), SND_RESOURCE | SND_ASYNC);
QApplication::restoreOverrideCursor();
progressBar->setValue(progressBar->maximum());
WinSevenTaskbar::setTaskbarState(this->parentWidget(), WinSevenTaskbar::WinSevenTaskbarErrorState);
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/exclamation.png"));
return;
}
// ----- Test Known Hosts Connectivity ----- //
QStringList hostList;
for(int i = 0; known_hosts[i]; i++)
{
hostList << QString::fromLatin1(known_hosts[i]);
}
int maxScore = hostList.count();
while(!hostList.isEmpty())
{
progressBar->setValue(progressBar->value() + 1);
QString currentHost = hostList.takeFirst();
qDebug("Testing: %s", currentHost.toLatin1().constData());
m_logFile->append(QStringList() << "" << "Testing host:" << currentHost << "");
QString outFile = QString("%1/%2.htm").arg(lamexp_temp_folder2(), lamexp_rand_str());
if(getFile(currentHost, outFile, 0))
{
connectionScore++;
}
else
{
qWarning("Connectivity test failed on the following site:\n%s", currentHost.toLatin1().constData());
}
QFile::remove(outFile);
}
if(connectionScore < maxScore)
{
if(!retryButton->isVisible()) retryButton->show();
if(!logButton->isVisible()) logButton->show();
closeButton->setEnabled(true);
retryButton->setEnabled(true);
logButton->setEnabled(true);
if(frameAnimation->isVisible()) frameAnimation->hide();
statusLabel->setText(tr("Network connectivity test has failed!"));
progressBar->setValue(progressBar->maximum());
hintIcon->setPixmap(QIcon(":/icons/network_error.png").pixmap(16,16));
hintLabel->setText(tr("Please make sure your internet connection is working properly and try again."));
hintIcon->show();
hintLabel->show();
LAMEXP_DELETE(m_updateInfo);
if(m_settings->soundsEnabled()) PlaySound(MAKEINTRESOURCE(IDR_WAVE_ERROR), GetModuleHandle(NULL), SND_RESOURCE | SND_ASYNC);
QApplication::restoreOverrideCursor();
progressBar->setValue(progressBar->maximum());
WinSevenTaskbar::setTaskbarState(this->parentWidget(), WinSevenTaskbar::WinSevenTaskbarErrorState);
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/exclamation.png"));
return;
}
// ----- Done ----- //
QApplication::restoreOverrideCursor();
progressBar->setValue(progressBar->maximum());
statusLabel->setText("Test completed.");
hintIcon->setPixmap(QIcon(":/icons/shield_green.png").pixmap(16,16));
hintLabel->setText("Congratulations, the test has completed.");
if(frameAnimation->isVisible()) frameAnimation->hide();
hintIcon->show();
hintLabel->show();
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/shield_green.png"));
MessageBeep(MB_ICONINFORMATION);
closeButton->setEnabled(true);
if(retryButton->isVisible()) retryButton->hide();
if(logButton->isVisible()) logButton->hide();
if(frameAnimation->isVisible()) frameAnimation->hide();
}

View File

@ -61,6 +61,7 @@ private:
bool getFile(const QString &url, const QString &outFile, unsigned int maxRedir = 5); bool getFile(const QString &url, const QString &outFile, unsigned int maxRedir = 5);
bool checkSignature(const QString &file, const QString &signature); bool checkSignature(const QString &file, const QString &signature);
bool parseVersionInfo(const QString &file, UpdateInfo *updateInfo); bool parseVersionInfo(const QString &file, UpdateInfo *updateInfo);
void testKnownWebSites(void);
UpdateInfo *m_updateInfo; UpdateInfo *m_updateInfo;
QStringList *m_logFile; QStringList *m_logFile;