File indexing completed on 2025-01-05 04:37:28

0001 /*
0002     SPDX-FileCopyrightText: 2005-2007 Joris Guisson <joris.guisson@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #ifndef KTUPNPDESCRIPTIONPARSER_H
0007 #define KTUPNPDESCRIPTIONPARSER_H
0008 
0009 #include <QString>
0010 
0011 namespace bt
0012 {
0013 class UPnPRouter;
0014 
0015 /**
0016  * @author Joris Guisson
0017  *
0018  * Parses the xml description of a router.
0019  */
0020 class UPnPDescriptionParser
0021 {
0022 public:
0023     UPnPDescriptionParser();
0024     virtual ~UPnPDescriptionParser();
0025 
0026     /**
0027      * Parse the xml description.
0028      * @param file File it is located in
0029      * @param router The router off the xml description
0030      * @return true upon success
0031      */
0032     bool parse(const QString &file, UPnPRouter *router);
0033 
0034     /**
0035      * Parse the xml description.
0036      * @param data QByteArray with the data
0037      * @param router The router off the xml description
0038      * @return true upon success
0039      */
0040     bool parse(const QByteArray &data, UPnPRouter *router);
0041 };
0042 
0043 }
0044 
0045 #endif