2
KSysGuard, the KDE System Guard
4
Copyright (c) 1999, 2000 Chris Schlaeger <cs@kde.org>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public
8
License version 2 or at your option version 3 as published by
9
the Free Software Foundation.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
#ifndef KSG_KSYSGUARD_H
22
#define KSG_KSYSGUARD_H
25
#include <QtDBus/QtDBus>
27
#include <kapplication.h>
28
#include <kxmlguiwindow.h>
30
#include <ksgrd/SensorClient.h>
33
class SensorBrowserWidget;
37
class TopLevel : public KXmlGuiWindow, public KSGRD::SensorClient
40
Q_CLASSINFO("D-Bus Interface", "org.kde.SystemMonitor")
45
virtual void saveProperties( KConfigGroup& );
46
virtual void readProperties( const KConfigGroup& );
48
virtual void answerReceived( int id, const QList<QByteArray> & );
53
Q_SCRIPTABLE Q_NOREPLY void showOnCurrentDesktop();
54
Q_SCRIPTABLE Q_NOREPLY void importWorkSheet( const QString &fileName );
55
Q_SCRIPTABLE Q_NOREPLY void removeWorkSheet( const QString &fileName );
56
Q_SCRIPTABLE Q_NOREPLY void getHotNewWorksheet();
57
Q_SCRIPTABLE QStringList listHosts();
58
Q_SCRIPTABLE QStringList listSensors( const QString &hostName );
62
virtual bool event( QEvent* );
63
virtual void timerEvent( QTimerEvent* );
64
virtual bool queryClose();
68
void disconnectHost();
69
void updateStatusBar();
70
void currentTabChanged(int index);
71
void updateProcessCount();
72
void configureCurrentSheet();
75
void setSwapInfo( qlonglong, qlonglong, const QString& );
76
void changeEvent( QEvent * event );
79
QDBusMessage mDBusReply;
82
void startSensorBrowserWidget(); ///creates an mSensorBrowser if it doesn't exist
84
SensorBrowserWidget* mSensorBrowser;
85
Workspace* mWorkSpace;
88
QAction *mNewWorksheetAction;
89
QAction *mInsertWorksheetAction;
90
QAction *mTabExportAction;
91
QAction *mTabRemoveAction;
92
QAction *mMonitorRemoteAction;
93
QAction *mHotNewWorksheetAction;
95
QAction *mConfigureSheetAction;
96
QAction *mHotNewWorksheetUploadAction;
97
KAction *mRefreshTabAction;
98
QLabel *sbProcessCount;
103
QList<int> mSplitterSize;
106
extern TopLevel* Toplevel;