KIO
kautomount.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2000 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef KAUTOMOUNT_H 00020 #define KAUTOMOUNT_H 00021 00022 #include <QtCore/QObject> 00023 #include <QtCore/QString> 00024 00025 #include <QtGlobal> 00026 00027 #include <kio/kio_export.h> 00028 00029 #ifdef Q_OS_UNIX 00030 00031 class KJob; 00032 namespace KIO { 00033 class Job; 00034 } 00035 00036 class KAutoMountPrivate; 00045 class KIO_EXPORT KAutoMount : public QObject 00046 { 00047 Q_OBJECT 00048 public: 00060 KAutoMount( bool readonly, const QByteArray& format, const QString& device, const QString& mountpoint, 00061 const QString & desktopFile, bool show_filemanager_window = true ); 00062 00063 Q_SIGNALS: 00065 void finished(); 00067 void error(); 00068 00069 private: 00071 ~KAutoMount(); 00072 Q_PRIVATE_SLOT(d, void slotResult( KJob * )) 00073 friend class KAutoMountPrivate; 00074 KAutoMountPrivate* const d; 00075 }; 00076 00077 class KAutoUnmountPrivate; 00085 class KIO_EXPORT KAutoUnmount : public QObject 00086 { 00087 Q_OBJECT 00088 public: 00095 KAutoUnmount( const QString & mountpoint, const QString & desktopFile ); 00096 00097 Q_SIGNALS: 00099 void finished(); 00101 void error(); 00102 00103 private: 00105 ~KAutoUnmount(); 00106 Q_PRIVATE_SLOT(d, void slotResult( KJob * )) 00107 friend class KAutoUnmountPrivate; 00108 KAutoUnmountPrivate* const d; 00109 }; 00110 00111 #endif //Q_OS_UNIX 00112 00113 #endif
KDE 4.6 API Reference