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

KIO

  • sources
  • kde-4.12
  • kdelibs
  • kio
  • kfile
kfilesharedialog.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (c) 2001 David Faure <faure@kde.org>
3  Copyright (c) 2001 Laurent Montel <lmontel@mandrakesoft.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 KFILESHAREDIALOG_H
21 #define KFILESHAREDIALOG_H
22 
23 #include <kpropertiesdialog.h>
24 class QRadioButton;
25 class QPushButton;
26 
31 class KIO_EXPORT KFileSharePropsPlugin : public KPropertiesDialogPlugin
32 {
33  Q_OBJECT
34 public:
35  KFileSharePropsPlugin( KPropertiesDialog *_props );
36  virtual ~KFileSharePropsPlugin();
37 
43  virtual void applyChanges();
44 
45  static bool supports( const KFileItemList& items );
46 
47  QWidget* page() const;
48 
49 protected Q_SLOTS:
50  void slotConfigureFileSharing();
51  void slotConfigureFileSharingDone();
52 
53 private:
54  void init();
55  bool setShared( const QString&path, bool shared );
56 
57  class Private;
58  Private* const d;
59 };
60 
61 #endif
QWidget
QPushButton
QString
KFileShare::setShared
bool setShared(const QString &path, bool shared)
Uses a suid perl script to share the given path with NFS and Samba.
Definition: kfileshare.cpp:235
kpropertiesdialog.h
KPropertiesDialogPlugin
A Plugin in the Properties dialog This is an abstract class.
Definition: kpropertiesdialog.h:347
KPropertiesDialogPlugin::applyChanges
virtual void applyChanges()
Applies all changes to the file.
Definition: kpropertiesdialog.cpp:648
KFileItemList
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
KPropertiesDialog
The main properties dialog class.
Definition: kpropertiesdialog.h:57
KFileSharePropsPlugin
This plugin provides a page to KProperiessDialog, showing the "file sharing" options.
Definition: kfilesharedialog.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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