LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
desktopparser.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QHash>
12#include <QStringList>
13#include "xdgconfig.h"
14
15namespace LC::Util::XDG
16{
27 {
28 public:
34 using LangValue_t = QHash<QString, QStringList>;
35
39 using Group_t = QHash<QString, LangValue_t>;
40
43 using Result_t = QHash<QString, Group_t>;
44
51 UTIL_XDG_API Result_t operator() (const QByteArray& data);
52 };
53}
A parser for XDG .desktop files.
QHash< QString, LangValue_t > Group_t
Mapping from a field name to the list of language-dependent values of that field.
UTIL_XDG_API Result_t operator()(const QByteArray &data)
Parses the XDG data.
QHash< QString, QStringList > LangValue_t
Mapping from a language to the list of values for that language.
QHash< QString, Group_t > Result_t
Mapping from a group name to the group itself.
#define UTIL_XDG_API
Definition xdgconfig.h:16