kdelibs/kdecore/sycoca/kprotocolinfo_p.h
Ivailo Monev d4fb98cc28 generic: KIO protocols classification optimization
unfortunate as it is the class for getting protocol information is not
part of kio library so generic..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-14 09:54:36 +03:00

60 lines
1.7 KiB
C++

/* This file is part of the KDE libraries
Copyright (C) 1999 Torben Weis <weis@kde.org>
Copyright (C) 2000-2001 Waldo Bastian <bastian@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KPROTOCOLINFOPRIVATE_H
#define KPROTOCOLINFOPRIVATE_H
#include "kprotocolinfo.h"
#include <ksycocaentry_p.h>
class KProtocolInfoPrivate : public KSycocaEntryPrivate
{
public:
K_SYCOCATYPE( KST_KProtocolInfo, KSycocaEntryPrivate )
KProtocolInfoPrivate(const QString &path, KProtocolInfo *q_)
: KSycocaEntryPrivate(path), q(q_)
{
}
KProtocolInfoPrivate(QDataStream& _str, int offset, KProtocolInfo *q_)
: KSycocaEntryPrivate(_str, offset), q(q_)
{
}
virtual void save(QDataStream &s);
virtual QString name() const
{
return q->m_name;
}
KProtocolInfo *q;
QString docPath;
bool local;
bool showPreviews;
bool canRenameFromFile;
bool canRenameToFile;
bool canDeleteRecursive;
KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying;
int maxSlavesPerHost;
};
#endif