2012-09-26 22:15:22 -07:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* 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/. */
|
|
|
|
|
2013-03-06 01:53:23 -08:00
|
|
|
#ifndef mozilla_dom_bluetooth_bluetoothtelephonylistener_h__
|
|
|
|
#define mozilla_dom_bluetooth_bluetoothtelephonylistener_h__
|
2012-09-26 22:15:22 -07:00
|
|
|
|
|
|
|
#include "BluetoothCommon.h"
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
2013-03-06 01:53:23 -08:00
|
|
|
#include "nsITelephonyProvider.h"
|
2012-09-26 22:15:22 -07:00
|
|
|
|
|
|
|
BEGIN_BLUETOOTH_NAMESPACE
|
|
|
|
|
2013-03-06 01:53:23 -08:00
|
|
|
class BluetoothTelephonyListener
|
2012-09-26 22:15:22 -07:00
|
|
|
{
|
|
|
|
public:
|
2013-03-06 01:53:23 -08:00
|
|
|
BluetoothTelephonyListener();
|
2012-09-26 22:15:22 -07:00
|
|
|
|
|
|
|
bool StartListening();
|
|
|
|
bool StopListening();
|
|
|
|
|
2013-03-06 01:53:23 -08:00
|
|
|
nsITelephonyListener* GetListener();
|
2012-10-09 04:19:29 -07:00
|
|
|
|
2012-09-26 22:15:22 -07:00
|
|
|
private:
|
2013-03-06 01:53:23 -08:00
|
|
|
nsCOMPtr<nsITelephonyListener> mTelephonyListener;
|
2012-09-26 22:15:22 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
END_BLUETOOTH_NAMESPACE
|
|
|
|
|
|
|
|
#endif
|