From d39c407bf49fab58fa53c20bb3d301ee6e709c32 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 21 Nov 2020 17:49:23 +0800 Subject: 1) tdehwdevicetray: added support for unmount/unlock/lock operations. 2) minor changes and improvements to user messages. Signed-off-by: Michele Calgaro --- kcontrol/hwmanager/hwdevicetray.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'kcontrol/hwmanager/hwdevicetray.h') diff --git a/kcontrol/hwmanager/hwdevicetray.h b/kcontrol/hwmanager/hwdevicetray.h index d49f5b4b3..d207b430c 100644 --- a/kcontrol/hwmanager/hwdevicetray.h +++ b/kcontrol/hwmanager/hwdevicetray.h @@ -34,6 +34,7 @@ #endif class KHelpMenu; +class PasswordDlg; class TDEPopupMenu; typedef TQMap TQStringMap; @@ -59,6 +60,9 @@ protected slots: void slotMountDevice(int parameter); void slotUnmountDevice(int parameter); + void slotUnlockDevice(int parameter); + void slotLockDevice(int parameter); + void slotEjectDevice(int parameter); protected: void mousePressEvent(TQMouseEvent *e); @@ -70,8 +74,8 @@ private slots: void deviceAdded(TDEGenericDevice*); void deviceRemoved(TDEGenericDevice*); void deviceChanged(TDEGenericDevice*); - void devicePopupClicked(KPassivePopup*, TQPoint, TQString); + void doUnlockDisk(); private: bool isMonitoredDevice(TDEStorageDevice* sdevice); @@ -88,8 +92,12 @@ private: TQStringMap m_mountMenuIndexMap; TQStringMap m_unmountMenuIndexMap; + TQStringMap m_unlockMenuIndexMap; + TQStringMap m_lockMenuIndexMap; + TQStringMap m_ejectMenuIndexMap; TDEPopupMenu* m_menu; KSimpleConfig *r_config; + PasswordDlg *m_passDlg; }; #endif -- cgit v1.2.1