summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile
authorwimpie <wimpie>2004-04-10 13:06:13 (UTC)
committer wimpie <wimpie>2004-04-10 13:06:13 (UTC)
commitdb9f0e2a7fd93157d95f421534fcc3015abe53e0 (patch) (side-by-side diff)
tree001918ca18d0d74f3e49597f766c070bea71e25c /noncore/settings/networksettings2/profile
parent6bcdc8cd41199dce849b800b4296011faf6281df (diff)
downloadopie-db9f0e2a7fd93157d95f421534fcc3015abe53e0.zip
opie-db9f0e2a7fd93157d95f421534fcc3015abe53e0.tar.gz
opie-db9f0e2a7fd93157d95f421534fcc3015abe53e0.tar.bz2
*** empty log message ***
Diffstat (limited to 'noncore/settings/networksettings2/profile') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/profile/profileedit.cpp13
-rw-r--r--noncore/settings/networksettings2/profile/profileedit.h2
-rw-r--r--noncore/settings/networksettings2/profile/profilerun.cpp2
-rw-r--r--noncore/settings/networksettings2/profile/profilerun.h2
4 files changed, 11 insertions, 8 deletions
diff --git a/noncore/settings/networksettings2/profile/profileedit.cpp b/noncore/settings/networksettings2/profile/profileedit.cpp
index 3f72c52..c9fb650 100644
--- a/noncore/settings/networksettings2/profile/profileedit.cpp
+++ b/noncore/settings/networksettings2/profile/profileedit.cpp
@@ -13,3 +13,3 @@
ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) :
- ProfileGUI( Parent ), TrafficRefresh(this) {
+ ProfileGUI( Parent ), RefreshTimer(this) {
InterfaceInfo * II;
@@ -19,2 +19,3 @@ ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) :
if( ( II = Dev->assignedInterface() ) ) {
+
Refresh_CB->setEnabled( TRUE );
@@ -23,2 +24,3 @@ ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) :
Collisions_FRM->setEnabled( TRUE );
+
// show current content
@@ -44,6 +46,7 @@ ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) :
InterfaceOptions_LBL->setText( S );
+
+ connect( &RefreshTimer, SIGNAL( timeout() ),
+ this, SLOT( SLOT_Refresh() ) );
}
- connect( &TrafficRefresh, SIGNAL( timeout() ),
- this, SLOT( SLOT_Refresh() ) );
}
@@ -87,6 +90,6 @@ void ProfileEdit::SLOT_AutoRefresh( bool ar ) {
if( ar ) {
- TrafficRefresh.start( 1000 );
+ RefreshTimer.start( 1000 );
SLOT_Refresh();
} else {
- TrafficRefresh.stop();
+ RefreshTimer.stop();
}
diff --git a/noncore/settings/networksettings2/profile/profileedit.h b/noncore/settings/networksettings2/profile/profileedit.h
index 8ca34be..b186b58 100644
--- a/noncore/settings/networksettings2/profile/profileedit.h
+++ b/noncore/settings/networksettings2/profile/profileedit.h
@@ -25,3 +25,3 @@ private :
- QTimer TrafficRefresh;
+ QTimer RefreshTimer;
ANetNodeInstance * NNI;
diff --git a/noncore/settings/networksettings2/profile/profilerun.cpp b/noncore/settings/networksettings2/profile/profilerun.cpp
index feebf86..79bb93e 100644
--- a/noncore/settings/networksettings2/profile/profilerun.cpp
+++ b/noncore/settings/networksettings2/profile/profilerun.cpp
@@ -14,3 +14,3 @@ void ProfileRun::detectState( NodeCollection * NC ) {
-bool ProfileRun::setState( NodeCollection * NC, Action_t A ) {
+bool ProfileRun::setState( NodeCollection * NC, Action_t A, bool ) {
ANetNodeInstance * NNNI;
diff --git a/noncore/settings/networksettings2/profile/profilerun.h b/noncore/settings/networksettings2/profile/profilerun.h
index 6e8385c..c8ea063 100644
--- a/noncore/settings/networksettings2/profile/profilerun.h
+++ b/noncore/settings/networksettings2/profile/profilerun.h
@@ -15,3 +15,3 @@ public :
void detectState( NodeCollection * NC );
- bool setState( NodeCollection * NC, Action_t A );
+ bool setState( NodeCollection * NC, Action_t A, bool );
bool canSetState( State_t Curr, Action_t A );