Changeset 139 in tspsg-svn for trunk/src/globals.h


Ignore:
Timestamp:
Sep 29, 2010, 11:21:46 PM (14 years ago)
Author:
laleppa
Message:

+ Automatically check for updates at the given interval functionality (Windows only at this moment).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/globals.h

    r137 r139  
    114114}
    115115
     116/*!
     117 * \brief Checks whether the updater app is installed/available.
     118 * \return \c true if updater app is available, oherwise \c false.
     119 * \note The updater app is only available under Windows at this moment.
     120 *  On other systems this function always returns \c false.
     121 */
     122inline bool hasUpdater()
     123{
     124#ifdef Q_OS_WIN32
     125        return QFile::exists("updater/Update.exe");
     126#else // Q_OS_WIN32
     127        return false;
     128#endif // Q_OS_WIN32
     129}
     130
    116131#ifdef Q_OS_WIN32
    117132/*!
Note: See TracChangeset for help on using the changeset viewer.