2
* Copyright 2013 Canonical Ltd.
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of version 3 of the GNU Lesser General Public
6
* License as published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public
14
* License along with this library; if not, write to the
15
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
* Boston, MA 02110-1301, USA.
27
namespace UpdatePlugin {
29
class FakeNetwork : public QObject
33
explicit FakeNetwork(QObject *parent = 0);
35
void checkForNewVersions(QHash<QString, Update*> &apps);
36
void getResourceUrl(QString packagename);
37
void getClickToken(Update* app, const QString& url, const QString& authHeader);
41
void updatesNotFound();
43
void downloadUrlFound(QString packagename, QString url);
44
void clickTokenObtained(Update* app, const QString& clickToken);
49
#endif // FAKENETWORK_H