extIApplication.idl
Go to the documentation of this file.
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is FUEL.
15  *
16  * The Initial Developer of the Original Code is Mozilla Corporation.
17  * Portions created by the Initial Developer are Copyright (C) 2006
18  * the Initial Developer. All Rights Reserved.
19  *
20  * Contributor(s):
21  * Joey Minta <jminta@gmail.com> (Original Author)
22  * Mark Finkle <mfinkle@mozilla.com>
23  * John Resig <jresig@mozilla.com>
24  *
25  * Alternatively, the contents of this file may be used under the terms of
26  * either the GNU General Public License Version 2 or later (the "GPL"), or
27  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28  * in which case the provisions of the GPL or the LGPL are applicable instead
29  * of those above. If you wish to allow use of your version of this file only
30  * under the terms of either the GPL or the LGPL, and not to allow others to
31  * use your version of this file under the terms of the MPL, indicate your
32  * decision by deleting the provisions above and replace them with the notice
33  * and other provisions required by the GPL or the LGPL. If you do not delete
34  * the provisions above, a recipient may use your version of this file under
35  * the terms of any one of the MPL, the GPL or the LGPL.
36  *
37  * ***** END LICENSE BLOCK ***** */
38 
39 #include "nsISupports.idl"
40 
41 interface nsIVariant;
42 interface extIPreference;
43 interface extISessionStorage;
44 
45 
49 [scriptable, uuid(ae8482e0-aa5a-11db-abbd-0800200c9a66)]
51 {
57  void log(in AString aMsg);
58 
63  void open();
64 };
65 
66 
70 [scriptable, function, uuid(05281820-ab62-11db-abbd-0800200c9a66)]
72 {
76  readonly attribute AString type;
77 
83  readonly attribute nsIVariant data;
84 
88  void preventDefault();
89 };
90 
91 
95 [scriptable, function, uuid(2dfe3a50-ab2f-11db-abbd-0800200c9a66)]
97 {
105  void handleEvent(in extIEventItem aEvent);
106 };
107 
108 
112 [scriptable, uuid(3a8ec9d0-ab19-11db-abbd-0800200c9a66)]
114 {
127  void addListener(in AString aEvent, in extIEventListener aListener);
128 
138  void removeListener(in AString aEvent, in extIEventListener aListener);
139 };
140 
141 
150 [scriptable, uuid(ce697d40-aa5a-11db-abbd-0800200c9a66)]
152 {
156  readonly attribute AString root;
157 
161  readonly attribute nsIVariant all;
162 
167  readonly attribute extIEvents events;
168 
175  boolean has(in AString aName);
176 
183  extIPreference get(in AString aName);
184 
195  nsIVariant getValue(in AString aName, in nsIVariant aDefaultValue);
196 
204  void setValue(in AString aName, in nsIVariant aValue);
205 
209  void reset();
210 };
211 
216 [scriptable, uuid(2C7462E2-72C2-4473-9007-0E6AE71E23CA)]
218 {
222  readonly attribute AString name;
223 
227  readonly attribute AString type;
228 
232  attribute nsIVariant value;
233 
237  attribute boolean locked;
238 
242  readonly attribute boolean modified;
243 
247  readonly attribute extIPreferenceBranch branch;
248 
253  readonly attribute extIEvents events;
254 
258  void reset();
259 };
260 
261 
265 [scriptable, uuid(10cee02c-f6e0-4d61-ab27-c16572b18c46)]
267 {
271  readonly attribute AString id;
272 
276  readonly attribute AString name;
277 
281  readonly attribute boolean enabled;
282 
286  readonly attribute AString version;
287 
291  readonly attribute boolean firstRun;
292 
297  readonly attribute extIPreferenceBranch prefs;
298 
302  readonly attribute extISessionStorage storage;
303 
308  readonly attribute extIEvents events;
309 };
310 
311 
315 [scriptable, uuid(de281930-aa5a-11db-abbd-0800200c9a66)]
317 {
321  readonly attribute nsIVariant all;
322 
330  boolean has(in AString aId);
331 
339  extIExtension get(in AString aId);
340 };
341 
345 [scriptable, uuid(0787ac44-29b9-4889-b97f-13573aec6971)]
347 {
352  readonly attribute extIEvents events;
353 
361  boolean has(in AString aName);
362 
370  void set(in AString aName, in nsIVariant aValue);
371 
382  nsIVariant get(in AString aName, in nsIVariant aDefaultValue);
383 };
384 
385 [scriptable, uuid(e53d6610-7468-11dd-ad8b-0800200c9a66)]
387 {
391  readonly attribute AString id;
392 
396  readonly attribute AString name;
397 
401  readonly attribute AString version;
402 
406  readonly attribute extIConsole console;
407 
412  readonly attribute extIExtensions extensions;
413 
418  readonly attribute extIPreferenceBranch prefs;
419 
423  readonly attribute extISessionStorage storage;
424 
429  readonly attribute extIEvents events;
430 
435  boolean quit();
436 
441  boolean restart();
442 };
readonly attribute AString name
boolean restart()
#define C2
boolean has(in AString aName)
readonly attribute extIEvents events
readonly attribute extISessionStorage storage
readonly attribute boolean firstRun
readonly attribute AString name
readonly attribute AString type
onPageChanged aValue
Definition: FeedWriter.js:1395
readonly attribute AString id
readonly attribute boolean modified
readonly attribute AString version
readonly attribute nsIVariant all
void setValue(in AString aName, in nsIVariant aValue)
readonly attribute AString id
readonly attribute extIEvents events
void preventDefault()
readonly attribute nsIVariant data
readonly attribute AString version
var uuid
readonly attribute AString name
readonly attribute boolean enabled
readonly attribute AString type
readonly attribute extIPreferenceBranch branch
readonly attribute extIEvents events
void addListener(in AString aEvent, in extIEventListener aListener)
void handleEvent(in extIEventItem aEvent)
boolean has(in AString aId)
readonly attribute extIPreferenceBranch prefs
void log(in AString aMsg)
void removeListener(in AString aEvent, in extIEventListener aListener)
readonly attribute extISessionStorage storage
readonly attribute extIEvents events
nsIVariant getValue(in AString aName, in nsIVariant aDefaultValue)
void set(in AString aName, in nsIVariant aValue)
readonly attribute extIEvents events
readonly attribute extIConsole console
_updateCookies aName
readonly attribute extIPreferenceBranch prefs
boolean has(in AString aName)
readonly attribute extIExtensions extensions
attribute nsIVariant value
attribute boolean locked
readonly attribute AString root
readonly attribute nsIVariant all
boolean quit()