Namespace KFileShare |
|
Common functionality for the file sharing (communication with the backend) |
|
Call this to know if the current user is authorized to share directories |
|
Returns the group that is used for file sharing. That is, all users in that group are allowed to share files if file sharing is restricted. |
|
Call this to know if a directory is currently shared |
|
Returns whether file sharing is restricted. If it is not restricted every user can shar files. If it is restricted only users in the configured file share group can share files. |
|
Returns whether NFS is enabled |
|
Reads the file share configuration file |
|
Reads the list of shared folders |
|
Returns whether Samba is enabled |
|
Uses a suid perl script to share the given path
with NFS and Samba
path - the path to share shared - whether the path should be shared or not Returns whether the perl script was successful |
|
Returns the configured share mode |
|
Returns whether sharing is enabled If this is false, file sharing is disabled and nobody can share files. |
NotInitialized | - | - | ||
ErrorNotFound | - | - | ||
Authorized | - | - | ||
UserNotAllowed | - | - |
The used share mode. Simple means that the simple sharing dialog is used and users can share only folders from there HOME folder. Advanced means that the advanced sharing dialog is used and users can share any folder.
Simple | - | - | ||
Advanced | - | - |