2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsNativeConnectionHelper_h__
|
|
|
|
#define nsNativeConnectionHelper_h__
|
|
|
|
|
|
|
|
#include "nscore.h"
|
|
|
|
|
|
|
|
class nsISocketTransport;
|
|
|
|
|
|
|
|
class nsNativeConnectionHelper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* OnConnectionFailed
|
|
|
|
*
|
2011-10-17 07:59:28 -07:00
|
|
|
* Return true if the connection should be re-attempted.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2014-01-04 07:02:17 -08:00
|
|
|
static bool OnConnectionFailed(const char16_t* hostName);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* IsAutoDialEnabled
|
|
|
|
*
|
2011-10-17 07:59:28 -07:00
|
|
|
* Return true if autodial is enabled in the operating system.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool IsAutodialEnabled();
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !nsNativeConnectionHelper_h__
|