KFileShare Class Reference
Common functionality for the file sharing (communication with the backend)- Since:
- 3.1.
#include <kfileshare.h>
Collaboration diagram for KFileShare:

Public Types | |
enum | Authorization { NotInitialized, ErrorNotFound, Authorized, UserNotAllowed } |
Static Public Member Functions | |
void | readConfig () |
Called on application startup, to initialize authorization and shareList Can also be called later, when the configuration changes. | |
bool | isDirectoryShared (const QString &path) |
Call this to know if a directory is currently shared. | |
Authorization | authorization () |
Call this to know if the current user is authorized to share directories. | |
QString | findExe (const char *exeName) |
bool | setShared (const QString &path, bool shared) |
Detailed Description
Common functionality for the file sharing (communication with the backend)- Since:
- 3.1.
Definition at line 49 of file kfileshare.h.
Member Function Documentation
|
Called on application startup, to initialize authorization and shareList Can also be called later, when the configuration changes.
Definition at line 73 of file kfileshare.cpp. References KProcess::Block, KProcess::exitStatus(), KProcIO::fgets(), QString::isEmpty(), KProcess::normalExit(), and KProcIO::start(). Referenced by KFileSharePropsPlugin::applyChanges(), authorization(), and isDirectoryShared(). |
|
Call this to know if a directory is currently shared.
Definition at line 129 of file kfileshare.cpp. References QString::length(), and readConfig(). Referenced by KFileItem::overlays(). |
|
Call this to know if the current user is authorized to share directories.
Definition at line 141 of file kfileshare.cpp. References readConfig(). |
The documentation for this class was generated from the following files: