KIO
7#ifndef ksambasharedata_h
8#define ksambasharedata_h
10#include "kiocore_export.h"
11#include <QExplicitlySharedDataPointer>
15class KSambaSharePrivate;
16class KSambaShareDataPrivate;
27class KIOCORE_EXPORT KSambaShareData
30 enum GuestPermission {
37 UserShareExceedMaxShares,
43 UserSharePathNotExists,
44 UserSharePathNotDirectory,
45 UserSharePathNotAbsolute,
46 UserSharePathNotAllowed,
49 UserShareAclUserNotValid,
52 UserShareGuestsInvalid,
53 UserShareGuestsNotAllowed,
58 KSambaShareData(
const KSambaShareData &other);
150 KSambaShareData::UserShareError
setGuestPermission(
const GuestPermission &permission = KSambaShareData::GuestsNotAllowed);
157 KSambaShareData::UserShareError
save();
164 KSambaShareData::UserShareError
remove();
166 KSambaShareData &operator=(
const KSambaShareData &other);
167 bool operator==(
const KSambaShareData &other)
const;
168 bool operator!=(
const KSambaShareData &other)
const;
173 friend class KSambaSharePrivate;
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.
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.
KSambaShareData::UserShareError save()
Share the folder with the information that has been set.
KSambaShareData::UserShareError setName(const QString &name)
Sets the share name.
This class lists Samba user shares and monitors them for addition, update and removal.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:36 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.