2018-01-26 15:11:35 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Camila Ayres <camila@nextcloud.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2018-02-19 22:51:56 +03:00
|
|
|
#include "ocsnavigationappsjob.h"
|
2018-01-26 15:11:35 +03:00
|
|
|
|
|
|
|
namespace OCC {
|
|
|
|
|
2018-02-19 22:51:56 +03:00
|
|
|
OcsNavigationAppsJob::OcsNavigationAppsJob(AccountPtr account)
|
2018-01-26 15:11:35 +03:00
|
|
|
: OcsJob(account)
|
|
|
|
{
|
2018-02-19 22:51:56 +03:00
|
|
|
setPath("ocs/v2.php/core/navigation/apps");
|
|
|
|
connect(this, &OcsNavigationAppsJob::jobFinished, this, &OcsNavigationAppsJob::jobDone);
|
2018-01-26 15:11:35 +03:00
|
|
|
}
|
|
|
|
|
2018-02-19 22:51:56 +03:00
|
|
|
void OcsNavigationAppsJob::getNavigationApps()
|
2018-01-26 15:11:35 +03:00
|
|
|
{
|
|
|
|
setVerb("GET");
|
|
|
|
start();
|
|
|
|
}
|
|
|
|
|
2018-02-19 22:51:56 +03:00
|
|
|
void OcsNavigationAppsJob::jobDone(const QJsonDocument &reply)
|
2018-01-26 15:11:35 +03:00
|
|
|
{
|
|
|
|
|
|
|
|
emit appsJobFinished(reply);
|
|
|
|
}
|
|
|
|
}
|