2010-08-26 07:52:22 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
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/. */
|
2009-11-18 07:20:45 -08:00
|
|
|
|
|
|
|
#ifndef NSMAEMONETWORKMANAGER_H_
|
|
|
|
#define NSMAEMONETWORKMANAGER_H_
|
|
|
|
|
|
|
|
#include "nscore.h"
|
|
|
|
|
|
|
|
class nsMaemoNetworkManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Can be called from any thread, most likely the socket transport thread
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool OpenConnectionSync();
|
2009-11-18 07:20:45 -08:00
|
|
|
static void CloseConnection();
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool IsConnected();
|
|
|
|
static bool GetLinkStatusKnown();
|
2009-11-18 07:20:45 -08:00
|
|
|
|
|
|
|
// Called from the nsMaemoNetworkLinkService (main thread only)
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool Startup();
|
2009-11-18 07:20:45 -08:00
|
|
|
static void Shutdown();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* NSMAEMONETWORKMANAGER_H_ */
|