improved dialup manager, added wxALL_FILES define

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-10-21 15:00:17 +00:00
parent 572c6194d3
commit 2c41c4404c
3 changed files with 24 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
#include "wx/process.h"
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/wxchar.h"
#include <stdlib.h>
@@ -245,6 +246,12 @@ wxDialUpManagerImpl::wxDialUpManagerImpl()
m_CanUseIfconfig = -1; // unknown
m_BeaconHost = WXDIALUP_MANAGER_DEFAULT_BEACONHOST;
m_BeaconPort = 80;
SetConnectCommand("pon", "poff"); // default values for Debian/GNU linux
wxChar * dial = wxGetenv(_T("WXDIALUP_DIALCMD"));
wxChar * hup = wxGetenv(_T("WXDIALUP_HUPCMD"));
if(dial || hup)
SetConnectCommand(dial ? wxString(dial) : m_ConnectCommand,
hup ? wxString(hup) : m_HangUpCommand);
}
wxDialUpManagerImpl::~wxDialUpManagerImpl()