# class KSambaShare

###

Module | kio
Namespace |
Class | KSambaShare
Inherits | QObject

Similar functionality like KFileShare, but works only for Samba and do not need any suid script. Singleton class, call instance() to get an instance.

### methods

- KSambaShare ( )

  returns ctor
  Not implemented

- changed ( )

  returns Nothing
  SIGNAL ("changed ()")

  Emitted when the smb.conf file has changed

- instance ( )

  returns KSambaShare
  static

  Returns the one and only instance of KSambaShare

- isDirectoryShared (path)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  path | QString |

  Whether or not the given path is shared by Samba.

  path - the path to check if it is shared by Samba. Returns whether the given path is shared by Samba.

- sharedDirectories ( )

  returns QStringList

  Returns a list of all directories shared by Samba. The resulting list is not sorted. Returns a list of all directories shared by Samba.

- smbConfPath ( )

  returns QString

  Returns the path to the used smb.conf file or null if no file was found