MuseScore/src/cloud/iauthorizationservice.h
2021-06-10 09:14:36 +02:00

47 lines
1.3 KiB
C++

/*
* SPDX-License-Identifier: GPL-3.0-only
* MuseScore-CLA-applies
*
* MuseScore
* Music Composition & Notation
*
* Copyright (C) 2021 MuseScore BVBA and others
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef MU_CLOUD_IAUTHORIZATIONSERVICE_H
#define MU_CLOUD_IAUTHORIZATIONSERVICE_H
#include "modularity/imoduleexport.h"
#include "cloudtypes.h"
#include "retval.h"
namespace mu::cloud {
class IAuthorizationService : MODULE_EXPORT_INTERFACE
{
INTERFACE_ID(IAuthorizationService)
public:
virtual ~IAuthorizationService() = default;
virtual void signIn() = 0;
virtual void signOut() = 0;
virtual ValCh<bool> userAuthorized() const = 0;
virtual ValCh<AccountInfo> accountInfo() const = 0;
};
}
#endif // MU_CLOUD_IAUTHORIZATIONSERVICE_H