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 0007 #ifndef KTSOAP_H 0008 #define KTSOAP_H 0009 0010 #include <QList> 0011 #include <QString> 0012 0013 namespace bt 0014 { 0015 /** 0016 @author Joris Guisson 0017 */ 0018 class SOAP 0019 { 0020 public: 0021 /** 0022 * Create a simple UPnP SOAP command without parameters. 0023 * @param action The name of the action 0024 * @param service The name of the service 0025 * @return The command 0026 */ 0027 static QString createCommand(const QString &action, const QString &service); 0028 0029 struct Arg { 0030 QString element; 0031 QString value; 0032 }; 0033 0034 /** 0035 * Create a UPnP SOAP command with parameters. 0036 * @param action The name of the action 0037 * @param service The name of the service 0038 * @param args Arguments for command 0039 * @return The command 0040 */ 0041 static QString createCommand(const QString &action, const QString &service, const QList<Arg> &args); 0042 }; 0043 0044 } 0045 0046 #endif