|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KFileShare
public class KFileShare
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 | |
---|---|
|
KFileShare()
|
protected |
KFileShare(java.lang.Class dummy)
|
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 java.lang.String |
fileShareGroup()
Returns the group that is used for file sharing. |
protected void |
finalize()
Deletes the wrapped C++ instance |
static java.lang.String |
findExe(java.lang.String exeName)
|
static boolean |
isDirectoryShared(java.lang.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(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NotInitialized
public static final int ErrorNotFound
public static final int Authorized
public static final int UserNotAllowed
public static final int Simple
public static final int Advanced
Constructor Detail |
---|
protected KFileShare(java.lang.Class dummy)
public KFileShare()
Method Detail |
---|
public static void readConfig()
public static void readShareList()
public static boolean isDirectoryShared(java.lang.String path)
public static int authorization()
public static java.lang.String findExe(java.lang.String exeName)
public static boolean setShared(java.lang.String path, boolean shared)
path
- the path to shareshared
- whether the path should be shared or not
public static boolean sharingEnabled()
public static boolean isRestricted()
public static java.lang.String fileShareGroup()
public static int shareMode()
public static boolean sambaEnabled()
public static boolean nfsEnabled()
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |