~ken-vandine/ubuntu-system-settings/lp1501428

« back to all changes in this revision

Viewing changes to plugins/system-update/update_manager.h

  • Committer: CI Train Bot
  • Author(s): Manuel de la Pena
  • Date: 2015-09-01 13:59:08 UTC
  • mfrom: (1506.6.8 donot-query-on-error)
  • Revision ID: ci-train-bot@canonical.com-20150901135908-hhxklaq0t29q3yko
Sign the query in order to get a possible auth error from the server and stop the user from trying to do updates with invalid creds.
Approved by: Ken VanDine

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *
19
19
*/
20
20
 
21
 
#ifndef UPDATEMANAGER_H
22
 
#define UPDATEMANAGER_H
 
21
#pragma once
23
22
 
24
23
#include <QObject>
25
24
#include <QtQml>
40
39
#else
41
40
#include <ssoservice.h>
42
41
#include <QProcess>
43
 
#include "network/network.h"
 
42
#include "network.h"
44
43
#include "system_update.h"
45
44
#endif
46
45
 
112
111
    QHash<QString, Update*> get_apps() { return m_apps; }
113
112
    QVariantList get_model() { return m_model; }
114
113
    int get_downloadMode() { return m_downloadMode; }
115
 
    void set_token(Token& t) { m_token = t; }
116
 
    Token get_token() { return m_token; }
 
114
    void set_token(Token& t) { m_network.setUbuntuOneToken(t); }
 
115
    Token get_token() { return m_network.getUbuntuOneToken(); }
117
116
    void setCheckintUpdates(int value) { m_checkingUpdates = value; }
118
117
    void setCheckSystemUpdates(int value) { m_systemCheckingUpdate = value; }
119
118
    void setCheckClickUpdates(int value) { m_clickCheckingUpdate = value; }
149
148
    QHash<QString, Update*> m_apps;
150
149
    int m_downloadMode;
151
150
    QVariantList m_model;
152
 
    Token m_token;
153
151
    QString m_latestDownload;
154
152
 
155
153
#ifdef TESTS
174
172
};
175
173
 
176
174
}
177
 
 
178
 
#endif // UPDATEMANAGER_H