File indexing completed on 2024-11-24 04:44:28

0001 /*
0002     This file is part of oxaccess.
0003 
0004     SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #pragma once
0010 
0011 class QDomDocument;
0012 class QDomElement;
0013 
0014 namespace OXA
0015 {
0016 class Folder;
0017 
0018 /**
0019  * Namespace that contains helper methods for handling folders.
0020  *
0021  * @author Tobias Koenig <tokoe@kde.org>
0022  */
0023 namespace FolderUtils
0024 {
0025 /**
0026  * Parses the XML tree under @p propElement and return the folder.
0027  */
0028 Folder parseFolder(const QDomElement &propElement);
0029 
0030 /**
0031  * Adds the @p folder data to the @p document under the @p propElement.
0032  */
0033 void addFolderElements(QDomDocument &document, QDomElement &propElement, const Folder &folder);
0034 }
0035 }