Alexander Afanasyev | fda42a8 | 2017-02-01 18:03:39 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (c) 2013-2017, Regents of the University of California. |
| 4 | * |
| 5 | * This file is part of NFD Control Center. See AUTHORS.md for complete list of NFD |
| 6 | * authors and contributors. |
| 7 | * |
| 8 | * NFD Control Center is free software: you can redistribute it and/or modify it under the |
| 9 | * terms of the GNU General Public License as published by the Free Software Foundation, |
| 10 | * either version 3 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * NFD Control Center is distributed in the hope that it will be useful, but WITHOUT ANY |
| 13 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 14 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along with NFD |
| 17 | * Control Center, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef NCC_OSX_AUTO_UPDATE_SPARKLE_HPP |
| 21 | #define NCC_OSX_AUTO_UPDATE_SPARKLE_HPP |
| 22 | |
| 23 | #include "config.hpp" |
| 24 | |
| 25 | #ifndef OSX_BUILD |
| 26 | #error "Cannot be included for non-OSX build" |
| 27 | #endif // OSX_BUILD |
| 28 | |
| 29 | #include <string> |
| 30 | #include <ndn-cxx/util/backports.hpp> |
| 31 | |
| 32 | namespace ndn { |
| 33 | namespace ncc { |
| 34 | |
| 35 | class OsxAutoUpdateSparkle |
| 36 | { |
| 37 | public: |
| 38 | OsxAutoUpdateSparkle(const std::string& updateUrl); |
| 39 | |
| 40 | ~OsxAutoUpdateSparkle(); |
| 41 | |
| 42 | void |
| 43 | checkForUpdates(); |
| 44 | |
| 45 | private: |
| 46 | class Impl; |
| 47 | unique_ptr<Impl> m_impl; |
| 48 | }; |
| 49 | |
| 50 | } // namespace ncc |
| 51 | } // namespace ndn |
| 52 | |
| 53 | #endif // NCC_OSX_AUTO_UPDATE_SPARKLE_HPP |