From 2a36ad637f2a8e313c48be5574f73912cc1db737 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 21 Oct 2003 21:34:56 +0000 Subject: [PATCH] generate trace messages with dialup mask so that they're not shown by default git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/dialup.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/unix/dialup.cpp b/src/unix/dialup.cpp index 6520b2edf8..cf1d7487d6 100644 --- a/src/unix/dialup.cpp +++ b/src/unix/dialup.cpp @@ -250,21 +250,18 @@ class AutoCheckTimer : public wxTimer { public: AutoCheckTimer(wxDialUpManagerImpl *dupman) - { - m_dupman = dupman; - m_started = FALSE; - } - - virtual bool Start( int millisecs = -1, bool WXUNUSED(one_shot) = FALSE ) - { m_started = TRUE; return wxTimer::Start(millisecs, FALSE); } + { + m_dupman = dupman; + } virtual void Notify() - { wxLogTrace(wxT("Checking dial up network status.")); m_dupman->CheckStatus(); } + { + wxLogTrace(_T("dialup"), wxT("Checking dial up network status.")); + + m_dupman->CheckStatus(); + } - virtual void Stop() - { if ( m_started ) wxTimer::Stop(); } public: - bool m_started; wxDialUpManagerImpl *m_dupman; }; -- 2.45.2