KIO
kautomount.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KAUTOMOUNT_H
00020 #define KAUTOMOUNT_H
00021
00022 #include <QtCore/QObject>
00023 #include <QtCore/QString>
00024
00025 #include <kio/kio_export.h>
00026
00027 #ifdef Q_OS_UNIX
00028
00029 class KJob;
00030 namespace KIO {
00031 class Job;
00032 }
00033
00034 class KAutoMountPrivate;
00043 class KIO_EXPORT KAutoMount : public QObject
00044 {
00045 Q_OBJECT
00046 public:
00058 KAutoMount( bool readonly, const QByteArray& format, const QString& device, const QString& mountpoint,
00059 const QString & desktopFile, bool show_filemanager_window = true );
00060
00061 Q_SIGNALS:
00063 void finished();
00065 void error();
00066
00067 private:
00069 ~KAutoMount();
00070 Q_PRIVATE_SLOT(d, void slotResult( KJob * ))
00071 friend class KAutoMountPrivate;
00072 KAutoMountPrivate* const d;
00073 };
00074
00075 class KAutoUnmountPrivate;
00083 class KIO_EXPORT KAutoUnmount : public QObject
00084 {
00085 Q_OBJECT
00086 public:
00093 KAutoUnmount( const QString & mountpoint, const QString & desktopFile );
00094
00095 Q_SIGNALS:
00097 void finished();
00099 void error();
00100
00101 private:
00103 ~KAutoUnmount();
00104 Q_PRIVATE_SLOT(d, void slotResult( KJob * ))
00105 friend class KAutoUnmountPrivate;
00106 KAutoUnmountPrivate* const d;
00107 };
00108
00109 #endif //Q_OS_UNIX
00110
00111 #endif