diff options
author | Michele Calgaro <[email protected]> | 2020-11-21 17:49:23 +0800 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-11-21 17:49:23 +0800 |
commit | d39c407bf49fab58fa53c20bb3d301ee6e709c32 (patch) | |
tree | 9bc93b5ecaf45943c3db3304f444a79eb1c780ed /kcontrol/hwmanager/hwdevicetray.h | |
parent | 1b6c123de102f0152d296fba8771d348329ba95c (diff) | |
download | tdebase-d39c407bf49fab58fa53c20bb3d301ee6e709c32.tar.gz tdebase-d39c407bf49fab58fa53c20bb3d301ee6e709c32.zip |
1) tdehwdevicetray: added support for unmount/unlock/lock operations.
2) minor changes and improvements to user messages.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kcontrol/hwmanager/hwdevicetray.h')
-rw-r--r-- | kcontrol/hwmanager/hwdevicetray.h | 10 |
1 files changed, 9 insertions, 1 deletions
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<int, TQString> 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 |