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

KIO

ksambashare.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
00003    Copyright 2010 Rodrigo Belem <rclbelem@gmail.com>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef ksambashare_h
00021 #define ksambashare_h
00022 
00023 #include <QtCore/QObject>
00024 #include <kio/kio_export.h>
00025 
00026 class KSambaShareData;
00027 class KSambaSharePrivate;
00028 
00033 class KIO_EXPORT KSambaShare : public QObject
00034 {
00035     Q_OBJECT
00036 
00037 public:
00041     static KSambaShare *instance();
00042 
00050     bool isDirectoryShared(const QString &path) const;
00051 
00058     QStringList sharedDirectories() const;
00059 
00069     bool isShareNameAvailable(const QString &name) const;
00070 
00079     QStringList shareNames() const;
00080 
00091     KSambaShareData getShareByName(const QString &name) const;
00092 
00103     QList<KSambaShareData> getSharesByPath(const QString &path) const;
00104 
00105     virtual ~KSambaShare();
00106 
00115     KDE_DEPRECATED QString smbConfPath() const;
00116 
00117 Q_SIGNALS:
00121     void changed();
00122 
00123 private:
00124     KSambaShare();
00125 
00126     KSambaSharePrivate * const d_ptr;
00127     Q_DECLARE_PRIVATE(KSambaShare)
00128     friend class KSambaShareData;
00129 
00130     Q_PRIVATE_SLOT(d_func(), void _k_slotFileChange(const QString &))
00131 };
00132 
00133 #endif

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

Skip menu "kdelibs"
  • 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
Generated for kdelibs by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal