.TH "KFileShare" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFileShare \- Common functionality for the file sharing (communication with the backend) 
.PP
\fBSince:\fP
.RS 4
3.1. 
.RE
.PP
 

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kfileshare.h>\fP
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBAuthorization\fP { \fBNotInitialized\fP, \fBErrorNotFound\fP, \fBAuthorized\fP, \fBUserNotAllowed\fP }"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "void \fBreadConfig\fP ()"
.br
.RI "\fICalled on application startup, to initialize authorization and shareList Can also be called later, when the configuration changes. \fP"
.ti -1c
.RI "bool \fBisDirectoryShared\fP (const  \fBQString\fP &path)"
.br
.RI "\fICall this to know if a directory is currently shared. \fP"
.ti -1c
.RI "Authorization \fBauthorization\fP ()"
.br
.RI "\fICall this to know if the current user is authorized to share directories. \fP"
.ti -1c
.RI "\fBQString\fP \fBfindExe\fP (const  char *exeName)"
.br
.ti -1c
.RI "bool \fBsetShared\fP (const  \fBQString\fP &path, bool shared)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Common functionality for the file sharing (communication with the backend) 
.PP
\fBSince:\fP
.RS 4
3.1. 
.RE
.PP
Definition at line 49 of file kfileshare.h.
.SH "Member Function Documentation"
.PP 
.SS "void KFileShare::readConfig ()\fC [static]\fP"
.PP
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.
.PP
References KProcess::Block, KProcess::exitStatus(), KProcIO::fgets(), QString::isEmpty(), KProcess::normalExit(), and KProcIO::start().
.PP
Referenced by KFileSharePropsPlugin::applyChanges(), authorization(), and isDirectoryShared().
.SS "bool KFileShare::isDirectoryShared (const \fBQString\fP & path)\fC [static]\fP"
.PP
Call this to know if a directory is currently shared. Definition at line 129 of file kfileshare.cpp.
.PP
References QString::length(), and readConfig().
.PP
Referenced by KFileItem::overlays().
.SS "KFileShare::Authorization KFileShare::authorization ()\fC [static]\fP"
.PP
Call this to know if the current user is authorized to share directories. Definition at line 141 of file kfileshare.cpp.
.PP
References readConfig().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
