20 #ifndef TDEFILESHARE_H
21 #define TDEFILESHARE_H
24 #include <tdelibs_export.h>
32 class KFileSharePrivate :
public TQObject
40 static KFileSharePrivate *
self();
41 static KFileSharePrivate *_self;
43 void slotFileChange(
const TQString &);
59 static void readConfig();
64 static void readShareList();
70 static int isDirectoryShared(
const TQString& path );
72 enum Authorization { NotInitialized, ErrorNotFound, Authorized, UserNotAllowed };
76 static Authorization authorization();
78 static TQString findExe(
const char* exeName );
87 static bool setShared(
const TQString& path,
bool shared );
92 static bool SuSEsetShared(
const TQString& path,
bool shared,
bool ro );
108 static bool sharingEnabled();
116 static bool isRestricted();
123 static TQString fileShareGroup();
128 static ShareMode shareMode();
133 static bool sambaEnabled();
138 static bool nfsEnabled();
144 static bool sambaActive();
150 static bool nfsActive();
153 static Authorization s_authorization;
155 static TQMap<TQString,TQString>* s_shareMap;
156 static ShareMode s_shareMode;
157 static bool s_sambaEnabled;
158 static bool s_nfsEnabled;
159 static bool s_restricted;
160 static TQString s_fileShareGroup;
161 static bool s_sharingEnabled;
Watch directories and files for changes.
Common functionality for the file sharing (communication with the backend)
ShareMode
The used share mode.