• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KIO

  • sources
  • kde-4.14
  • kdelibs
  • kio
  • kio
ksambashare.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
3  Copyright 2010 Rodrigo Belem <rclbelem@gmail.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef ksambashare_h
21 #define ksambashare_h
22 
23 #include <QtCore/QObject>
24 #include <kio/kio_export.h>
25 
26 class KSambaShareData;
27 class KSambaSharePrivate;
28 
33 class KIO_EXPORT KSambaShare : public QObject
34 {
35  Q_OBJECT
36 
37 public:
41  static KSambaShare *instance();
42 
50  bool isDirectoryShared(const QString &path) const;
51 
58  QStringList sharedDirectories() const;
59 
69  bool isShareNameAvailable(const QString &name) const;
70 
79  QStringList shareNames() const;
80 
91  KSambaShareData getShareByName(const QString &name) const;
92 
103  QList<KSambaShareData> getSharesByPath(const QString &path) const;
104 
105  virtual ~KSambaShare();
106 
115  KDE_DEPRECATED QString smbConfPath() const;
116 
117 Q_SIGNALS:
121  void changed();
122 
123 private:
124  KSambaShare();
125 
126  KSambaSharePrivate * const d_ptr;
127  Q_DECLARE_PRIVATE(KSambaShare)
128  friend class KSambaShareData;
129 
130  Q_PRIVATE_SLOT(d_func(), void _k_slotFileChange(const QString &))
131 };
132 
133 #endif
kio_export.h
name
const char * name(StandardAction id)
KSambaShareData
This class represents a Samba user share.
Definition: ksambasharedata.h:39
KFileShare::isDirectoryShared
bool isDirectoryShared(const QString &path)
Call this to know if a directory is currently shared.
Definition: kfileshare.cpp:216
KSambaSharePrivate
Definition: ksambashare_p.h:31
QObject
QString
QList
QStringList
KSambaShare
This class lists Samba user shares and monitors them for addition, update and removal.
Definition: ksambashare.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal