diff options
author | Michele Calgaro <[email protected]> | 2021-07-18 12:05:03 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-07-18 12:12:07 +0900 |
commit | 2d6227f197af3b1327977cf916e82eb64609e7d5 (patch) | |
tree | 963605496cbd33cd54c4134e83a1c58ec4774c85 /kcontrol/hwmanager/hwdevicetray.h | |
parent | 97f791add4bca93b5333fe1ec5c5f38246abe0f7 (diff) | |
download | tdebase-2d6227f197af3b1327977cf916e82eb64609e7d5.tar.gz tdebase-2d6227f197af3b1327977cf916e82eb64609e7d5.zip |
tdehwdevicetray: fixed up notification logic for added/removed disk devices.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kcontrol/hwmanager/hwdevicetray.h')
-rw-r--r-- | kcontrol/hwmanager/hwdevicetray.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kcontrol/hwmanager/hwdevicetray.h b/kcontrol/hwmanager/hwdevicetray.h index 4f36c797a..57389c1de 100644 --- a/kcontrol/hwmanager/hwdevicetray.h +++ b/kcontrol/hwmanager/hwdevicetray.h @@ -27,11 +27,8 @@ #include <ksimpleconfig.h> #include <tdepassivepopupstack.h> -#ifdef WITH_TDEHWLIB #include <tdehardwaredevices.h> -#else -#define TDEGenericDevice void -#endif +#include <tdestoragedevice.h> class KHelpMenu; class PasswordDlg; @@ -78,6 +75,7 @@ private slots: void deviceChanged(TDEGenericDevice*); void devicePopupClicked(KPassivePopup*, TQPoint, TQString); void doUnlockDisk(); + void doDiskNotifications(bool scanOnly); private: bool isMonitoredDevice(TDEStorageDevice* sdevice); @@ -102,6 +100,7 @@ private: TDEPopupMenu* m_menu; KSimpleConfig *r_config; PasswordDlg *m_passDlg; + TQMap<TQString, TDEStorageDevice*> m_knownDiskDevices; }; #endif |