KIO
kfilesharedialog.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (c) 2001 David Faure <faure@kde.org> 00003 Copyright (c) 2001 Laurent Montel <lmontel@mandrakesoft.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 KFILESHAREDIALOG_H 00021 #define KFILESHAREDIALOG_H 00022 00023 #include <kpropertiesdialog.h> 00024 class QRadioButton; 00025 class QPushButton; 00026 00031 class KIO_EXPORT KFileSharePropsPlugin : public KPropertiesDialogPlugin 00032 { 00033 Q_OBJECT 00034 public: 00035 KFileSharePropsPlugin( KPropertiesDialog *_props ); 00036 virtual ~KFileSharePropsPlugin(); 00037 00043 virtual void applyChanges(); 00044 00045 static bool supports( const KFileItemList& items ); 00046 00047 QWidget* page() const; 00048 00049 protected Q_SLOTS: 00050 void slotConfigureFileSharing(); 00051 void slotConfigureFileSharingDone(); 00052 00053 private: 00054 void init(); 00055 bool setShared( const QString&path, bool shared ); 00056 00057 class Private; 00058 Private* const d; 00059 }; 00060 00061 #endif