2
* This file is part of system-settings
4
* Copyright (C) 2016 Canonical Ltd.
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License version 3, as published
8
* by the Free Software Foundation.
10
* This program is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranties of
12
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
13
* PURPOSE. See the GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License along
16
* with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef CLICK_SESSIONTOKEN_IMPL_H
20
#define CLICK_SESSIONTOKEN_IMPL_H
22
#include "sessiontoken.h"
26
namespace UpdatePlugin
30
class SessionTokenImpl : public SessionToken
33
// Creates an invalid SessionToken.
34
explicit SessionTokenImpl();
35
// Creates a SessionToken using a UbuntuOne Token.
36
explicit SessionTokenImpl(const UbuntuOne::Token &token);
37
virtual ~SessionTokenImpl() {};
38
virtual bool isValid() const override;
39
virtual QString signUrl(const QString url,
41
bool asQuery = false) const override;
43
UbuntuOne::Token m_token;
48
#endif // CLICK_SESSIONTOKEN_IMPL_H