X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2edb0bdef6238c8c246b6978bc14828b7033d931..b19add95cdee6f8c2d48215a70662bd15a698243:/docs/latex/wx/dialup.tex diff --git a/docs/latex/wx/dialup.tex b/docs/latex/wx/dialup.tex index 02b305cae8..94df86f20c 100644 --- a/docs/latex/wx/dialup.tex +++ b/docs/latex/wx/dialup.tex @@ -22,7 +22,7 @@ network the next time or, on the contrary, to stop receiving data from the net when the user hangs up the modem). For this, you need to use one of the event macros described below. -This class is different from other wxWindows classes in that there is at most +This class is different from other wxWidgets classes in that there is at most one instance of this class in the program accessed via \helpref{wxDialUpManager::Create()}{wxdialupmanagercreate} and you can't create the objects of this class directly. @@ -66,8 +66,8 @@ done with it. \constfunc{bool}{IsOk}{\void} -Returns {\tt TRUE} if the dialup manager was initialized correctly. If this -function returns {\tt FALSE}, no other functions will work neither, so it is a +Returns {\tt true} if the dialup manager was initialized correctly. If this +function returns {\tt false}, no other functions will work neither, so it is a good idea to call this function and check its result before calling any other wxDialUpManager methods @@ -89,7 +89,7 @@ their number (may be $0$). \membersection{wxDialUpManager::Dial}\label{wxdialupmanagerdial} -\func{bool}{Dial}{\param{const wxString\& }{nameOfISP = wxEmptyString}, \param{const wxString\& }{username = wxEmptyString}, \param{const wxString\& }{password = wxEmptyString}, \param{bool }{async = TRUE}} +\func{bool}{Dial}{\param{const wxString\& }{nameOfISP = wxEmptyString}, \param{const wxString\& }{username = wxEmptyString}, \param{const wxString\& }{password = wxEmptyString}, \param{bool }{async = true}} Dial the given ISP, use {\it username} and {\it password} to authenticate. @@ -102,10 +102,10 @@ If no {\it nameOfISP} is given, the function will select the default one and if no username and/or password are given, the function will try to do without them, but will ask the user if really needed. -If {\it async} parameter is {\tt FALSE}, the function waits until the end of dialing -and returns {\tt TRUE} upon successful completion. +If {\it async} parameter is {\tt false}, the function waits until the end of dialing +and returns {\tt true} upon successful completion. -If {\it async} is {\tt TRUE}, the function only initiates the connection and +If {\it async} is {\tt true}, the function only initiates the connection and returns immediately - the result is reported via events (an event is sent anyhow, but if dialing failed it will be a DISCONNECTED one). @@ -113,7 +113,7 @@ anyhow, but if dialing failed it will be a DISCONNECTED one). \constfunc{bool}{IsDialing}{\void} -Returns TRUE if (async) dialing is in progress. +Returns true if (async) dialing is in progress. \wxheading{See also} @@ -124,7 +124,7 @@ Returns TRUE if (async) dialing is in progress. \func{bool}{CancelDialing}{\void} Cancel dialing the number initiated with \helpref{Dial}{wxdialupmanagerdial} -with async parameter equal to {\tt TRUE}. +with async parameter equal to {\tt true}. Note that this won't result in DISCONNECTED event being sent. @@ -142,7 +142,7 @@ Hang up the currently active dial up connection. \constfunc{bool}{IsAlwaysOnline}{\void} -Returns {\tt TRUE} if the computer has a permanent network connection (i.e. is +Returns {\tt true} if the computer has a permanent network connection (i.e. is on a LAN) and so there is no need to use Dial() function to go online. {\bf NB:} this functions tries to guess the result and it is not always @@ -153,14 +153,14 @@ confirmation or give him a possibility to override it. \constfunc{bool}{IsOnline}{\void} -Returns {\tt TRUE} if the computer is connected to the network: under Windows, +Returns {\tt true} if the computer is connected to the network: under Windows, this just means that a RAS connection exists, under Unix we check that the "well-known host" (as specified by \helpref{SetWellKnownHost}{wxdialupmanagersetwellknownhost}) is reachable. \membersection{wxDialUpManager::SetOnlineStatus}\label{wxdialupmanagersetonlinestatus} -\func{void}{SetOnlineStatus}{\param{bool }{isOnline = TRUE}} +\func{void}{SetOnlineStatus}{\param{bool }{isOnline = true}} Sometimes the built-in logic for determining the online status may fail, so, in general, the user should be allowed to override it. This function @@ -182,7 +182,7 @@ often should we repeat the check (each minute by default). Under Windows, the notification about the change of connection status is sent by the system and so we don't do any polling and this parameter is ignored. -Returns {\tt FALSE} if couldn't set up automatic check for online status. +Returns {\tt false} if couldn't set up automatic check for online status. \membersection{wxDialUpManager::DisableAutoCheckOnlineStatus}\label{wxdialupmanagerdisableautocheckonlinestatus} @@ -203,7 +203,7 @@ is always safe to call. The default value is {\tt www.yahoo.com:80}. \membersection{wxDialUpManager::SetConnectCommand}\label{wxdialupmanagersetconnectcommand} -\func{}{SetConnectCommand}{\param{const wxString\& }{commandDial = wxT("/usr/bin/pon")}, \param{const wxString\& }{commandHangup = wxT("/usr/bin/poff")}} +\func{void}{SetConnectCommand}{\param{const wxString\& }{commandDial = wxT("/usr/bin/pon")}, \param{const wxString\& }{commandHangup = wxT("/usr/bin/poff")}} This method is for Unix only.