2014-01-15 10:08:42 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Daniel Molkentin <danimo@owncloud.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2016-10-25 09:00:07 +00:00
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-01-15 10:08:42 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SPARKLEUPDATER_H
|
|
|
|
#define SPARKLEUPDATER_H
|
|
|
|
|
2014-01-29 09:38:12 +00:00
|
|
|
#include "updater/updater.h"
|
2014-01-15 10:08:42 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2014-11-09 21:34:07 +00:00
|
|
|
namespace OCC {
|
2014-01-15 10:08:42 +00:00
|
|
|
|
|
|
|
class SparkleUpdater : public Updater {
|
|
|
|
public:
|
2014-01-15 15:01:35 +00:00
|
|
|
SparkleUpdater(const QString& appCastUrl);
|
2014-01-15 10:08:42 +00:00
|
|
|
~SparkleUpdater();
|
|
|
|
|
2014-01-15 11:45:43 +00:00
|
|
|
// unused in this updater
|
2014-07-09 21:22:28 +00:00
|
|
|
void checkForUpdate() Q_DECL_OVERRIDE;
|
|
|
|
void backgroundCheckForUpdate() Q_DECL_OVERRIDE;
|
|
|
|
bool handleStartup() Q_DECL_OVERRIDE { return false; }
|
2014-01-15 10:08:42 +00:00
|
|
|
private:
|
|
|
|
class Private;
|
|
|
|
Private *d;
|
|
|
|
};
|
|
|
|
|
2014-11-09 21:34:07 +00:00
|
|
|
} // namespace OCC
|
2014-01-15 10:08:42 +00:00
|
|
|
|
|
|
|
#endif // SPARKLEUPDATER_H
|