summaryrefslogtreecommitdiffstats
path: root/tdeioslave
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-10-25 14:13:23 +0800
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-10-25 14:13:23 +0800
commit53f8622a6a4a47a49431bcbb4f63aa09220bb835 (patch)
treeb5eac82f45f46fa4e76449780f4c33c9c418f688 /tdeioslave
parent6b2d46a5486df6c4d15140c86bbe74e014d274ef (diff)
downloadtdebase-53f8622a6a4a47a49431bcbb4f63aa09220bb835.tar.gz
tdebase-53f8622a6a4a47a49431bcbb4f63aa09220bb835.zip
tdehwmonitor: added Unlock/Lock buttons to LUKS disks.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave')
-rw-r--r--tdeioslave/media/mounthelper/dialog.h2
-rw-r--r--tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp9
-rw-r--r--tdeioslave/media/mounthelper/tdeio_media_mounthelper.h6
3 files changed, 13 insertions, 4 deletions
diff --git a/tdeioslave/media/mounthelper/dialog.h b/tdeioslave/media/mounthelper/dialog.h
index e704e5777..a80a9c69a 100644
--- a/tdeioslave/media/mounthelper/dialog.h
+++ b/tdeioslave/media/mounthelper/dialog.h
@@ -36,8 +36,6 @@
#include "unlockdialog.h"
-class KryptoMedia;
-
class Dialog : public KDialogBase
{
diff --git a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp
index 70f49d9ac..9d3da6d08 100644
--- a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp
+++ b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp
@@ -25,7 +25,6 @@
#include <kurl.h>
#include <tdemessagebox.h>
#include <dcopclient.h>
-#include <dcopref.h>
#include <tqtimer.h>
#include <stdlib.h>
#include <kdebug.h>
@@ -345,6 +344,14 @@ MountHelper::MountHelper() : TDEApplication(), m_mediamanager("kded", "mediamana
}
}
+MountHelper::~MountHelper()
+{
+ if (m_dialog)
+ {
+ delete m_dialog;
+ }
+}
+
void MountHelper::ejectFinished(TDEProcess *proc)
{
//If eject failed, report the error stored in m_errorStr
diff --git a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h
index 916cf3d30..59dba6e5a 100644
--- a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h
+++ b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h
@@ -25,16 +25,20 @@
#include <tdeapplication.h>
#include <tqstring.h>
#include <tdeio/job.h>
+#include <dcopref.h>
#include "medium.h"
class Dialog;
+class TDEProcess;
class MountHelper : public TDEApplication
{
- Q_OBJECT
+ Q_OBJECT
+
public:
MountHelper();
+ ~MountHelper();
private:
TQString m_errorStr;