dde-application-manager/src/desktopfileparser.h
ComixHe 1f73eea404 feat: add desktopfilegenerator and method addUserApplication
1. change type of ActionName to 'a{sa{ss}}'
2. refactor the method of serialization

Signed-off-by: ComixHe <heyuming@deepin.org>
2023-10-17 11:44:02 +08:00

23 lines
595 B
C++

// 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;
};
QString toString(const DesktopFileParser::Groups &map);
#endif