michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsNativeConnectionHelper_h__ michael@0: #define nsNativeConnectionHelper_h__ michael@0: michael@0: #include "nscore.h" michael@0: michael@0: class nsISocketTransport; michael@0: michael@0: class nsNativeConnectionHelper michael@0: { michael@0: public: michael@0: /** michael@0: * OnConnectionFailed michael@0: * michael@0: * Return true if the connection should be re-attempted. michael@0: */ michael@0: static bool OnConnectionFailed(const char16_t* hostName); michael@0: michael@0: /** michael@0: * IsAutoDialEnabled michael@0: * michael@0: * Return true if autodial is enabled in the operating system. michael@0: */ michael@0: static bool IsAutodialEnabled(); michael@0: }; michael@0: michael@0: #endif // !nsNativeConnectionHelper_h__