21 #include <QtCore/QRegExp> 22 #include <QtCore/QFileInfo> 23 #include <QtCore/QStringList> 89 if (!dd->name.isEmpty()) {
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);
KSambaShareData::UserShareError remove()
Unshare the folder held by the object.
KSambaShareData::UserShareError save()
Share the folder with the information that has been set.
KSambaShareData & operator=(const KSambaShareData &other)
This class represents a Samba user share.
static KSambaShare * instance()
bool operator==(const KSambaShareData &other) const
KSambaShareData::UserShareError setName(const QString &name)
Sets the share name.
KSambaShareData::UserShareError setComment(const QString &comment)
Sets the comment for the share.
KSambaShareData::UserShareError setGuestPermission(const GuestPermission &permission=KSambaShareData::GuestsNotAllowed)
Flags if guest is allowed or not to access the share.
KSambaShareData::GuestPermission guestPermission() const
KSambaShareData::UserShareError setPath(const QString &path)
Set the path for the share.
QString acl() const
Returns a containing a string describing the permission added to the users, such as "[DOMAIN\]usernam...
KSambaShareData::UserShareError setAcl(const QString &acl)
Sets the acl to the share.
bool operator!=(const KSambaShareData &other) const