From b1d5dab80d2c41c21fca41fdb3dd6093d25c9a1f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 4 Feb 2023 23:31:44 +0900 Subject: hwmanager: use a private class 'd' to store internal members of HwDeviceSystemTray. Signed-off-by: Michele Calgaro --- kcontrol/hwmanager/hwdevicetray.h | 44 +++++++-------------------------------- 1 file changed, 8 insertions(+), 36 deletions(-) (limited to 'kcontrol/hwmanager/hwdevicetray.h') 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 - #include -#include -#include -#include - -#include -#include -class KHelpMenu; -class PasswordDlg; +class HwDeviceSystemTrayPrivate; +class KPassivePopup; +class TDEGenericDevice; +class TDEGlobalAccel; class TDEPopupMenu; - -typedef TQMap 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 m_knownDiskDevices; + HwDeviceSystemTrayPrivate *d; }; #endif -- cgit v1.2.1