Changeset View
Changeset View
Standalone View
Standalone View
processui/ProcessModel_p.h
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Line(s) | 112 | public: | |||
---|---|---|---|---|---|
136 | */ | 136 | */ | ||
137 | inline QString getGroupnameForGroup(long gid) const; | 137 | inline QString getGroupnameForGroup(long gid) const; | ||
138 | #if HAVE_X11 | 138 | #if HAVE_X11 | ||
139 | /** On X11 system, connects to the signals emitted when windows are created/destroyed */ | 139 | /** On X11 system, connects to the signals emitted when windows are created/destroyed */ | ||
140 | void setupWindows(); | 140 | void setupWindows(); | ||
141 | void updateWindowInfo(WId wid, unsigned int properties, bool newWindow); | 141 | void updateWindowInfo(WId wid, unsigned int properties, bool newWindow); | ||
142 | QMultiHash< long long, WindowInfo *> mPidToWindowInfo; ///< Map a process pid to X window info if available | 142 | QMultiHash< long long, WindowInfo *> mPidToWindowInfo; ///< Map a process pid to X window info if available | ||
143 | QHash< WId, WindowInfo *> mWIdToWindowInfo; ///< Map an X window id to window info | 143 | QHash< WId, WindowInfo *> mWIdToWindowInfo; ///< Map an X window id to window info | ||
144 | #ifdef HAVE_XRES | | |||
145 | bool updateXResClientData(); | | |||
146 | void queryForAndUpdateAllXWindows(); | | |||
147 | #endif | | |||
148 | #endif | 144 | #endif | ||
149 | void timerEvent ( QTimerEvent * event ) override; ///< Call dataChanged() for all the processes in mPidsToUpdate | 145 | void timerEvent ( QTimerEvent * event ) override; ///< Call dataChanged() for all the processes in mPidsToUpdate | ||
150 | /** @see setIsLocalhost */ | 146 | /** @see setIsLocalhost */ | ||
151 | bool mIsLocalhost; | 147 | bool mIsLocalhost; | ||
152 | 148 | | |||
153 | /** A caching hash for tooltips for a user. | 149 | /** A caching hash for tooltips for a user. | ||
154 | * @see getTooltipForUser */ | 150 | * @see getTooltipForUser */ | ||
155 | mutable QHash<long long,QString> mUserTooltips; | 151 | mutable QHash<long long,QString> mUserTooltips; | ||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
205 | 201 | | |||
206 | static const int MAX_HIST_ENTRIES = 100; | 202 | static const int MAX_HIST_ENTRIES = 100; | ||
207 | static const int MIN_HIST_AGE = 200; ///< If the latest history entry is at least this ms old, a new one gets added | 203 | static const int MIN_HIST_AGE = 200; ///< If the latest history entry is at least this ms old, a new one gets added | ||
208 | /** Storage for the history entries. We need one per percentage column. */ | 204 | /** Storage for the history entries. We need one per percentage column. */ | ||
209 | QHash<KSysGuard::Process *, QVector<ProcessModel::PercentageHistoryEntry>> mMapProcessCPUHistory; | 205 | QHash<KSysGuard::Process *, QVector<ProcessModel::PercentageHistoryEntry>> mMapProcessCPUHistory; | ||
210 | 206 | | |||
211 | QVector<KSysGuard::ProcessAttribute*> mExtraAttributes; | 207 | QVector<KSysGuard::ProcessAttribute*> mExtraAttributes; | ||
212 | 208 | | |||
213 | #ifdef HAVE_XRES | | |||
214 | bool mHaveXRes; ///< True if the XRes extension is available at run time | | |||
215 | QMap<qlonglong, XID> mXResClientResources; | | |||
216 | #endif | | |||
217 | | ||||
218 | bool mMovingRow; | 209 | bool mMovingRow; | ||
219 | bool mRemovingRow; | 210 | bool mRemovingRow; | ||
220 | bool mInsertingRow; | 211 | bool mInsertingRow; | ||
221 | 212 | | |||
222 | bool mIsX11; | 213 | bool mIsX11; | ||
223 | 214 | | |||
224 | ProcessModel* q; | 215 | ProcessModel* q; | ||
225 | }; | 216 | }; | ||
226 | 217 | | |||
227 | #endif | 218 | #endif |