Commit 394dc542 authored by Kevin Funk's avatar Kevin Funk

Modernize: Use nullptr

parent 7c75eef8
......@@ -75,7 +75,7 @@ KArchive *ArchiveProtocol::createArchive( const QString & proto, const QString &
return new KZip( archiveFile );
} else {
qCWarning(KIO_ARCHIVE_LOG) << "Protocol" << proto << "not supported by this IOSlave" ;
return 0L;
return nullptr;
}
}
......
......@@ -46,7 +46,7 @@ using namespace KIO;
ArchiveProtocolBase::ArchiveProtocolBase( const QByteArray &proto, const QByteArray &pool, const QByteArray &app ) : SlaveBase( proto, pool, app )
{
qCDebug(KIO_ARCHIVE_LOG);
m_archiveFile = 0L;
m_archiveFile = nullptr;
}
ArchiveProtocolBase::~ArchiveProtocolBase()
......@@ -86,7 +86,7 @@ bool ArchiveProtocolBase::checkNewFile( const QUrl & url, QString & path, KIO::E
{
m_archiveFile->close();
delete m_archiveFile;
m_archiveFile = 0L;
m_archiveFile = nullptr;
}
// Find where the tar file is in the full path
......@@ -163,7 +163,7 @@ bool ArchiveProtocolBase::checkNewFile( const QUrl & url, QString & path, KIO::E
{
qCDebug(KIO_ARCHIVE_LOG) << "Opening" << archiveFile << "failed.";
delete m_archiveFile;
m_archiveFile = 0L;
m_archiveFile = nullptr;
errorNum = KIO::ERR_CANNOT_OPEN_FOR_READING;
return false;
}
......@@ -228,7 +228,7 @@ void ArchiveProtocolBase::listDir( const QUrl & url )
finished();
// And let go of the tar file - for people who want to unmount a cdrom after that
delete m_archiveFile;
m_archiveFile = 0L;
m_archiveFile = nullptr;
return;
}
......@@ -340,7 +340,7 @@ void ArchiveProtocolBase::stat( const QUrl & url )
// And let go of the tar file - for people who want to unmount a cdrom after that
delete m_archiveFile;
m_archiveFile = 0L;
m_archiveFile = nullptr;
return;
}
......
......@@ -98,8 +98,8 @@
#define ENDLINE '\n'
#endif
static char *sshPath = NULL;
static char *suPath = NULL;
static char *sshPath = nullptr;
static char *suPath = nullptr;
// disabled: currently not needed. Didn't work reliably.
// static int isOpenSSH = 0;
......@@ -223,7 +223,7 @@ fishProtocol::fishProtocol(const QByteArray &pool_socket, const QByteArray &app_
mimeTypeSent(false)
{
myDebug( << "fishProtocol::fishProtocol()");
if (sshPath == NULL) {
if (sshPath == nullptr) {
// disabled: currently not needed. Didn't work reliably.
// isOpenSSH = !system("ssh -V 2>&1 | grep OpenSSH > /dev/null");
#ifdef Q_OS_WIN
......@@ -232,7 +232,7 @@ fishProtocol::fishProtocol(const QByteArray &pool_socket, const QByteArray &app_
sshPath = strdup(QFile::encodeName(QStandardPaths::findExecutable("ssh")));
#endif
}
if (suPath == NULL) {
if (suPath == nullptr) {
suPath = strdup(QFile::encodeName(QStandardPaths::findExecutable("su")));
}
childPid = 0;
......@@ -249,7 +249,7 @@ fishProtocol::fishProtocol(const QByteArray &pool_socket, const QByteArray &app_
connectionAuth.keepPassword = true;
connectionAuth.url.setScheme("fish");
outBufPos = -1;
outBuf = NULL;
outBuf = nullptr;
outBufLen = 0;
udsType = 0;
......@@ -355,7 +355,7 @@ close_master:
ti.c_cflag = CLOCAL|CREAD|CS8;
ti.c_cc[VMIN] = 1;
return openpty(fd,fd+1,NULL,&ti,NULL);
return openpty(fd,fd+1,nullptr,&ti,nullptr);
#else
#ifdef __GNUC__
#warning "No tty support available. Password dialog won't work."
......@@ -464,7 +464,7 @@ bool fishProtocol::connectionStart() {
setpgid(0,0);
if (local) {
execl(suPath, "su", "-", connectionUser.toLatin1().constData(), "-c", "cd ~;echo FISH:;exec /bin/sh -c \"if env true 2>/dev/null; then env PS1= PS2= TZ=UTC LANG=C LC_ALL=C LOCALE=C /bin/sh; else PS1= PS2= TZ=UTC LANG=C LC_ALL=C LOCALE=C /bin/sh; fi\"", (void *)0);
execl(suPath, "su", "-", connectionUser.toLatin1().constData(), "-c", "cd ~;echo FISH:;exec /bin/sh -c \"if env true 2>/dev/null; then env PS1= PS2= TZ=UTC LANG=C LC_ALL=C LOCALE=C /bin/sh; else PS1= PS2= TZ=UTC LANG=C LC_ALL=C LOCALE=C /bin/sh; fi\"", (void *)nullptr);
} else {
#define common_args "-l", connectionUser.toLatin1().constData(), "-x", "-e", "none", \
"-q", connectionHost.toLatin1().constData(), \
......@@ -498,7 +498,7 @@ bool fishProtocol::connectionStart() {
struct timeval timeout;
timeout.tv_sec = 0;
timeout.tv_usec = 1000;
rc = select(childFd+1, &rfds, &wfds, NULL, &timeout);
rc = select(childFd+1, &rfds, &wfds, nullptr, &timeout);
if (rc < 0) {
if (errno == EINTR)
continue;
......@@ -522,7 +522,7 @@ bool fishProtocol::connectionStart() {
}
if (outBufPos >= outBufLen) {
outBufPos = -1;
outBuf = NULL;
outBuf = nullptr;
outBufLen = 0;
}
} else if (FD_ISSET(childFd,&rfds)) {
......@@ -749,7 +749,7 @@ void fishProtocol::shutdownConnection(bool forced){
childPid->terminate();
#else
int killStatus = kill(childPid,SIGTERM); // We may not have permission...
if (killStatus == 0) waitpid(childPid, 0, 0);
if (killStatus == 0) waitpid(childPid, nullptr, 0);
#endif
childPid = 0;
#ifndef Q_OS_WIN
......@@ -763,7 +763,7 @@ void fishProtocol::shutdownConnection(bool forced){
}
}
outBufPos = -1;
outBuf = NULL;
outBuf = nullptr;
outBufLen = 0;
qlist.clear();
commandList.clear();
......@@ -1096,7 +1096,7 @@ void fishProtocol::manageConnection(const QString &l) {
case FISH_APPEND:
rawWrite = sendLen;
//myDebug( << "sending " << sendLen);
writeChild(NULL,0);
writeChild(nullptr,0);
break;
default : break;
}
......@@ -1427,7 +1427,7 @@ with .fishsrv.pl typically running on another computer. */
struct timeval timeout;
timeout.tv_sec = 0;
timeout.tv_usec = 1000;
rc = select(childFd+1, &rfds, &wfds, NULL, &timeout);
rc = select(childFd+1, &rfds, &wfds, nullptr, &timeout);
if (rc < 0) {
if (errno == EINTR)
continue;
......@@ -1468,7 +1468,7 @@ with .fishsrv.pl typically running on another computer. */
}
if (outBufPos >= outBufLen) {
outBufPos = -1;
outBuf = NULL;
outBuf = nullptr;
sent();
}
}
......
......@@ -51,9 +51,9 @@ class KFileAudioPreview::Private
{
public:
Private()
: player(0)
, audioOutput(0)
, videoWidget(0)
: player(nullptr)
, audioOutput(nullptr)
, videoWidget(nullptr)
{
}
......@@ -129,7 +129,7 @@ void KFileAudioPreview::clearPreview()
{
if (d->player) {
delete d->player;
d->player = 0;
d->player = nullptr;
d->controls->setEnabled(false);
}
}
......
......@@ -35,7 +35,7 @@ class KFileAudioPreview : public KPreviewWidgetBase
Q_OBJECT
public:
explicit KFileAudioPreview(QWidget *parent = 0,
explicit KFileAudioPreview(QWidget *parent = nullptr,
const QVariantList &args = QVariantList());
~KFileAudioPreview();
......
......@@ -81,7 +81,7 @@ void MediaControls::setAudioOutput(AudioOutput *audioOutput)
Q_D(MediaControls);
d->volumeSlider.setAudioOutput(audioOutput);
d->updateVolumeSliderVisibility();
d->volumeSlider.setVisible(audioOutput != 0);
d->volumeSlider.setVisible(audioOutput != nullptr);
}
void MediaControls::setSeekSliderVisible(bool vis)
......@@ -105,7 +105,7 @@ void MediaControls::resizeEvent(QResizeEvent *)
void MediaControlsPrivate::updateVolumeSliderVisibility()
{
bool isWide = q_ptr->width() > playButton.sizeHint().width() + seekSlider.sizeHint().width() + volumeSlider.sizeHint().width();
bool hasAudio = volumeSlider.audioOutput() != 0;
bool hasAudio = volumeSlider.audioOutput() != nullptr;
volumeSlider.setVisible(isWide && hasAudio);
}
......@@ -130,7 +130,7 @@ void MediaControlsPrivate::_k_stateChanged(State newstate, State)
void MediaControlsPrivate::_k_mediaDestroyed()
{
media = 0;
media = nullptr;
}
} // namespace Phonon
......
......@@ -66,7 +66,7 @@ public:
/**
* Constructs a media control widget with a \p parent.
*/
explicit MediaControls(QWidget *parent = 0);
explicit MediaControls(QWidget *parent = nullptr);
~MediaControls();
bool isSeekSliderVisible() const;
......
......@@ -42,7 +42,7 @@ protected:
pauseButton(parent),
seekSlider(parent),
volumeSlider(parent),
media(0)
media(nullptr)
{
int size = parent->style()->pixelMetric(QStyle::PM_ToolBarIconSize);
QSize iconSize(size, size);
......
......@@ -46,7 +46,7 @@
using namespace KIO;
MANProtocol *MANProtocol::_self = 0;
MANProtocol *MANProtocol::_self = nullptr;
#define SGML2ROFF_DIRS "/usr/lib/sgml"
......@@ -141,7 +141,7 @@ MANProtocol *MANProtocol::self() { return _self; }
MANProtocol::~MANProtocol()
{
_self = 0;
_self = nullptr;
}
void MANProtocol::parseWhatIs( QMap<QString, QString> &i, QTextStream &t, const QString &mark )
......@@ -330,7 +330,7 @@ QStringList MANProtocol::findPages(const QString &_section,
const QString man = QString("man");
const QString sman = QString("sman");
while ( (ep = ::readdir( dp )) != 0L ) {
while ( (ep = ::readdir( dp )) != nullptr ) {
const QString file = QFile::decodeName( ep->d_name );
QString sect;
......@@ -387,7 +387,7 @@ void MANProtocol::findManPagesInSection(const QString &dir, const QString &title
struct dirent *ep;
while ( (ep = ::readdir( dp )) != 0L ) {
while ( (ep = ::readdir( dp )) != nullptr ) {
if ( ep->d_name[0] != '.' ) {
QString name = QFile::decodeName( ep->d_name );
......@@ -513,7 +513,7 @@ void MANProtocol::get(const QUrl& url )
scan_man_page(buf);
delete [] buf;
output(0); // flush
output(nullptr); // flush
m_outputBuffer.close();
data(m_outputBuffer.buffer());
......@@ -574,7 +574,7 @@ char *MANProtocol::readManPage(const char *_filename)
if ( !fd || !fd->open(QIODevice::ReadOnly))
{
delete fd;
return 0;
return nullptr;
}
array = fd->readAll();
qCDebug(KIO_MAN_LOG) << "read " << array.size();
......@@ -583,7 +583,7 @@ char *MANProtocol::readManPage(const char *_filename)
}
if (array.isEmpty())
return 0;
return nullptr;
// as we do not know in which encoding the man source is, try to automatically
// detect it and always return it as UTF-8
......@@ -920,7 +920,7 @@ void MANProtocol::constructPath(QStringList& constr_path, QStringList constr_cat
"/usr/sunpc/man",
"/usr/ncd/man",
"/usr/newsprint/man",
NULL };
nullptr };
int i = 0;
......@@ -1235,11 +1235,11 @@ void MANProtocol::showIndex(const QString& section)
end--;
if ( end < begin )
manpage_end = 0;
manpage_end = nullptr;
else
manpage_end = end;
if (NULL == manpage_end)
if (nullptr == manpage_end)
{
// no '.' ending ???
// set the pointer past the end of the filename
......@@ -1267,7 +1267,7 @@ void MANProtocol::showIndex(const QString& section)
// While printing avoid duplicate man page names
//
struct man_index_t dummy_index = {0l,0l,0};
struct man_index_t dummy_index = {nullptr,nullptr,0};
struct man_index_t *last_index = &dummy_index;
// sort and print
......
......@@ -35,7 +35,7 @@ K_PLUGIN_FACTORY(KManPartFactory, registerPlugin<KManPart>();)
KManPart::KManPart(QWidget * parentWidget, QObject* parent, const QVariantList&)
: KHTMLPart(parentWidget, parent)
,m_job(0)
,m_job(nullptr)
{
setComponentData(createAboutData());
m_extension = new KParts::BrowserExtension(this);
......@@ -53,7 +53,7 @@ bool KManPart::openUrl( const QUrl &url )
bool KManPart::openFile()
{
if (m_job!=0)
if (m_job!=nullptr)
m_job->kill();
begin();
......@@ -75,7 +75,7 @@ void KManPart::readData(KIO::Job * , const QByteArray & data)
void KManPart::jobDone( KJob *)
{
m_job=0;
m_job=nullptr;
end();
}
......
This diff is collapsed.
......@@ -120,7 +120,7 @@ void DeviceCache::checkDevice(Solid::Device solidDevice)
const uint32_t solidBusNum = properties.value ( QLatin1String ( "BUSNUM" ) ).toUInt();
const uint32_t solidDevNum = properties.value ( QLatin1String ( "DEVNUM" ) ).toUInt();
LIBMTP_raw_device_t *rawdevices = 0;
LIBMTP_raw_device_t *rawdevices = nullptr;
int numrawdevices;
LIBMTP_error_number_t err;
......
......@@ -60,7 +60,7 @@ class DeviceCache : public QEventLoop
Q_OBJECT
public:
DeviceCache(qint32 timeout, QObject *parent = 0);
DeviceCache(qint32 timeout, QObject *parent = nullptr);
virtual ~DeviceCache();
QHash< QString, CachedDevice * > getAll();
......
......@@ -39,7 +39,7 @@ class FileCache : public QObject
Q_OBJECT
public:
explicit FileCache(QObject *parent = 0);
explicit FileCache(QObject *parent = nullptr);
/**
* Returns the ID of the item at the given path, else 0.
......
......@@ -320,7 +320,7 @@ void MTPSlave::listDir(const QUrl &url)
LIBMTP_devicestorage_t *storage = (LIBMTP_devicestorage_t *)pair.first;
qCDebug(LOG_KIO_MTP) << "We have a storage:" << (storage == NULL);
qCDebug(LOG_KIO_MTP) << "We have a storage:" << (storage == nullptr);
files = getFiles(device, storage->id);
} else {
......@@ -536,7 +536,7 @@ void MTPSlave::put(const QUrl &url, int, JobFlags flags)
file->modificationdate = QDateTime::currentDateTime().toTime_t();
file->storage_id = parent->storage_id;
int ret = LIBMTP_Send_File_From_File_Descriptor(device, temp.handle(), file, NULL, NULL);
int ret = LIBMTP_Send_File_From_File_Descriptor(device, temp.handle(), file, nullptr, nullptr);
LIBMTP_destroy_file_t(file);
if (ret != 0) {
......
......@@ -258,11 +258,11 @@ LIBMTP_filetype_t getFiletype(const QString &filename)
QMap<QString, LIBMTP_devicestorage_t *> getDevicestorages(LIBMTP_mtpdevice_t *&device)
{
qCDebug(LOG_KIO_MTP) << "[ENTER]" << (device == 0);
qCDebug(LOG_KIO_MTP) << "[ENTER]" << (device == nullptr);
QMap<QString, LIBMTP_devicestorage_t *> storages;
if (device) {
for (LIBMTP_devicestorage_t *storage = device->storage; storage != NULL; storage = storage->next) {
for (LIBMTP_devicestorage_t *storage = device->storage; storage != nullptr; storage = storage->next) {
// char *storageIdentifier = storage->VolumeIdentifier;
char *storageDescription = storage->StorageDescription;
......@@ -290,7 +290,7 @@ QMap<QString, LIBMTP_file_t *> getFiles(LIBMTP_mtpdevice_t *&device, uint32_t st
QMap<QString, LIBMTP_file_t *> fileMap;
LIBMTP_file_t *files = LIBMTP_Get_Files_And_Folders(device, storage_id, parent_id), *file;
for (file = files; file != NULL; file = file->next) {
for (file = files; file != nullptr; file = file->next) {
fileMap.insert(QString::fromUtf8(file->filename), file);
// qCDebug(LOG_KIO_MTP) << "found file" << file->filename;
}
......
......@@ -37,7 +37,7 @@ class NetworkDBusInterface: public QDBusAbstractInterface
Q_OBJECT
public:
NetworkDBusInterface( const QString& service, const QString& path, const QDBusConnection& connection, QObject* parent = 0 );
NetworkDBusInterface( const QString& service, const QString& path, const QDBusConnection& connection, QObject* parent = nullptr );
virtual ~NetworkDBusInterface();
public Q_SLOTS:
......
......@@ -35,7 +35,7 @@
NetworkThread::NetworkThread()
: QThread()
, mNetwork( 0 )
, mNetwork( nullptr )
, mContinue( true )
{
}
......
......@@ -40,7 +40,7 @@ class KioSlaveNotifier : public QObject
Q_OBJECT
public:
explicit KioSlaveNotifier( Network* network, QObject* parent = 0 );
explicit KioSlaveNotifier( Network* network, QObject* parent = nullptr );
virtual ~KioSlaveNotifier();
public: // for debugging, remove also from adaptor.xml
......
......@@ -43,7 +43,7 @@ namespace Mollet
DNSSDNetworkBuilder::DNSSDNetworkBuilder( NetworkPrivate* networkPrivate )
: AbstractNetworkBuilder()
, mNetworkPrivate( networkPrivate )
, mServiceTypeBrowser( 0 )
, mServiceTypeBrowser( nullptr )
{
}
......@@ -123,8 +123,8 @@ void DNSSDNetworkBuilder::addService( KDNSSD::RemoteService::Ptr service )
hostName.clear();
// device TODO: only search for if we can create the service?
NetDevicePrivate* d = 0;
const NetDevice* deviceOfService = 0;
NetDevicePrivate* d = nullptr;
const NetDevice* deviceOfService = nullptr;
foreach( const NetDevice& device, deviceList )
{
const QString deviceHostName = device.hostName();
......@@ -183,7 +183,7 @@ void DNSSDNetworkBuilder::addService( KDNSSD::RemoteService::Ptr service )
const QString serviceType = service->type();
NetServicePrivate* netServicePrivate = 0;
NetServicePrivate* netServicePrivate = nullptr;
// do a priority based lookup who can build the object
// TODO: priorisation
foreach( const DNSSDNetSystemAble* factory, mNetSystemFactoryList )
......
......@@ -55,97 +55,97 @@ struct DNSSDServiceDatum {
static const DNSSDServiceDatum DNSSDServiceData[] =
{
// file services
{ "_ftp._tcp", "ftp", "folder-remote", true, "ftp", "path", 0, "u", "p" },
{ "_sftp-ssh._tcp", "sftp-ssh", "folder-remote", true, "sftp", 0, 0, "u", "p" },
{ "_ftps._tcp", "ftps", "folder-remote", true, "ftps", "path", 0, "u", "p" },
{ "_nfs._tcp", "nfs", "folder-remote", true, "nfs", "path", 0, 0, 0 },
{ "_afpovertcp._tcp", "afpovertcp", "folder-remote", true, "afp", "path", 0, 0, 0 },
{ "_smb._tcp", "smb", "folder-remote", true, "smb", "path", 0, "u", "p" },
{ "_webdav._tcp", "webdav", "folder-remote", true, "webdav", "path", 0, "u", "p" },
{ "_webdavs._tcp", "webdavs", "folder-remote", true, "webdavs", "path", 0, "u", "p" },
{ "_svn._tcp", "svn", "folder-sync", true, 0, 0, 0, 0, 0 },
{ "_rsync._tcp", "rsync", "folder-sync", true, 0, 0, 0, 0, 0 },
{ "_ftp._tcp", "ftp", "folder-remote", true, "ftp", "path", nullptr, "u", "p" },
{ "_sftp-ssh._tcp", "sftp-ssh", "folder-remote", true, "sftp", nullptr, nullptr, "u", "p" },
{ "_ftps._tcp", "ftps", "folder-remote", true, "ftps", "path", nullptr, "u", "p" },
{ "_nfs._tcp", "nfs", "folder-remote", true, "nfs", "path", nullptr, nullptr, nullptr },
{ "_afpovertcp._tcp", "afpovertcp", "folder-remote", true, "afp", "path", nullptr, nullptr, nullptr },
{ "_smb._tcp", "smb", "folder-remote", true, "smb", "path", nullptr, "u", "p" },
{ "_webdav._tcp", "webdav", "folder-remote", true, "webdav", "path", nullptr, "u", "p" },
{ "_webdavs._tcp", "webdavs", "folder-remote", true, "webdavs", "path", nullptr, "u", "p" },
{ "_svn._tcp", "svn", "folder-sync", true, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_rsync._tcp", "rsync", "folder-sync", true, nullptr, nullptr, nullptr, nullptr, nullptr },
// email
{ "_imap._tcp", "imap", "email", false, 0, 0, 0, 0, 0 },
{ "_pop3._tcp", "pop3", "email", false, "pop3", 0, 0, 0, 0 },
{ "_imap._tcp", "imap", "email", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_pop3._tcp", "pop3", "email", false, "pop3", nullptr, nullptr, nullptr, nullptr },
// shell services
{ "_ssh._tcp", "ssh", "terminal", false, "ssh", 0, 0, "u", "p" },
{ "_telnet._tcp", "telnet", "terminal", false, "telnet", 0, 0, "u", "p" },
{ "_rfb._tcp", "rfb", "krfb", false, "vnc", "path", 0, "u", "p" },
{ "_rdp._tcp", "rdp", "krfb", false, "rdp", 0, 0, 0, 0 },
{ "_ssh._tcp", "ssh", "terminal", false, "ssh", nullptr, nullptr, "u", "p" },
{ "_telnet._tcp", "telnet", "terminal", false, "telnet", nullptr, nullptr, "u", "p" },
{ "_rfb._tcp", "rfb", "krfb", false, "vnc", "path", nullptr, "u", "p" },
{ "_rdp._tcp", "rdp", "krfb", false, "rdp", nullptr, nullptr, nullptr, nullptr },
// other standard services
{ "_http._tcp", "http", "folder-html", false, "http", "path", 0, "u", "p" },
{ "_ntp._udp", "ntp", "xclock", false, 0, 0, 0, 0, 0 },
{ "_ldap._tcp", "ldap", "user-group-properties", false, "ldap", 0, 0, 0, 0 },
{ "_http._tcp", "http", "folder-html", false, "http", "path", nullptr, "u", "p" },
{ "_ntp._udp", "ntp", "xclock", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_ldap._tcp", "ldap", "user-group-properties", false, "ldap", nullptr, nullptr, nullptr, nullptr },
// user2user (chat, collaboration)
{ "_xmpp-server._tcp", "xmpp-server", "xchat", false, "jabber", 0, 0, 0, 0 },
{ "_presence._tcp", "presence", "im-user", false, "presence", 0, 0, 0, 0 },
{ "_lobby._tcp", "lobby", "document-edit", false, 0, 0, 0, 0, 0 },
{ "_giver._tcp", "giver", "folder-remote", false, 0, 0, 0, 0, 0 },
{ "_sip._udp", "sip", "phone", false, 0, 0, 0, 0, 0 },
{ "_h323._tcp", "h323", "phone", false, 0, 0, 0, 0, 0 },
{ "_skype._tcp", "skype", "phone", false, 0, 0, 0, 0, 0 },
{ "_xmpp-server._tcp", "xmpp-server", "xchat", false, "jabber", nullptr, nullptr, nullptr, nullptr },
{ "_presence._tcp", "presence", "im-user", false, "presence", nullptr, nullptr, nullptr, nullptr },
{ "_lobby._tcp", "lobby", "document-edit", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_giver._tcp", "giver", "folder-remote", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_sip._udp", "sip", "phone", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_h323._tcp", "h323", "phone", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_skype._tcp", "skype", "phone", false, nullptr, nullptr, nullptr, nullptr, nullptr },
// printing
{ "_ipp._tcp", "ipp", "printer", false, "ipp", "path", 0, "u", "p" },
{ "_printer._tcp", "printer", "printer", false, 0, 0, 0, 0, 0 },
{ "_pdl-datastream._tcp", "pdl-datastream", "printer", false, 0, 0, 0, 0, 0 },
{ "_ipp._tcp", "ipp", "printer", false, "ipp", "path", nullptr, "u", "p" },
{ "_printer._tcp", "printer", "printer", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_pdl-datastream._tcp", "pdl-datastream", "printer", false, nullptr, nullptr, nullptr, nullptr, nullptr },
// KDE workspace
{ "_plasma._tcp", "plasma", "plasma", false, "plasma", "name", "icon", 0, 0 },
{ "_plasma._tcp", "plasma", "plasma", false, "plasma", "name", "icon", nullptr, nullptr },
// KDE games
{ "_kbattleship._tcp", "kbattleship", "kbattleship", false, "kbattleship", 0, 0, 0, 0 },
{ "_lskat._tcp", "lskat", "lskat", false, 0, 0, 0, 0, 0 },
{ "_kfourinline._tcp", "kfourinline", "kfourinline", false, 0, 0, 0, 0, 0 },
{ "_ksirk._tcp", "ksirk", "ksirk", false, 0, 0, 0, 0, 0 },
{ "_kbattleship._tcp", "kbattleship", "kbattleship", false, "kbattleship", nullptr, nullptr, nullptr, nullptr },
{ "_lskat._tcp", "lskat", "lskat", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_kfourinline._tcp", "kfourinline", "kfourinline", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_ksirk._tcp", "ksirk", "ksirk", false, nullptr, nullptr, nullptr, nullptr, nullptr },
// hardware
{ "_pulse-server._tcp","pulse-server","audio-card", false, 0, 0, 0, 0, 0 },
{ "_pulse-source._tcp","pulse-source","audio-input-line", false, 0, 0, 0, 0, 0 },
{ "_pulse-sink._tcp", "pulse-sink", "speaker", false, 0, 0, 0, 0, 0 },
{ "_udisks-ssh._tcp", "udisks-ssh", "drive-harddisk", false, 0, 0, 0, 0, 0 },
{ "_libvirt._tcp", "libvirt", "computer", false, 0, 0, 0, 0, 0 },
{ "_airmouse._tcp", "airmouse", "input-mouse", false, 0, 0, 0, 0, 0 },
{ "_pulse-server._tcp","pulse-server","audio-card", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_pulse-source._tcp","pulse-source","audio-input-line", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_pulse-sink._tcp", "pulse-sink", "speaker", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_udisks-ssh._tcp", "udisks-ssh", "drive-harddisk", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_libvirt._tcp", "libvirt", "computer", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_airmouse._tcp", "airmouse", "input-mouse", false, nullptr, nullptr, nullptr, nullptr, nullptr },
// database
{ "_postgresql._tcp", "postgresql", "server-database", false, 0, 0, 0, 0, 0 },
{ "_couchdb_location._tcp", "couchdb_location", "server-database", false, 0, 0, 0, 0, 0 },
{ "_postgresql._tcp", "postgresql", "server-database", false, nullptr, nullptr, nullptr, nullptr, nullptr },
{ "_couchdb_location._tcp", "couchdb_location", "server-database", false, nullptr, nullptr, nullptr, nullptr, nullptr },
// else
{ "_realplayfavs._tcp","realplayfavs","favorites", false, 0, 0,