Alexander Afanasyev | 14b0948 | 2013-10-11 18:24:45 +0200 | [diff] [blame] | 1 | /* -*- Mode: objc; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame] | 2 | /** |
| 3 | * Copyright (c) 2013-2014, Regents of the University of California, |
Alexander Afanasyev | 749f065 | 2013-09-22 13:03:21 -0700 | [diff] [blame] | 4 | * |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame] | 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 | * \author Alexander Afanasyev <http://lasr.cs.ucla.edu/afanasyev/index.html> |
| 20 | * \author Ilya Moiseenko <http://ilyamoiseenko.com/> |
Alexander Afanasyev | 749f065 | 2013-09-22 13:03:21 -0700 | [diff] [blame] | 21 | */ |
| 22 | |
| 23 | #ifndef SPARKLE_AUTO_UPDATE_H |
| 24 | #define SPARKLE_AUTO_UPDATE_H |
| 25 | |
| 26 | /** |
| 27 | * @brief Class implementing interface for automatic updates for OSX using Sparkle framework |
| 28 | */ |
| 29 | class SparkleAutoUpdate |
| 30 | { |
| 31 | public: |
| 32 | /** |
| 33 | * @brief Constructor |
| 34 | * @param updateUrl URL to Sparkle update definition file |
| 35 | */ |
| 36 | SparkleAutoUpdate (const char *updateUrl); |
| 37 | ~SparkleAutoUpdate (); |
| 38 | |
| 39 | /** |
| 40 | * @brief Check for updates once |
| 41 | */ |
| 42 | void |
| 43 | checkForUpdates (); |
| 44 | |
| 45 | private: |
| 46 | class Private; |
| 47 | Private *d; |
| 48 | }; |
| 49 | |
| 50 | #endif // SPARKLE_AUTO_UPDATE_H |