2023-09-20 18:29:42 +08:00
|
|
|
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
#ifndef DESKTOPFILEPARSER_H
|
|
|
|
#define DESKTOPFILEPARSER_H
|
|
|
|
|
|
|
|
#include "iniParser.h"
|
|
|
|
#include "desktopentry.h"
|
|
|
|
|
|
|
|
class DesktopFileParser : public Parser<DesktopEntry::Value>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
using Parser<DesktopEntry::Value>::Parser;
|
|
|
|
ParserError parse(Groups &ret) noexcept override;
|
|
|
|
ParserError addGroup(Groups &ret) noexcept override;
|
|
|
|
ParserError addEntry(Groups::iterator &group) noexcept override;
|
|
|
|
};
|
|
|
|
|
2023-10-16 14:39:20 +08:00
|
|
|
QString toString(const DesktopFileParser::Groups &map);
|
|
|
|
|
2023-09-20 18:29:42 +08:00
|
|
|
#endif
|