00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _KIO_MEDIA_MOUNTHELPER_H_
00023 #define _KIO_MEDIA_MOUNTHELPER_H_
00024
00025 #include <kapplication.h>
00026 #include <tqstring.h>
00027 #include <kio/job.h>
00028
00029 #include "medium.h"
00030
00031 class Dialog;
00032
00033 class MountHelper : public KApplication
00034 {
00035 Q_OBJECT
00036 public:
00037 MountHelper();
00038
00039 private:
00040 const Medium findMedium(const KURL &url);
00041 void invokeEject(const TQString &device, bool quiet=false);
00042 TQString m_errorStr;
00043 bool m_isCdrom;
00044 TQString m_mediumId;
00045 Dialog *dialog;
00046
00047 private slots:
00048 void slotSendPassword();
00049 void slotCancel();
00050 void ejectFinished(KProcess* proc);
00051 void error();
00052
00053 signals:
00054 void signalPasswordError(TQString errorMsg);
00055 };
00056
00057 #endif