Files
MagicSetEditor2/src/gui/update_checker.hpp
T
2017-01-18 08:52:57 -06:00

36 lines
1.3 KiB
C++

//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2017 Twan van Laarhoven and Sean Hunt |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_UPDATE_CHECKER
#define HEADER_UTIL_UPDATE_CHECKER
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
// ----------------------------------------------------------------------------- : Update checking
// Checks for updates if the settings say so
void check_updates();
/// Checks if the current version is the latest version
/** If async==true then checking is done in another thread
*/
void check_updates_now(bool async = true);
/// Show a dialog to inform the user that updates are available (if there are any)
/** Call check_updates first.
* Call this function from an onIdle loop */
void show_update_dialog(Window* parent);
/// Was update data found?
bool update_data_found();
/// Is there an update?
bool update_available();
// ----------------------------------------------------------------------------- : EOF
#endif