2012-02-28 14:01:48 -08: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/. */
|
|
|
|
|
|
|
|
#include "domstubs.idl"
|
|
|
|
#include "nsIDOMContactProperties.idl"
|
2012-06-14 10:13:12 -07:00
|
|
|
#include "nsIDOMEventTarget.idl"
|
2012-02-28 14:01:48 -08:00
|
|
|
|
|
|
|
interface nsIArray;
|
2013-02-03 04:05:51 -08:00
|
|
|
interface nsIDOMContactFindSortOptions;
|
2012-02-28 14:01:48 -08:00
|
|
|
interface nsIDOMContactFindOptions;
|
|
|
|
interface nsIDOMContactProperties;
|
|
|
|
interface nsIDOMDOMRequest;
|
2013-02-03 04:05:51 -08:00
|
|
|
interface nsIDOMDOMCursor;
|
2012-02-28 14:01:48 -08:00
|
|
|
|
|
|
|
[scriptable, uuid(da0f7040-388b-11e1-b86c-0800200c9a66)]
|
|
|
|
interface nsIDOMContact : nsIDOMContactProperties
|
|
|
|
{
|
|
|
|
attribute DOMString id;
|
|
|
|
readonly attribute jsval published;
|
|
|
|
readonly attribute jsval updated;
|
2012-06-14 10:13:12 -07:00
|
|
|
|
2012-02-28 14:01:48 -08:00
|
|
|
void init(in nsIDOMContactProperties properties); // Workaround BUG 723206
|
|
|
|
};
|
|
|
|
|
2013-02-03 04:05:51 -08:00
|
|
|
[scriptable, uuid(1d70322b-f11b-4f19-9586-7bf291f212aa)]
|
2012-02-28 14:01:48 -08:00
|
|
|
interface nsIDOMContactManager : nsISupports
|
|
|
|
{
|
|
|
|
nsIDOMDOMRequest find(in nsIDOMContactFindOptions options);
|
|
|
|
|
2013-02-03 04:05:51 -08:00
|
|
|
nsIDOMDOMCursor getAll(in nsIDOMContactFindSortOptions options);
|
|
|
|
|
2012-02-28 14:01:48 -08:00
|
|
|
nsIDOMDOMRequest clear();
|
|
|
|
|
|
|
|
nsIDOMDOMRequest save(in nsIDOMContact contact);
|
2013-02-03 04:05:51 -08:00
|
|
|
|
2012-02-28 14:01:48 -08:00
|
|
|
nsIDOMDOMRequest remove(in nsIDOMContact contact);
|
2012-05-08 11:42:41 -07:00
|
|
|
|
2012-06-01 10:07:07 -07:00
|
|
|
nsIDOMDOMRequest getSimContacts(in DOMString type);
|
|
|
|
|
2012-05-08 11:42:41 -07:00
|
|
|
attribute nsIDOMEventListener oncontactchange;
|
|
|
|
};
|