Go to the documentation of this file.
23#include <QtCore/QObject>
33class KIO_EXPORT KSambaShare :
public QObject
105 virtual ~KSambaShare();
127 Q_DECLARE_PRIVATE(KSambaShare)
130 Q_PRIVATE_SLOT(d_func(),
void _k_slotFileChange(const QString &))
This class represents a Samba user share.
QString smbConfPath() const
Returns the path to the used smb.conf file or empty string if no file was found.
bool isShareNameAvailable(const QString &name) const
Tests that a share name is valid and does not conflict with system users names or shares.
friend class KSambaShareData
KSambaShareData getShareByName(const QString &name) const
Returns the KSambaShareData object of the share name.
QList< KSambaShareData > getSharesByPath(const QString &path) const
Returns a list of KSambaShareData matching the path.
QStringList shareNames() const
Returns the list of available shares.
void changed()
Emitted when a share is updated, added or removed.
bool isDirectoryShared(const QString &path) const
Whether or not the given path is shared by Samba.
QStringList sharedDirectories() const
Returns a list of all directories shared by local users in Samba.
static KSambaShare * instance()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.