Skip to content
Snippets Groups Projects
Commit 986e7639 authored by akiraohgaki's avatar akiraohgaki
Browse files

Import archive types

parent 2494be45
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ XdgUrl::XdgUrl(const QString &xdgUrl, Core::Config *appConfig, Core::Config *use
{
_meta = _parse();
_destinations = _importDestinations();
_archiveTypes = _importArchiveTypes();
}
QJsonObject XdgUrl::_parse()
......@@ -88,6 +89,15 @@ QJsonObject XdgUrl::_importDestinations()
return destinations;
}
QJsonObject XdgUrl::_importArchiveTypes()
{
//QJsonObject archiveTypes;
//QJsonObject appConfigArchiveTypes = _appConfig->get("archive_types");
//return archiveTypes;
return _appConfig->get("archive_types");
}
bool XdgUrl::_installPlasmapkg(const QString &path, const QString &type)
{
return true;
......
......@@ -33,6 +33,7 @@ public:
private:
QJsonObject _parse();
QJsonObject _importDestinations();
QJsonObject _importArchiveTypes();
bool _installPlasmapkg(const QString &path, const QString &type = "plasmoid");
bool _uncompressArchive(const QString &path, const QString &targetDir);
bool _download();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment