summaryrefslogtreecommitdiff
path: root/noncore/applets/wirelessapplet/wireless.h
Side-by-side diff
Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/wirelessapplet/wireless.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.h b/noncore/applets/wirelessapplet/wireless.h
index b475a46..9146c66 100644
--- a/noncore/applets/wirelessapplet/wireless.h
+++ b/noncore/applets/wirelessapplet/wireless.h
@@ -5,109 +5,108 @@
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
**********************************************************************/
#ifndef __WIRELESS_APPLET_H__
#define __WIRELESS_APPLET_H__
#include <qwidget.h>
#include <qframe.h>
#include <qpixmap.h>
namespace Opie {namespace Net {
class OWirelessNetworkInterface;
}
}
class Y;
class QLabel;
class WirelessApplet;
class MGraph;
class WirelessControl : public QFrame
{
Q_OBJECT
public:
WirelessControl( WirelessApplet* icon, QWidget *parent=0, const char *name=0 );
void show( bool );
void readConfig();
void writeConfigEntry( const char* entry, int val );
MGraph* mgraph;
QLabel* statusLabel;
QLabel* updateLabel;
public slots:
void updateDelayChange( int );
void displayStyleChange( int );
void advancedConfigClicked();
private:
WirelessApplet* applet;
- int displayStyle;
int updateFrequency;
bool rocESSID;
bool rocFREQ;
bool rocAP;
bool rocMODE;
};
class WirelessApplet : public QWidget
{
Q_OBJECT
public:
WirelessApplet( QWidget *parent = 0, const char *name=0 );
~WirelessApplet();
static int position();
WirelessControl* status;
virtual void timerEvent( QTimerEvent* );
void updateDelayChange( int delay );
void displayStyleChange( int style );
void updateDHCPConfig( bool, bool, bool, bool );
private:
void mousePressEvent( QMouseEvent * );
void paintEvent( QPaintEvent* );
void checkInterface();
void renewDHCP();
bool mustRepaint();
void updatePopupWindow();
- const char** getQualityPixmap();
+ int numberOfRings();
private:
QPixmap snapshotPixmap;
int visualStyle;
int timer;
Opie::Net::OWirelessNetworkInterface* interface;
private:
- const char** oldpixmap;
+ int oldrings;
Opie::Net::OWirelessNetworkInterface* oldiface;
int oldqualityH;
int oldsignalH;
int oldnoiseH;
QString oldESSID;
QString oldAP;
QString oldMODE;
double oldFREQ;
bool rocESSID;
bool rocFREQ;
bool rocAP;
bool rocMODE;
};
#endif // __WIRELESS_APPLET_H__