2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-09-22 09:34:00 +04: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/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_TelephonyCallback_h
|
|
|
|
#define mozilla_dom_TelephonyCallback_h
|
|
|
|
|
2014-09-22 09:35:00 +04:00
|
|
|
#include "nsAutoPtr.h"
|
2014-09-22 09:34:00 +04:00
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsITelephonyService.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2014-10-15 10:50:00 +04:00
|
|
|
|
|
|
|
class Promise;
|
|
|
|
|
2014-09-22 09:34:00 +04:00
|
|
|
namespace telephony {
|
|
|
|
|
2014-10-15 10:50:00 +04:00
|
|
|
class TelephonyCallback : public nsITelephonyCallback
|
2014-09-22 09:34:00 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSITELEPHONYCALLBACK
|
|
|
|
|
2014-10-11 01:28:35 +04:00
|
|
|
explicit TelephonyCallback(Promise* aPromise);
|
2014-09-22 09:35:00 +04:00
|
|
|
|
2014-10-15 10:50:00 +04:00
|
|
|
protected:
|
|
|
|
virtual ~TelephonyCallback() {}
|
2014-09-22 09:35:00 +04:00
|
|
|
|
2014-10-15 10:50:00 +04:00
|
|
|
protected:
|
2014-09-22 09:34:00 +04:00
|
|
|
nsRefPtr<Promise> mPromise;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace telephony
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_TelephonyCallback_h
|