File indexing completed on 2024-04-28 04:44:22
0001 /* 0002 SPDX-FileCopyrightText: 2015 (c) Matthieu Gallien <matthieu_gallien@yahoo.fr> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #include "upnphttpserver.h" 0008 #include "upnpcontrolabstractservice.h" 0009 #include "upnpservereventobject.h" 0010 0011 class UpnpHttpServerPrivate 0012 { 0013 public: 0014 UpnpControlAbstractService *mService; 0015 }; 0016 0017 UpnpHttpServer::UpnpHttpServer(QObject *parent) 0018 : KDSoapServer(parent) 0019 , d(std::make_unique<UpnpHttpServerPrivate>()) 0020 { 0021 d->mService = nullptr; 0022 } 0023 0024 UpnpHttpServer::~UpnpHttpServer() = default; 0025 0026 QObject *UpnpHttpServer::createServerObject() 0027 { 0028 auto newObject = std::make_unique<UpnpServerEventObject>(); 0029 newObject->setService(d->mService); 0030 return newObject.release(); 0031 } 0032 0033 void UpnpHttpServer::setService(UpnpControlAbstractService *service) 0034 { 0035 d->mService = service; 0036 } 0037 0038 #include "moc_upnphttpserver.cpp"