summaryrefslogtreecommitdiffstats
blob: ed53e1156faeb2b674c0ebef7e1d3d1d2330e5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2010-2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <boost/signals2.hpp>

namespace Swift {
    class AutoUpdater {
        public:
            virtual ~AutoUpdater();

            virtual void checkForUpdates() = 0;
            virtual bool recommendRestartToUpdate() = 0;

        public:
            /**
             * Emit this signal if a new version of the software has been downloaded
             * and the user needs to be notified so they can quit the app and start
             * the newer version.
             */
            boost::signals2::signal<void()> onSuggestRestartToUserToUpdate;
    };
}