LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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
15
namespace
LC::Util::XDG
16
{
26
class
DesktopParser
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
}
LC::Util::XDG::DesktopParser::Result_t
QHash< QString, Group_t > Result_t
Mapping from a group name to the group itself.
Definition:
desktopparser.h:55
LC::Util::XDG::DesktopParser::Group_t
QHash< QString, LangValue_t > Group_t
Mapping from a field name to the list of language-dependent values of that field.
Definition:
desktopparser.h:51
LC::Util::XDG::DesktopParser::operator()
UTIL_XDG_API Result_t operator()(const QByteArray &data)
Parses the XDG data.
xdgconfig.h
LC::Util::XDG
Definition:
desktopparser.cpp:15
UTIL_XDG_API
#define UTIL_XDG_API
Definition:
xdgconfig.h:16
LC::Util::XDG::DesktopParser::LangValue_t
QHash< QString, QStringList > LangValue_t
Mapping from a language to the list of values for that language.
Definition:
desktopparser.h:46
src
util
xdg
desktopparser.h
Generated by
1.8.17