kautomount.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#ifndef __auto_mount_h__
00020
#define __auto_mount_h__
00021
00022
#include <qobject.h>
00023
#include <qstring.h>
00024
00025
#include <kdelibs_export.h>
00026
00027
#ifdef Q_OS_UNIX
00028
00029
namespace KIO {
00030
class Job;
00031 }
00032
00041
class KIO_EXPORT KAutoMount :
public QObject
00042 {
00043 Q_OBJECT
00044
friend class gcc_gives_a_warning_without_this;
00045
public:
00057 KAutoMount(
bool readonly,
const QString& format,
const QString& device,
const QString& mountpoint,
00058
const QString & desktopFile,
bool show_filemanager_window =
true );
00059
00060 signals:
00062
void finished();
00064
void error();
00065
00066
protected slots:
00067
void slotResult(
KIO::Job * );
00068
00069
protected:
00070
QString m_strDevice;
00071
bool m_bShowFilemanagerWindow;
00072
QString m_desktopFile;
00073
private:
00075 ~KAutoMount() {}
00076
class KAutoMountPrivate* d;
00077 };
00078
00086
class KIO_EXPORT KAutoUnmount :
public QObject
00087 {
00088 Q_OBJECT
00089
friend class gcc_gives_a_warning_without_this;
00090
public:
00097 KAutoUnmount(
const QString & mountpoint,
const QString & desktopFile );
00098
00099 signals:
00101
void finished();
00103
void error();
00104
00105
protected slots:
00106
void slotResult(
KIO::Job * );
00107
private:
00108
QString m_desktopFile;
00109
QString m_mountpoint;
00110
private:
00112 ~KAutoUnmount() {}
00113
class KAutoUnmountPrivate* d;
00114 };
00115
00116
#endif //Q_OS_UNIX
00117
00118
#endif
This file is part of the documentation for kio Library Version 3.4.0.