File indexing completed on 2024-04-28 15:22:07

0001 /*
0002     This file is part of the KDE project
0003 
0004     SPDX-FileCopyrightText: 2004, 2007 Jakub Stachowski <qbast@go2.pl>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #ifndef SERVICEBASE_P_H
0010 #define SERVICEBASE_P_H
0011 
0012 #include <QMap>
0013 #include <QString>
0014 
0015 namespace KDNSSD
0016 {
0017 class ServiceBasePrivate
0018 {
0019 public:
0020     ServiceBasePrivate(const QString &name, const QString &type, const QString &domain, const QString &host, unsigned short port)
0021         : m_serviceName(name)
0022         , m_type(type)
0023         , m_domain(domain)
0024         , m_hostName(host)
0025         , m_port(port)
0026     {
0027     }
0028 
0029     virtual ~ServiceBasePrivate()
0030     {
0031     }
0032 
0033     QString m_serviceName;
0034     QString m_type;
0035     QString m_domain;
0036     QString m_hostName;
0037     unsigned short m_port;
0038 
0039     /**
0040     Map of TXT properties
0041      */
0042     QMap<QString, QByteArray> m_textData;
0043 };
0044 }
0045 #endif