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

KIO

  • 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
26class KSambaShareData;
27class KSambaSharePrivate;
28
33class KIO_EXPORT KSambaShare : public QObject
34{
35 Q_OBJECT
36
37public:
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
117Q_SIGNALS:
121 void changed();
122
123private:
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
KSambaShareData
This class represents a Samba user share.
Definition: ksambasharedata.h:40
KSambaSharePrivate
Definition: ksambashare_p.h:32
KSambaShare
This class lists Samba user shares and monitors them for addition, update and removal.
Definition: ksambashare.h:34
KSambaShare::changed
void changed()
Emitted when a share is updated, added or removed.
QList
QObject
kio_export.h
name
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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