status-desktop/src-cpp/app/modules/startup/login/controller_interface.h

37 lines
656 B
C
Raw Normal View History

2022-01-06 19:29:19 +00:00
#pragma once
#include "accounts/account.h"
namespace Modules
{
namespace Startup
{
namespace Login
{
// Abstract class for any input/interaction with this module.
class ControllerInterface
{
public:
virtual void init()
{
throw std::domain_error("Not implemented");
}
virtual QVector<Accounts::AccountDto> getOpenedAccounts()
{
throw std::domain_error("Not implemented");
}
virtual void setSelectedAccountKeyUid(QString keyUid)
{
throw std::domain_error("Not implemented");
}
virtual void login(QString password)
{
throw std::domain_error("Not implemented");
}
};
} // namespace Login
} // namespace Startup
} // namespace Modules