org.kde.koala
public class KFileShare extends Object implements QtSupport
UNKNOWN: Common functionality for the file sharing (communication with the backend)
Field Summary | |
---|---|
static int | Advanced |
static int | Authorized |
static int | ErrorNotFound |
static int | NotInitialized |
static int | Simple
The used share mode.
|
static int | UserNotAllowed |
Constructor Summary | |
---|---|
protected | KFileShare(Class dummy) |
KFileShare() |
Method Summary | |
---|---|
static int | authorization()
Call this to know if the current user is authorized to share directories |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
static String | fileShareGroup()
Returns the group that is used for file sharing.
|
protected void | finalize() Deletes the wrapped C++ instance |
static String | findExe(String exeName) |
static boolean | isDirectoryShared(String path)
Call this to know if a directory is currently shared |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static boolean | isRestricted()
Returns whether file sharing is restricted.
|
static boolean | nfsEnabled()
Returns whether NFS is enabled |
static void | readConfig()
Reads the file share configuration file |
static void | readShareList()
Reads the list of shared folders |
static boolean | sambaEnabled()
Returns whether Samba is enabled |
static boolean | setShared(String path, boolean shared)
Uses a suid perl script to share the given path
with NFS and Samba |
static int | shareMode()
Returns the configured share mode |
static boolean | sharingEnabled()
Returns whether sharing is enabled
If this is false, file sharing is disabled and
nobody can share files. |
UNKNOWN: The used share mode.
UNKNOWN: Call this to know if the current user is authorized to share directories
UNKNOWN: Returns the group that is used for file sharing.
UNKNOWN: Call this to know if a directory is currently shared
UNKNOWN: Returns whether file sharing is restricted.
UNKNOWN: Returns whether NFS is enabled
UNKNOWN: Reads the file share configuration file
UNKNOWN: Reads the list of shared folders
UNKNOWN: Returns whether Samba is enabled
Parameters: path the path to share shared whether the path should be shared or not
Returns: whether the perl script was successful
UNKNOWN: Uses a suid perl script to share the given path with NFS and Samba
UNKNOWN: Returns the configured share mode
UNKNOWN: Returns whether sharing is enabled If this is false, file sharing is disabled and nobody can share files.