1 | // Aseprite |
2 | // Copyright (C) 2001-2015 David Capello |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifndef APP_CHECK_UPDATE_DELEGATE_H_INCLUDED |
8 | #define APP_CHECK_UPDATE_DELEGATE_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #ifdef ENABLE_UPDATER |
12 | |
13 | #include <string> |
14 | |
15 | namespace app { |
16 | |
17 | class CheckUpdateDelegate { |
18 | public: |
19 | virtual ~CheckUpdateDelegate() { } |
20 | virtual void onCheckingUpdates() = 0; |
21 | virtual void onUpToDate() = 0; |
22 | virtual void onNewUpdate(const std::string& url, const std::string& version) = 0; |
23 | }; |
24 | |
25 | } // namespace app |
26 | |
27 | #endif // ENABLE_UPDATER |
28 | |
29 | #endif // APP_CHECK_UPDATE_DELEGATE_H_INCLUDED |
30 | |