summaryrefslogtreecommitdiffstats
path: root/kcontrol/hwmanager/hwdevicetray.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-02-04 23:31:44 +0900
committerMichele Calgaro <[email protected]>2023-02-06 17:58:55 +0900
commitb1d5dab80d2c41c21fca41fdb3dd6093d25c9a1f (patch)
tree9d2976bba5ee0b2e46a762c18fd006c04825adeb /kcontrol/hwmanager/hwdevicetray.h
parent8410f6bd00068b31a221e24ee619404ce8b6343a (diff)
downloadtdebase-b1d5dab80d2c41c21fca41fdb3dd6093d25c9a1f.tar.gz
tdebase-b1d5dab80d2c41c21fca41fdb3dd6093d25c9a1f.zip
hwmanager: use a private class 'd' to store internal members of HwDeviceSystemTray.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kcontrol/hwmanager/hwdevicetray.h')
-rw-r--r--kcontrol/hwmanager/hwdevicetray.h44
1 files changed, 8 insertions, 36 deletions
diff --git a/kcontrol/hwmanager/hwdevicetray.h b/kcontrol/hwmanager/hwdevicetray.h
index 54382cb8c..a6b532ac4 100644
--- a/kcontrol/hwmanager/hwdevicetray.h
+++ b/kcontrol/hwmanager/hwdevicetray.h
@@ -20,21 +20,14 @@
#ifndef TDEHWDEVICETRAY_H
#define TDEHWDEVICETRAY_H
-#include <tqptrlist.h>
-
#include <ksystemtray.h>
-#include <kglobalaccel.h>
-#include <ksimpleconfig.h>
-#include <tdepassivepopupstack.h>
-
-#include <tdehardwaredevices.h>
-#include <tdestoragedevice.h>
-class KHelpMenu;
-class PasswordDlg;
+class HwDeviceSystemTrayPrivate;
+class KPassivePopup;
+class TDEGenericDevice;
+class TDEGlobalAccel;
class TDEPopupMenu;
-
-typedef TQMap<int, TQString> TQStringMap;
+class TDEStorageDevice;
class HwDeviceSystemTray : public KSystemTray
{
@@ -43,6 +36,7 @@ class HwDeviceSystemTray : public KSystemTray
public:
HwDeviceSystemTray(TQWidget* parent = 0, const char *name = 0);
~HwDeviceSystemTray();
+
TDEGlobalAccel *globalKeys;
virtual void contextMenuAboutToShow(TDEPopupMenu *menu);
@@ -70,7 +64,7 @@ protected:
void showEvent(TQShowEvent *);
private slots:
- void _quit();
+ void quitApp();
void deviceAdded(TDEGenericDevice*);
void deviceRemoved(TDEGenericDevice*);
void deviceChanged(TDEGenericDevice*);
@@ -82,29 +76,7 @@ private:
void resizeTrayIcon();
- bool m_popupUp;
- KHelpMenu* m_help;
-
- TQWidget* m_parent;
- TDEPassivePopupStackContainer* m_hardwareNotifierContainer;
-
- TQStringMap m_openMenuIndexMap;
- TQStringMap m_mountMenuIndexMap;
- TQStringMap m_unmountMenuIndexMap;
- TQStringMap m_unlockMenuIndexMap;
- TQStringMap m_lockMenuIndexMap;
- TQStringMap m_ejectMenuIndexMap;
- TQStringMap m_safeRemoveMenuIndexMap;
- TQStringMap m_propertiesMenuIndexMap;
- TDEPopupMenu* m_RMBMenu;
- KSimpleConfig *r_config;
-
- struct KnownDiskDeviceInfo
- {
- TQString friendlyName;
- TQString node;
- };
- TQMap<TQString, KnownDiskDeviceInfo> m_knownDiskDevices;
+ HwDeviceSystemTrayPrivate *d;
};
#endif