Commit f5f77dc7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Implement "isAutorized"

parent 080d21aa
Pipeline #45485 passed with stage
in 46 minutes
......@@ -24,6 +24,16 @@ RemoteContentManager *RemoteContentManager::self()
return &s_self;
}
bool RemoteContentManager::isAutorized(const QString &url) const
{
for (const RemoteContentInfo &info : qAsConst(mRemoveContentInfo)) {
if (info.url() == url) {
return info.status() == RemoteContentInfo::RemoteContentInfoStatus::Authorized;
}
}
return false;
}
void RemoteContentManager::loadSettings()
{
//TODO
......
......@@ -20,6 +20,8 @@ public:
~RemoteContentManager() override;
static RemoteContentManager *self();
Q_REQUIRED_RESULT bool isAutorized(const QString &url) const;
private:
void loadSettings();
void writeSettings();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment