52
52
class KMountManGUI;
54
class KMountMan : public QObject {
56
friend class KMountManGUI;
54
class KMountMan : public QObject
57
friend class KMountManGUI;
59
enum mntStatus {DOESNT_EXIST, NOT_MOUNTED, MOUNTED};
61
inline bool operational() {
65
void mainWindow(); // opens up the GUI
66
void mount( QString mntPoint, bool blocking=true ); // this is probably what you need for mount
67
void unmount( QString mntPoint, bool blocking=true ); // this is probably what you need for unmount
68
mntStatus getStatus( QString mntPoint ); // return the status of a mntPoint (if any)
69
void autoMount( QString path ); // just call it before refreshing into a dir
70
void eject( QString mntPoint );
71
bool ejectable( QString path );
72
QString convertSize( KIO::filesize_t size );
73
bool invalidFilesystem(QString type);
74
bool nonmountFilesystem(QString type, QString mntPoint);
79
QString findUdiForPath( QString path, const Solid::DeviceInterface::Type &expType = Solid::DeviceInterface::Unknown );
60
enum mntStatus {DOESNT_EXIST, NOT_MOUNTED, MOUNTED};
62
inline bool operational() {
66
void mainWindow(); // opens up the GUI
67
void mount(QString mntPoint, bool blocking = true); // this is probably what you need for mount
68
void unmount(QString mntPoint, bool blocking = true); // this is probably what you need for unmount
69
mntStatus getStatus(QString mntPoint); // return the status of a mntPoint (if any)
70
void autoMount(QString path); // just call it before refreshing into a dir
71
void eject(QString mntPoint);
72
bool ejectable(QString path);
73
QString convertSize(KIO::filesize_t size);
74
bool invalidFilesystem(QString type);
75
bool nonmountFilesystem(QString type, QString mntPoint);
80
QString findUdiForPath(QString path, const Solid::DeviceInterface::Type &expType = Solid::DeviceInterface::Unknown);
82
void delayedPerformAction( QAction * );
83
void delayedPerformAction(QAction *);
87
void jobResult(KJob *job);
88
void slotTeardownDone(Solid::ErrorType error, QVariant errorData, const QString &udi);
89
void slotSetupDone(Solid::ErrorType error, QVariant errorData, const QString &udi);
88
void jobResult(KJob *job);
89
void slotTeardownDone(Solid::ErrorType error, QVariant errorData, const QString &udi);
90
void slotSetupDone(Solid::ErrorType error, QVariant errorData, const QString &udi);
93
static KSharedPtr<KMountPoint> findInListByMntPoint(KMountPoint::List &lst, QString value);
94
void toggleMount( QString mntPoint );
100
bool Operational; // if false, something went terribly wrong on startup
101
bool waiting; // used to block krusader while waiting for (un)mount operation
102
KMountManGUI *mountManGui;
103
// the following is the FS type
104
QStringList invalid_fs;
105
QStringList nonmount_fs;
106
// the following is the FS name
107
QStringList nonmount_fs_mntpoint;
94
static KSharedPtr<KMountPoint> findInListByMntPoint(KMountPoint::List &lst, QString value);
95
void toggleMount(QString mntPoint);
101
bool Operational; // if false, something went terribly wrong on startup
102
bool waiting; // used to block krusader while waiting for (un)mount operation
103
KMountManGUI *mountManGui;
104
// the following is the FS type
105
QStringList invalid_fs;
106
QStringList nonmount_fs;
107
// the following is the FS name
108
QStringList nonmount_fs_mntpoint;