KIO
Go to the documentation of this file.
21#include <QtCore/QRegExp>
22#include <QtCore/QFileInfo>
23#include <QtCore/QStringList>
89 if (!dd->name.isEmpty()) {
110 dd->comment = comment;
137 if (dd->name.isEmpty()) {
139 }
else if (dd->path.isEmpty()) {
148 if (dd->name.isEmpty()) {
157 if (&other !=
this) {
166 return other.dd == dd;
171 return !(&other ==
this);
This class represents a Samba user share.
QString acl() const
Returns a containing a string describing the permission added to the users, such as "[DOMAIN\]usernam...
KSambaShareData::UserShareError setPath(const QString &path)
Set the path for the share.
KSambaShareData::UserShareError setAcl(const QString &acl)
Sets the acl to the share.
KSambaShareData::UserShareError setGuestPermission(const GuestPermission &permission=KSambaShareData::GuestsNotAllowed)
Flags if guest is allowed or not to access the share.
bool operator==(const KSambaShareData &other) const
KSambaShareData::GuestPermission guestPermission() const
KSambaShareData::UserShareError remove()
Unshare the folder held by the object.
KSambaShareData::UserShareError setComment(const QString &comment)
Sets the comment for the share.
bool operator!=(const KSambaShareData &other) const
KSambaShareData & operator=(const KSambaShareData &other)
KSambaShareData::UserShareError save()
Share the folder with the information that has been set.
KSambaShareData::UserShareError setName(const QString &name)
Sets the share name.
static KSambaShare * instance()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by
doxygen 1.9.8 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.