File indexing completed on 2024-11-24 04:44:27
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 #include "object.h" 0012 0013 class KJob; 0014 0015 class QDomDocument; 0016 class QDomElement; 0017 0018 namespace OXA 0019 { 0020 /** 0021 * Namespace that contains helper methods for handling contacts. 0022 * 0023 * @author Tobias Koenig <tokoe@kde.org> 0024 */ 0025 namespace ContactUtils 0026 { 0027 /** 0028 * Parses the XML tree under @p propElement and fills the contact data of @p object. 0029 */ 0030 void parseContact(const QDomElement &propElement, Object &object); 0031 0032 /** 0033 * Adds the contact data of @p object to the @p document under the @p propElement. 0034 */ 0035 void addContactElements(QDomDocument &document, QDomElement &propElement, const Object &object, void *preloadedData); 0036 0037 KJob *preloadJob(const Object &object); 0038 void *preloadData(const Object &object, KJob *job); 0039 } 0040 }