home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2003-06-30 | 7.8 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Janne Salmijarvi Optimizer (music/janneSalmijarviOptimizer)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Jun 30 01:49:09 2003, modified Mon Jun 30 01:49:09 2003, creator 'CWIE', type ASCII, 7176 bytes "nsResetPref.js" , at 0x1c88 409 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 6e 73 52 65 73 65 | 74 50 72 65 66 2e 6a 73 |..nsRese|tPref.js|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 1c 08 00 | 00 01 99 bb 25 7f d5 bb |........|....%...|
|00000060| 25 7f d5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |%.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 df 88 00 00 |........|........|
|00000080| 2f 2a 20 2a 2a 2a 2a 2a | 20 42 45 47 49 4e 20 4c |/* *****| BEGIN L|
|00000090| 49 43 45 4e 53 45 20 42 | 4c 4f 43 4b 20 2a 2a 2a |ICENSE B|LOCK ***|
|000000a0| 2a 2a 0d 20 2a 20 56 65 | 72 73 69 6f 6e 3a 20 4d |**. * Ve|rsion: M|
|000000b0| 50 4c 20 31 2e 31 2f 47 | 50 4c 20 32 2e 30 2f 4c |PL 1.1/G|PL 2.0/L|
|000000c0| 47 50 4c 20 32 2e 31 0d | 20 2a 0d 20 2a 20 54 68 |GPL 2.1.| *. * Th|
|000000d0| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|000000e0| 69 73 20 66 69 6c 65 20 | 61 72 65 20 73 75 62 6a |is file |are subj|
|000000f0| 65 63 74 20 74 6f 20 74 | 68 65 20 4d 6f 7a 69 6c |ect to t|he Mozil|
|00000100| 6c 61 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |la Publi|c Licens|
|00000110| 65 20 56 65 72 73 69 6f | 6e 0d 20 2a 20 31 2e 31 |e Versio|n. * 1.1|
|00000120| 20 28 74 68 65 20 22 4c | 69 63 65 6e 73 65 22 29 | (the "L|icense")|
|00000130| 3b 20 79 6f 75 20 6d 61 | 79 20 6e 6f 74 20 75 73 |; you ma|y not us|
|00000140| 65 20 74 68 69 73 20 66 | 69 6c 65 20 65 78 63 65 |e this f|ile exce|
|00000150| 70 74 20 69 6e 20 63 6f | 6d 70 6c 69 61 6e 63 65 |pt in co|mpliance|
|00000160| 20 77 69 74 68 0d 20 2a | 20 74 68 65 20 4c 69 63 | with. *| the Lic|
|00000170| 65 6e 73 65 2e 20 59 6f | 75 20 6d 61 79 20 6f 62 |ense. Yo|u may ob|
|00000180| 74 61 69 6e 20 61 20 63 | 6f 70 79 20 6f 66 20 74 |tain a c|opy of t|
|00000190| 68 65 20 4c 69 63 65 6e | 73 65 20 61 74 0d 20 2a |he Licen|se at. *|
|000001a0| 20 68 74 74 70 3a 2f 2f | 77 77 77 2e 6d 6f 7a 69 | http://|www.mozi|
|000001b0| 6c 6c 61 2e 6f 72 67 2f | 4d 50 4c 2f 0d 20 2a 0d |lla.org/|MPL/. *.|
|000001c0| 20 2a 20 53 6f 66 74 77 | 61 72 65 20 64 69 73 74 | * Softw|are dist|
|000001d0| 72 69 62 75 74 65 64 20 | 75 6e 64 65 72 20 74 68 |ributed |under th|
|000001e0| 65 20 4c 69 63 65 6e 73 | 65 20 69 73 20 64 69 73 |e Licens|e is dis|
|000001f0| 74 72 69 62 75 74 65 64 | 20 6f 6e 20 61 6e 20 22 |tributed| on an "|
|00000200| 41 53 20 49 53 22 20 62 | 61 73 69 73 2c 0d 20 2a |AS IS" b|asis,. *|
|00000210| 20 57 49 54 48 4f 55 54 | 20 57 41 52 52 41 4e 54 | WITHOUT| WARRANT|
|00000220| 59 20 4f 46 20 41 4e 59 | 20 4b 49 4e 44 2c 20 65 |Y OF ANY| KIND, e|
|00000230| 69 74 68 65 72 20 65 78 | 70 72 65 73 73 20 6f 72 |ither ex|press or|
|00000240| 20 69 6d 70 6c 69 65 64 | 2e 20 53 65 65 20 74 68 | implied|. See th|
|00000250| 65 20 4c 69 63 65 6e 73 | 65 0d 20 2a 20 66 6f 72 |e Licens|e. * for|
|00000260| 20 74 68 65 20 73 70 65 | 63 69 66 69 63 20 6c 61 | the spe|cific la|
|00000270| 6e 67 75 61 67 65 20 67 | 6f 76 65 72 6e 69 6e 67 |nguage g|overning|
|00000280| 20 72 69 67 68 74 73 20 | 61 6e 64 20 6c 69 6d 69 | rights |and limi|
|00000290| 74 61 74 69 6f 6e 73 20 | 75 6e 64 65 72 20 74 68 |tations |under th|
|000002a0| 65 0d 20 2a 20 4c 69 63 | 65 6e 73 65 2e 0d 20 2a |e. * Lic|ense.. *|
|000002b0| 0d 20 2a 20 54 68 65 20 | 4f 72 69 67 69 6e 61 6c |. * The |Original|
|000002c0| 20 43 6f 64 65 20 69 73 | 20 4d 6f 7a 69 6c 6c 61 | Code is| Mozilla|
|000002d0| 20 50 72 65 66 20 52 65 | 73 65 74 74 65 72 2e 0d | Pref Re|setter..|
|000002e0| 20 2a 0d 20 2a 20 54 68 | 65 20 49 6e 69 74 69 61 | *. * Th|e Initia|
|000002f0| 6c 20 44 65 76 65 6c 6f | 70 65 72 20 6f 66 20 74 |l Develo|per of t|
|00000300| 68 65 20 4f 72 69 67 69 | 6e 61 6c 20 43 6f 64 65 |he Origi|nal Code|
|00000310| 20 69 73 0d 20 2a 20 4e | 65 74 73 63 61 70 65 20 | is. * N|etscape |
|00000320| 43 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 73 20 43 |Communic|ations C|
|00000330| 6f 72 70 2e 0d 20 2a 20 | 50 6f 72 74 69 6f 6e 73 |orp.. * |Portions|
|00000340| 20 63 72 65 61 74 65 64 | 20 62 79 20 74 68 65 20 | created| by the |
|00000350| 49 6e 69 74 69 61 6c 20 | 44 65 76 65 6c 6f 70 65 |Initial |Develope|
|00000360| 72 20 61 72 65 20 43 6f | 70 79 72 69 67 68 74 20 |r are Co|pyright |
|00000370| 28 43 29 20 32 30 30 32 | 0d 20 2a 20 74 68 65 20 |(C) 2002|. * the |
|00000380| 49 6e 69 74 69 61 6c 20 | 44 65 76 65 6c 6f 70 65 |Initial |Develope|
|00000390| 72 2e 20 41 6c 6c 20 52 | 69 67 68 74 73 20 52 65 |r. All R|ights Re|
|000003a0| 73 65 72 76 65 64 2e 0d | 20 2a 0d 20 2a 20 43 6f |served..| *. * Co|
|000003b0| 6e 74 72 69 62 75 74 6f | 72 28 73 29 3a 0d 20 2a |ntributo|r(s):. *|
|000003c0| 20 20 20 42 69 6c 6c 20 | 4c 61 77 20 20 3c 6c 61 | Bill |Law <la|
|000003d0| 77 40 6e 65 74 73 63 61 | 70 65 2e 63 6f 6d 3e 0d |w@netsca|pe.com>.|
|000003e0| 20 2a 0d 20 2a 20 41 6c | 74 65 72 6e 61 74 69 76 | *. * Al|ternativ|
|000003f0| 65 6c 79 2c 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |ely, the| content|
|00000400| 73 20 6f 66 20 74 68 69 | 73 20 66 69 6c 65 20 6d |s of thi|s file m|
|00000410| 61 79 20 62 65 20 75 73 | 65 64 20 75 6e 64 65 72 |ay be us|ed under|
|00000420| 20 74 68 65 20 74 65 72 | 6d 73 20 6f 66 0d 20 2a | the ter|ms of. *|
|00000430| 20 65 69 74 68 65 72 20 | 74 68 65 20 47 4e 55 20 | either |the GNU |
|00000440| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00000450| 69 63 65 6e 73 65 20 56 | 65 72 73 69 6f 6e 20 32 |icense V|ersion 2|
|00000460| 20 6f 72 20 6c 61 74 65 | 72 20 28 74 68 65 20 22 | or late|r (the "|
|00000470| 47 50 4c 22 29 2c 20 6f | 72 0d 20 2a 20 74 68 65 |GPL"), o|r. * the|
|00000480| 20 47 4e 55 20 4c 65 73 | 73 65 72 20 47 65 6e 65 | GNU Les|ser Gene|
|00000490| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|000004a0| 73 65 20 56 65 72 73 69 | 6f 6e 20 32 2e 31 20 6f |se Versi|on 2.1 o|
|000004b0| 72 20 6c 61 74 65 72 20 | 28 74 68 65 20 22 4c 47 |r later |(the "LG|
|000004c0| 50 4c 22 29 2c 0d 20 2a | 20 69 6e 20 77 68 69 63 |PL"),. *| in whic|
|000004d0| 68 20 63 61 73 65 20 74 | 68 65 20 70 72 6f 76 69 |h case t|he provi|
|000004e0| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 47 50 4c |sions of| the GPL|
|000004f0| 20 6f 72 20 74 68 65 20 | 4c 47 50 4c 20 61 72 65 | or the |LGPL are|
|00000500| 20 61 70 70 6c 69 63 61 | 62 6c 65 20 69 6e 73 74 | applica|ble inst|
|00000510| 65 61 64 0d 20 2a 20 6f | 66 20 74 68 6f 73 65 20 |ead. * o|f those |
|00000520| 61 62 6f 76 65 2e 20 49 | 66 20 79 6f 75 20 77 69 |above. I|f you wi|
|00000530| 73 68 20 74 6f 20 61 6c | 6c 6f 77 20 75 73 65 20 |sh to al|low use |
|00000540| 6f 66 20 79 6f 75 72 20 | 76 65 72 73 69 6f 6e 20 |of your |version |
|00000550| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 20 6f 6e 6c |of this |file onl|
|00000560| 79 0d 20 2a 20 75 6e 64 | 65 72 20 74 68 65 20 74 |y. * und|er the t|
|00000570| 65 72 6d 73 20 6f 66 20 | 65 69 74 68 65 72 20 74 |erms of |either t|
|00000580| 68 65 20 47 50 4c 20 6f | 72 20 74 68 65 20 4c 47 |he GPL o|r the LG|
|00000590| 50 4c 2c 20 61 6e 64 20 | 6e 6f 74 20 74 6f 20 61 |PL, and |not to a|
|000005a0| 6c 6c 6f 77 20 6f 74 68 | 65 72 73 20 74 6f 0d 20 |llow oth|ers to. |
|000005b0| 2a 20 75 73 65 20 79 6f | 75 72 20 76 65 72 73 69 |* use yo|ur versi|
|000005c0| 6f 6e 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |on of th|is file |
|000005d0| 75 6e 64 65 72 20 74 68 | 65 20 74 65 72 6d 73 20 |under th|e terms |
|000005e0| 6f 66 20 74 68 65 20 4d | 50 4c 2c 20 69 6e 64 69 |of the M|PL, indi|
|000005f0| 63 61 74 65 20 79 6f 75 | 72 0d 20 2a 20 64 65 63 |cate you|r. * dec|
|00000600| 69 73 69 6f 6e 20 62 79 | 20 64 65 6c 65 74 69 6e |ision by| deletin|
|00000610| 67 20 74 68 65 20 70 72 | 6f 76 69 73 69 6f 6e 73 |g the pr|ovisions|
|00000620| 20 61 62 6f 76 65 20 61 | 6e 64 20 72 65 70 6c 61 | above a|nd repla|
|00000630| 63 65 20 74 68 65 6d 20 | 77 69 74 68 20 74 68 65 |ce them |with the|
|00000640| 20 6e 6f 74 69 63 65 0d | 20 2a 20 61 6e 64 20 6f | notice.| * and o|
|00000650| 74 68 65 72 20 70 72 6f | 76 69 73 69 6f 6e 73 20 |ther pro|visions |
|00000660| 72 65 71 75 69 72 65 64 | 20 62 79 20 74 68 65 20 |required| by the |
|00000670| 47 50 4c 20 6f 72 20 74 | 68 65 20 4c 47 50 4c 2e |GPL or t|he LGPL.|
|00000680| 20 49 66 20 79 6f 75 20 | 64 6f 20 6e 6f 74 20 64 | If you |do not d|
|00000690| 65 6c 65 74 65 0d 20 2a | 20 74 68 65 20 70 72 6f |elete. *| the pro|
|000006a0| 76 69 73 69 6f 6e 73 20 | 61 62 6f 76 65 2c 20 61 |visions |above, a|
|000006b0| 20 72 65 63 69 70 69 65 | 6e 74 20 6d 61 79 20 75 | recipie|nt may u|
|000006c0| 73 65 20 79 6f 75 72 20 | 76 65 72 73 69 6f 6e 20 |se your |version |
|000006d0| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 20 75 6e 64 |of this |file und|
|000006e0| 65 72 0d 20 2a 20 74 68 | 65 20 74 65 72 6d 73 20 |er. * th|e terms |
|000006f0| 6f 66 20 61 6e 79 20 6f | 6e 65 20 6f 66 20 74 68 |of any o|ne of th|
|00000700| 65 20 4d 50 4c 2c 20 74 | 68 65 20 47 50 4c 20 6f |e MPL, t|he GPL o|
|00000710| 72 20 74 68 65 20 4c 47 | 50 4c 2e 0d 20 2a 0d 20 |r the LG|PL.. *. |
|00000720| 2a 20 2a 2a 2a 2a 2a 20 | 45 4e 44 20 4c 49 43 45 |* ***** |END LICE|
|00000730| 4e 53 45 20 42 4c 4f 43 | 4b 20 2a 2a 2a 2a 2a 20 |NSE BLOC|K ***** |
|00000740| 2a 2f 0d 0d 2f 2a 20 54 | 68 69 73 20 66 69 6c 65 |*/../* T|his file|
|00000750| 20 69 6d 70 6c 65 6d 65 | 6e 74 73 20 74 68 65 20 | impleme|nts the |
|00000760| 6e 73 49 43 6d 64 4c 69 | 6e 65 48 61 6e 64 6c 65 |nsICmdLi|neHandle|
|00000770| 72 20 69 6e 74 65 72 66 | 61 63 65 2e 20 20 53 65 |r interf|ace. Se|
|00000780| 65 20 6e 73 49 43 6d 64 | 4c 69 6e 65 48 61 6e 64 |e nsICmd|LineHand|
|00000790| 6c 65 72 2e 69 64 6c 0d | 20 2a 20 61 74 20 68 74 |ler.idl.| * at ht|
|000007a0| 74 70 3a 2f 2f 6c 78 72 | 2e 6d 6f 7a 69 6c 6c 61 |tp://lxr|.mozilla|
|000007b0| 2e 6f 72 67 2f 73 65 61 | 6d 6f 6e 6b 65 79 2f 73 |.org/sea|monkey/s|
|000007c0| 6f 75 72 63 65 2f 78 70 | 66 65 2f 61 70 70 73 68 |ource/xp|fe/appsh|
|000007d0| 65 6c 6c 2f 70 75 62 6c | 69 63 2f 6e 73 49 43 6d |ell/publ|ic/nsICm|
|000007e0| 64 4c 69 6e 65 48 61 6e | 64 6c 65 72 2e 69 64 6c |dLineHan|dler.idl|
|000007f0| 2e 0d 20 2a 0d 20 2a 20 | 54 68 69 73 20 63 6f 6d |.. *. * |This com|
|00000800| 70 6f 6e 65 6e 74 20 68 | 61 6e 64 6c 65 73 20 74 |ponent h|andles t|
|00000810| 68 65 20 73 74 61 72 74 | 75 70 20 63 6f 6d 6d 61 |he start|up comma|
|00000820| 6e 64 20 6c 69 6e 65 20 | 61 72 67 75 6d 65 6e 74 |nd line |argument|
|00000830| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 3a 0d 20 2a | of the |form:. *|
|00000840| 20 20 20 2d 72 65 73 65 | 74 50 72 65 66 20 70 72 | -rese|tPref pr|
|00000850| 65 66 31 2c 70 72 65 66 | 32 2c 70 72 65 66 33 0d |ef1,pref|2,pref3.|
|00000860| 20 2a 20 62 79 20 72 65 | 73 65 74 74 69 6e 67 20 | * by re|setting |
|00000870| 74 68 65 20 75 73 65 72 | 20 70 72 65 66 73 20 70 |the user| prefs p|
|00000880| 72 65 66 31 2c 20 70 72 | 65 66 32 2c 20 61 6e 64 |ref1, pr|ef2, and|
|00000890| 20 70 72 65 66 33 20 28 | 61 6e 20 61 72 62 69 74 | pref3 (|an arbit|
|000008a0| 72 61 72 79 20 6c 69 73 | 74 20 6f 66 20 70 72 65 |rary lis|t of pre|
|000008b0| 66 20 6e 61 6d 65 73 0d | 20 2a 20 73 65 70 61 72 |f names.| * separ|
|000008c0| 61 74 65 64 20 62 79 20 | 63 6f 6d 6d 61 73 29 2e |ated by |commas).|
|000008d0| 0d 20 2a 0d 20 2a 20 54 | 68 65 20 6d 6f 64 75 6c |. *. * T|he modul|
|000008e0| 65 20 69 73 20 72 65 67 | 69 73 74 65 72 65 64 20 |e is reg|istered |
|000008f0| 75 6e 64 65 72 20 74 68 | 65 20 63 6f 6e 74 72 61 |under th|e contra|
|00000900| 63 74 69 64 0d 20 2a 20 | 20 20 22 40 6d 6f 7a 69 |ctid. * | "@mozi|
|00000910| 6c 6c 61 2e 6f 72 67 2f | 63 6f 6d 6d 61 6e 64 6c |lla.org/|commandl|
|00000920| 69 6e 65 68 61 6e 64 6c | 65 72 2f 67 65 6e 65 72 |inehandl|er/gener|
|00000930| 61 6c 2d 73 74 61 72 74 | 75 70 3b 31 3f 74 79 70 |al-start|up;1?typ|
|00000940| 65 3d 72 65 73 65 74 50 | 72 65 66 22 0d 20 2a 0d |e=resetP|ref". *.|
|00000950| 20 2a 20 54 68 65 20 69 | 6d 70 6c 65 6d 65 6e 74 | * The i|mplement|
|00000960| 61 74 69 6f 6e 20 63 6f | 6e 73 69 73 74 73 20 6f |ation co|nsists o|
|00000970| 66 20 61 20 4a 61 76 61 | 53 63 72 69 70 74 20 22 |f a Java|Script "|
|00000980| 63 6c 61 73 73 22 20 6e | 61 6d 65 64 20 6e 73 52 |class" n|amed nsR|
|00000990| 65 73 65 74 50 72 65 66 | 2c 0d 20 2a 20 63 6f 6d |esetPref|,. * com|
|000009a0| 70 72 69 73 65 64 20 6f | 66 3a 0d 20 2a 20 20 20 |prised o|f:. * |
|000009b0| 2d 20 61 20 4a 53 20 63 | 6f 6e 73 74 72 75 63 74 |- a JS c|onstruct|
|000009c0| 6f 72 20 66 75 6e 63 74 | 69 6f 6e 0d 20 2a 20 20 |or funct|ion. * |
|000009d0| 20 2d 20 61 20 70 72 6f | 74 6f 74 79 70 65 20 70 | - a pro|totype p|
|000009e0| 72 6f 76 69 64 69 6e 67 | 20 61 6c 6c 20 74 68 65 |roviding| all the|
|000009f0| 20 69 6e 74 65 72 66 61 | 63 65 20 6d 65 74 68 6f | interfa|ce metho|
|00000a00| 64 73 20 61 6e 64 20 69 | 6d 70 6c 65 6d 65 6e 74 |ds and i|mplement|
|00000a10| 61 74 69 6f 6e 20 73 74 | 75 66 66 0d 20 2a 0d 20 |ation st|uff. *. |
|00000a20| 2a 20 49 6e 20 61 64 64 | 69 74 69 6f 6e 2c 20 74 |* In add|ition, t|
|00000a30| 68 69 73 20 66 69 6c 65 | 20 69 6d 70 6c 65 6d 65 |his file| impleme|
|00000a40| 6e 74 73 20 61 6e 20 6e | 73 49 4d 6f 64 75 6c 65 |nts an n|sIModule|
|00000a50| 20 6f 62 6a 65 63 74 20 | 74 68 61 74 20 72 65 67 | object |that reg|
|00000a60| 69 73 74 65 72 73 20 74 | 68 65 0d 20 2a 20 6e 73 |isters t|he. * ns|
|00000a70| 52 65 73 65 74 50 72 65 | 66 20 63 6f 6d 70 6f 6e |ResetPre|f compon|
|00000a80| 65 6e 74 2e 0d 20 2a 2f | 0d 0d 2f 2a 20 63 74 6f |ent.. */|../* cto|
|00000a90| 72 0d 20 2a 2f 0d 66 75 | 6e 63 74 69 6f 6e 20 6e |r. */.fu|nction n|
|00000aa0| 73 52 65 73 65 74 50 72 | 65 66 28 29 20 7b 0d 7d |sResetPr|ef() {.}|
|00000ab0| 0d 0d 6e 73 52 65 73 65 | 74 50 72 65 66 2e 70 72 |..nsRese|tPref.pr|
|00000ac0| 6f 74 6f 74 79 70 65 20 | 3d 20 7b 0d 20 20 20 20 |ototype |= {. |
|00000ad0| 2f 2f 20 54 75 72 6e 20 | 74 68 69 73 20 6f 6e 20 |// Turn |this on |
|00000ae0| 74 6f 20 67 65 74 20 64 | 65 62 75 67 67 69 6e 67 |to get d|ebugging|
|00000af0| 20 6d 65 73 73 61 67 65 | 73 2e 0d 20 20 20 20 64 | message|s.. d|
|00000b00| 65 62 75 67 3a 20 66 61 | 6c 73 65 2c 0d 0d 20 20 |ebug: fa|lse,.. |
|00000b10| 20 20 2f 2f 20 6e 73 49 | 43 6d 64 4c 69 6e 65 48 | // nsI|CmdLineH|
|00000b20| 61 6e 64 6c 65 72 20 69 | 6e 74 65 72 66 61 63 65 |andler i|nterface|
|00000b30| 0d 20 20 20 20 67 65 74 | 20 63 6f 6d 6d 61 6e 64 |. get| command|
|00000b40| 4c 69 6e 65 41 72 67 75 | 6d 65 6e 74 28 29 20 7b |LineArgu|ment() {|
|00000b50| 20 74 68 72 6f 77 20 43 | 6f 6d 70 6f 6e 65 6e 74 | throw C|omponent|
|00000b60| 73 2e 72 65 73 75 6c 74 | 73 2e 4e 53 5f 45 52 52 |s.result|s.NS_ERR|
|00000b70| 4f 52 5f 4e 4f 54 5f 49 | 4d 50 4c 45 4d 45 4e 54 |OR_NOT_I|MPLEMENT|
|00000b80| 45 44 3b 20 7d 2c 0d 20 | 20 20 20 67 65 74 20 70 |ED; },. | get p|
|00000b90| 72 65 66 4e 61 6d 65 46 | 6f 72 53 74 61 72 74 75 |refNameF|orStartu|
|00000ba0| 70 28 29 20 20 7b 20 74 | 68 72 6f 77 20 43 6f 6d |p() { t|hrow Com|
|00000bb0| 70 6f 6e 65 6e 74 73 2e | 72 65 73 75 6c 74 73 2e |ponents.|results.|
|00000bc0| 4e 53 5f 45 52 52 4f 52 | 5f 4e 4f 54 5f 49 4d 50 |NS_ERROR|_NOT_IMP|
|00000bd0| 4c 45 4d 45 4e 54 45 44 | 3b 20 7d 2c 0d 20 20 20 |LEMENTED|; },. |
|00000be0| 20 67 65 74 20 63 68 72 | 6f 6d 65 55 72 6c 46 6f | get chr|omeUrlFo|
|00000bf0| 72 54 61 73 6b 28 29 20 | 20 20 20 7b 20 0d 20 20 |rTask() | { . |
|00000c00| 20 20 20 20 20 20 74 72 | 79 20 7b 0d 20 20 20 20 | tr|y {. |
|00000c10| 20 20 20 20 20 20 20 20 | 2f 2f 20 57 65 20 74 72 | |// We tr|
|00000c20| 75 73 74 20 74 68 61 74 | 20 74 68 69 73 20 68 61 |ust that| this ha|
|00000c30| 73 20 62 65 65 6e 20 63 | 61 6c 6c 65 64 20 64 75 |s been c|alled du|
|00000c40| 72 69 6e 67 20 63 6f 6d | 6d 61 6e 64 2d 6c 69 6e |ring com|mand-lin|
|00000c50| 65 20 68 61 6e 64 6c 69 | 6e 67 20 64 75 72 69 6e |e handli|ng durin|
|00000c60| 67 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f |g. | //|
|00000c70| 20 73 74 61 72 74 75 70 | 20 66 72 6f 6d 20 6e 73 | startup| from ns|
|00000c80| 41 70 70 52 75 6e 6e 65 | 72 2e 63 70 70 2e 0d 0d |AppRunne|r.cpp...|
|00000c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 57 | | // W|
|00000ca0| 65 20 67 65 74 20 74 68 | 65 20 63 6f 6d 6d 61 6e |e get th|e comman|
|00000cb0| 64 20 6c 69 6e 65 20 73 | 65 72 76 69 63 65 20 61 |d line s|ervice a|
|00000cc0| 6e 64 20 66 72 6f 6d 20 | 74 68 61 74 20 74 68 65 |nd from |that the|
|00000cd0| 20 2d 72 65 73 65 74 50 | 72 65 66 20 61 72 67 75 | -resetP|ref argu|
|00000ce0| 6d 65 6e 74 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |ment.. | |
|00000cf0| 20 20 76 61 72 20 63 6d | 64 4c 69 6e 65 20 20 3d | var cm|dLine =|
|00000d00| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 63 6c 61 73 | Compone|nts.clas|
|00000d10| 73 65 73 5b 20 22 40 6d | 6f 7a 69 6c 6c 61 2e 6f |ses[ "@m|ozilla.o|
|00000d20| 72 67 2f 61 70 70 73 68 | 65 6c 6c 2f 63 6f 6d 6d |rg/appsh|ell/comm|
|00000d30| 61 6e 64 4c 69 6e 65 53 | 65 72 76 69 63 65 3b 31 |andLineS|ervice;1|
|00000d40| 22 20 5d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |" ]. | |
|00000d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d60| 20 2e 67 65 74 53 65 72 | 76 69 63 65 28 20 43 6f | .getSer|vice( Co|
|00000d70| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa|
|00000d80| 63 65 73 2e 6e 73 49 43 | 6d 64 4c 69 6e 65 53 65 |ces.nsIC|mdLineSe|
|00000d90| 72 76 69 63 65 20 29 3b | 0d 20 20 20 20 20 20 20 |rvice );|. |
|00000da0| 20 20 20 20 20 76 61 72 | 20 70 72 65 66 4c 69 73 | var| prefLis|
|00000db0| 74 20 3d 20 63 6d 64 4c | 69 6e 65 2e 67 65 74 43 |t = cmdL|ine.getC|
|00000dc0| 6d 64 4c 69 6e 65 56 61 | 6c 75 65 28 20 22 2d 72 |mdLineVa|lue( "-r|
|00000dd0| 65 73 65 74 50 72 65 66 | 22 20 29 2e 73 70 6c 69 |esetPref|" ).spli|
|00000de0| 74 28 20 22 2c 22 20 29 | 3b 0d 0d 20 20 20 20 20 |t( "," )|;.. |
|00000df0| 20 20 20 20 20 20 20 2f | 2f 20 47 65 74 20 70 72 | /|/ Get pr|
|00000e00| 65 66 20 73 65 72 76 69 | 63 65 2e 0d 20 20 20 20 |ef servi|ce.. |
|00000e10| 20 20 20 20 20 20 20 20 | 76 61 72 20 70 72 65 66 | |var pref|
|00000e20| 73 20 20 20 20 3d 20 43 | 6f 6d 70 6f 6e 65 6e 74 |s = C|omponent|
|00000e30| 73 2e 63 6c 61 73 73 65 | 73 5b 20 22 40 6d 6f 7a |s.classe|s[ "@moz|
|00000e40| 69 6c 6c 61 2e 6f 72 67 | 2f 70 72 65 66 65 72 65 |illa.org|/prefere|
|00000e50| 6e 63 65 73 2d 73 65 72 | 76 69 63 65 3b 31 22 20 |nces-ser|vice;1" |
|00000e60| 5d 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |]. | |
|00000e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2e | | .|
|00000e80| 67 65 74 53 65 72 76 69 | 63 65 28 20 43 6f 6d 70 |getServi|ce( Comp|
|00000e90| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface|
|00000ea0| 73 2e 6e 73 49 50 72 65 | 66 53 65 72 76 69 63 65 |s.nsIPre|fService|
|00000eb0| 20 29 3b 0d 0d 20 20 20 | 20 20 20 20 20 20 20 20 | );.. | |
|00000ec0| 20 2f 2f 20 46 6f 72 20 | 65 61 63 68 20 70 72 65 | // For |each pre|
|00000ed0| 66 20 73 70 65 63 69 66 | 69 65 64 20 6f 6e 20 74 |f specif|ied on t|
|00000ee0| 68 65 20 63 6d 64 20 6c | 69 6e 65 2c 20 72 65 73 |he cmd l|ine, res|
|00000ef0| 65 74 20 74 68 65 20 75 | 73 65 72 20 70 72 65 66 |et the u|ser pref|
|00000f00| 20 76 61 6c 75 65 2e 0d | 20 20 20 20 20 20 20 20 | value..| |
|00000f10| 20 20 20 20 66 6f 72 20 | 28 20 69 20 69 6e 20 70 | for |( i in p|
|00000f20| 72 65 66 4c 69 73 74 20 | 29 20 7b 0d 20 20 20 20 |refList |) {. |
|00000f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 76 61 72 20 | | var |
|00000f40| 70 72 65 66 20 3d 20 70 | 72 65 66 73 2e 67 65 74 |pref = p|refs.get|
|00000f50| 42 72 61 6e 63 68 28 20 | 70 72 65 66 4c 69 73 74 |Branch( |prefList|
|00000f60| 5b 20 69 20 5d 20 29 3b | 0d 20 20 20 20 20 20 20 |[ i ] );|. |
|00000f70| 20 20 20 20 20 20 20 20 | 20 74 72 79 20 7b 0d 20 | | try {. |
|00000f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f90| 20 20 20 70 72 65 66 2e | 63 6c 65 61 72 55 73 65 | pref.|clearUse|
|00000fa0| 72 50 72 65 66 28 20 22 | 22 20 29 3b 0d 20 20 20 |rPref( "|" );. |
|00000fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 20 63 | | } c|
|00000fc0| 61 74 63 68 28 20 65 20 | 29 20 7b 0d 20 20 20 20 |atch( e |) {. |
|00000fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0d 20 20 | | }. |
|00000fe0| 20 20 20 20 20 20 20 20 | 20 20 7d 0d 20 20 20 20 | | }. |
|00000ff0| 20 20 20 20 7d 20 63 61 | 74 63 68 28 20 65 20 29 | } ca|tch( e )|
|00001000| 20 7b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | {. | t|
|00001010| 68 69 73 2e 64 75 6d 70 | 28 20 22 65 78 63 65 70 |his.dump|( "excep|
|00001020| 74 69 6f 6e 3a 20 22 20 | 2b 20 65 20 29 3b 0d 20 |tion: " |+ e );. |
|00001030| 20 20 20 20 20 20 20 7d | 0d 0d 20 20 20 20 20 20 | }|.. |
|00001040| 20 20 2f 2f 20 52 65 74 | 75 72 6e 20 61 6e 20 65 | // Ret|urn an e|
|00001050| 72 72 6f 72 20 28 73 6f | 20 6e 73 41 70 70 52 75 |rror (so| nsAppRu|
|00001060| 6e 6e 65 72 20 64 6f 65 | 73 6e 27 74 20 74 68 69 |nner doe|sn't thi|
|00001070| 6e 6b 20 77 65 27 76 65 | 20 6f 70 65 6e 65 64 20 |nk we've| opened |
|00001080| 61 20 77 69 6e 64 6f 77 | 29 2e 0d 20 20 20 20 20 |a window|).. |
|00001090| 20 20 20 74 68 72 6f 77 | 20 43 6f 6d 70 6f 6e 65 | throw| Compone|
|000010a0| 6e 74 73 2e 72 65 73 75 | 6c 74 73 2e 4e 53 5f 45 |nts.resu|lts.NS_E|
|000010b0| 52 52 4f 52 5f 4e 4f 54 | 5f 49 4d 50 4c 45 4d 45 |RROR_NOT|_IMPLEME|
|000010c0| 4e 54 45 44 3b 0d 20 20 | 20 20 7d 2c 0d 20 20 20 |NTED;. | },. |
|000010d0| 20 67 65 74 20 68 65 6c | 70 54 65 78 74 28 29 20 | get hel|pText() |
|000010e0| 20 20 20 20 20 20 20 20 | 20 20 20 7b 20 74 68 72 | | { thr|
|000010f0| 6f 77 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 72 65 |ow Compo|nents.re|
|00001100| 73 75 6c 74 73 2e 4e 53 | 5f 45 52 52 4f 52 5f 4e |sults.NS|_ERROR_N|
|00001110| 4f 54 5f 49 4d 50 4c 45 | 4d 45 4e 54 45 44 3b 20 |OT_IMPLE|MENTED; |
|00001120| 7d 2c 0d 20 20 20 20 67 | 65 74 20 68 61 6e 64 6c |},. g|et handl|
|00001130| 65 73 41 72 67 73 28 29 | 20 20 20 20 20 20 20 20 |esArgs()| |
|00001140| 20 7b 20 74 68 72 6f 77 | 20 43 6f 6d 70 6f 6e 65 | { throw| Compone|
|00001150| 6e 74 73 2e 72 65 73 75 | 6c 74 73 2e 4e 53 5f 45 |nts.resu|lts.NS_E|
|00001160| 52 52 4f 52 5f 4e 4f 54 | 5f 49 4d 50 4c 45 4d 45 |RROR_NOT|_IMPLEME|
|00001170| 4e 54 45 44 3b 20 7d 2c | 20 0d 20 20 20 20 67 65 |NTED; },| . ge|
|00001180| 74 20 64 65 66 61 75 6c | 74 41 72 67 73 28 29 20 |t defaul|tArgs() |
|00001190| 20 20 20 20 20 20 20 20 | 7b 20 74 68 72 6f 77 20 | |{ throw |
|000011a0| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 72 65 73 75 6c |Componen|ts.resul|
|000011b0| 74 73 2e 4e 53 5f 45 52 | 52 4f 52 5f 4e 4f 54 5f |ts.NS_ER|ROR_NOT_|
|000011c0| 49 4d 50 4c 45 4d 45 4e | 54 45 44 3b 20 7d 2c 20 |IMPLEMEN|TED; }, |
|000011d0| 0d 20 20 20 20 67 65 74 | 20 6f 70 65 6e 57 69 6e |. get| openWin|
|000011e0| 64 6f 77 57 69 74 68 41 | 72 67 73 28 29 20 20 7b |dowWithA|rgs() {|
|000011f0| 20 74 68 72 6f 77 20 43 | 6f 6d 70 6f 6e 65 6e 74 | throw C|omponent|
|00001200| 73 2e 72 65 73 75 6c 74 | 73 2e 4e 53 5f 45 52 52 |s.result|s.NS_ERR|
|00001210| 4f 52 5f 4e 4f 54 5f 49 | 4d 50 4c 45 4d 45 4e 54 |OR_NOT_I|MPLEMENT|
|00001220| 45 44 3b 20 7d 2c 20 0d | 0d 20 20 20 20 2f 2f 20 |ED; }, .|. // |
|00001230| 6e 73 49 53 75 70 70 6f | 72 74 73 20 69 6e 74 65 |nsISuppo|rts inte|
|00001240| 72 66 61 63 65 0d 0d 20 | 20 20 20 2f 2f 20 54 68 |rface.. | // Th|
|00001250| 69 73 20 22 63 6c 61 73 | 73 22 20 73 75 70 70 6f |is "clas|s" suppo|
|00001260| 72 74 73 20 6e 73 49 43 | 6d 64 4c 69 6e 65 48 61 |rts nsIC|mdLineHa|
|00001270| 6e 64 6c 65 72 20 61 6e | 64 20 6e 73 49 53 75 70 |ndler an|d nsISup|
|00001280| 70 6f 72 74 73 2e 0d 20 | 20 20 20 51 75 65 72 79 |ports.. | Query|
|00001290| 49 6e 74 65 72 66 61 63 | 65 3a 20 66 75 6e 63 74 |Interfac|e: funct|
|000012a0| 69 6f 6e 20 28 69 69 64 | 29 20 7b 0d 20 20 20 20 |ion (iid|) {. |
|000012b0| 20 20 20 20 69 66 20 28 | 21 69 69 64 2e 65 71 75 | if (|!iid.equ|
|000012c0| 61 6c 73 28 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e 69 |als(Comp|onents.i|
|000012d0| 6e 74 65 72 66 61 63 65 | 73 2e 6e 73 49 43 6d 64 |nterface|s.nsICmd|
|000012e0| 4c 69 6e 65 48 61 6e 64 | 6c 65 72 29 20 26 26 0d |LineHand|ler) &&.|
|000012f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 21 69 69 64 | | !iid|
|00001300| 2e 65 71 75 61 6c 73 28 | 43 6f 6d 70 6f 6e 65 6e |.equals(|Componen|
|00001310| 74 73 2e 69 6e 74 65 72 | 66 61 63 65 73 2e 6e 73 |ts.inter|faces.ns|
|00001320| 49 53 75 70 70 6f 72 74 | 73 29 29 20 7b 0d 20 20 |ISupport|s)) {. |
|00001330| 20 20 20 20 20 20 20 20 | 20 20 74 68 72 6f 77 20 | | throw |
|00001340| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 72 65 73 75 6c |Componen|ts.resul|
|00001350| 74 73 2e 4e 53 5f 45 52 | 52 4f 52 5f 4e 4f 5f 49 |ts.NS_ER|ROR_NO_I|
|00001360| 4e 54 45 52 46 41 43 45 | 3b 0d 20 20 20 20 20 20 |NTERFACE|;. |
|00001370| 20 20 7d 0d 20 20 20 20 | 20 20 20 20 72 65 74 75 | }. | retu|
|00001380| 72 6e 20 74 68 69 73 3b | 0d 20 20 20 20 7d 2c 0d |rn this;|. },.|
|00001390| 0d 20 20 20 20 2f 2f 20 | 44 75 6d 70 20 74 65 78 |. // |Dump tex|
|000013a0| 74 20 28 69 66 20 64 65 | 62 75 67 20 69 73 20 6f |t (if de|bug is o|
|000013b0| 6e 29 2e 0d 20 20 20 20 | 64 75 6d 70 3a 20 66 75 |n).. |dump: fu|
|000013c0| 6e 63 74 69 6f 6e 28 20 | 74 65 78 74 20 29 20 7b |nction( |text ) {|
|000013d0| 0d 20 20 20 20 20 20 20 | 20 69 66 20 28 20 74 68 |. | if ( th|
|000013e0| 69 73 2e 64 65 62 75 67 | 20 29 20 7b 0d 20 20 20 |is.debug| ) {. |
|000013f0| 20 20 20 20 20 20 20 20 | 20 64 75 6d 70 28 20 22 | | dump( "|
|00001400| 6e 73 52 65 73 65 74 50 | 72 65 66 3a 20 22 20 2b |nsResetP|ref: " +|
|00001410| 20 74 65 78 74 20 2b 20 | 22 5c 6e 22 20 29 3b 0d | text + |"\n" );.|
|00001420| 20 20 20 20 20 20 20 20 | 7d 0d 20 20 20 20 7d 2c | |}. },|
|00001430| 0d 0d 20 20 20 20 2f 2f | 20 54 68 69 73 20 43 6f |.. //| This Co|
|00001440| 6d 70 6f 6e 65 6e 74 27 | 73 20 6d 6f 64 75 6c 65 |mponent'|s module|
|00001450| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 2e | impleme|ntation.|
|00001460| 20 20 41 6c 6c 20 74 68 | 65 20 63 6f 64 65 20 62 | All th|e code b|
|00001470| 65 6c 6f 77 20 69 73 20 | 75 73 65 64 20 74 6f 20 |elow is |used to |
|00001480| 67 65 74 20 74 68 69 73 | 0d 20 20 20 20 2f 2f 20 |get this|. // |
|00001490| 63 6f 6d 70 6f 6e 65 6e | 74 20 72 65 67 69 73 74 |componen|t regist|
|000014a0| 65 72 65 64 20 61 6e 64 | 20 61 63 63 65 73 73 69 |ered and| accessi|
|000014b0| 62 6c 65 20 76 69 61 20 | 58 50 43 4f 4d 2e 0d 20 |ble via |XPCOM.. |
|000014c0| 20 20 20 6d 6f 64 75 6c | 65 3a 20 7b 0d 20 20 20 | modul|e: {. |
|000014d0| 20 20 20 20 20 2f 2f 20 | 72 65 67 69 73 74 65 72 | // |register|
|000014e0| 53 65 6c 66 3a 20 52 65 | 67 69 73 74 65 72 20 74 |Self: Re|gister t|
|000014f0| 68 69 73 20 63 6f 6d 70 | 6f 6e 65 6e 74 2e 0d 20 |his comp|onent.. |
|00001500| 20 20 20 20 20 20 20 72 | 65 67 69 73 74 65 72 53 | r|egisterS|
|00001510| 65 6c 66 3a 20 66 75 6e | 63 74 69 6f 6e 20 28 63 |elf: fun|ction (c|
|00001520| 6f 6d 70 4d 67 72 2c 20 | 66 69 6c 65 53 70 65 63 |ompMgr, |fileSpec|
|00001530| 2c 20 6c 6f 63 61 74 69 | 6f 6e 2c 20 74 79 70 65 |, locati|on, type|
|00001540| 29 20 7b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | |
|00001550| 63 6f 6d 70 4d 67 72 20 | 3d 20 63 6f 6d 70 4d 67 |compMgr |= compMg|
|00001560| 72 2e 51 75 65 72 79 49 | 6e 74 65 72 66 61 63 65 |r.QueryI|nterface|
|00001570| 28 20 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |( Compon|ents.int|
|00001580| 65 72 66 61 63 65 73 2e | 6e 73 49 43 6f 6d 70 6f |erfaces.|nsICompo|
|00001590| 6e 65 6e 74 4d 61 6e 61 | 67 65 72 4f 62 73 6f 6c |nentMana|gerObsol|
|000015a0| 65 74 65 20 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |ete );. | |
|000015b0| 20 20 20 63 6f 6d 70 4d | 67 72 2e 72 65 67 69 73 | compM|gr.regis|
|000015c0| 74 65 72 43 6f 6d 70 6f | 6e 65 6e 74 57 69 74 68 |terCompo|nentWith|
|000015d0| 54 79 70 65 28 20 74 68 | 69 73 2e 63 69 64 2c 0d |Type( th|is.cid,.|
|000015e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 22 | | "|
|00001610| 50 72 65 66 20 52 65 73 | 65 74 20 43 6f 6d 70 6f |Pref Res|et Compo|
|00001620| 6e 65 6e 74 22 2c 0d 20 | 20 20 20 20 20 20 20 20 |nent",. | |
|00001630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001650| 20 20 20 20 20 20 74 68 | 69 73 2e 63 6f 6e 74 72 | th|is.contr|
|00001660| 61 63 74 49 64 2c 0d 20 | 20 20 20 20 20 20 20 20 |actId,. | |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001690| 20 20 20 20 20 20 66 69 | 6c 65 53 70 65 63 2c 0d | fi|leSpec,.|
|000016a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|000016d0| 6f 63 61 74 69 6f 6e 2c | 0d 20 20 20 20 20 20 20 |ocation,|. |
|000016e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001700| 20 20 20 20 20 20 20 20 | 74 72 75 65 2c 0d 20 20 | |true,. |
|00001710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 72 75 | | tru|
|00001740| 65 2c 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e,. | |
|00001750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001770| 20 20 74 79 70 65 20 29 | 3b 0d 20 20 20 20 20 20 | type )|;. |
|00001780| 20 20 7d 2c 0d 20 20 20 | 20 0d 20 20 20 20 20 20 | },. | . |
|00001790| 20 20 2f 2f 20 67 65 74 | 43 6c 61 73 73 4f 62 6a | // get|ClassObj|
|000017a0| 65 63 74 3a 20 52 65 74 | 75 72 6e 20 74 68 69 73 |ect: Ret|urn this|
|000017b0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 27 73 20 66 61 63 | compone|nt's fac|
|000017c0| 74 6f 72 79 20 6f 62 6a | 65 63 74 2e 0d 20 20 20 |tory obj|ect.. |
|000017d0| 20 20 20 20 20 67 65 74 | 43 6c 61 73 73 4f 62 6a | get|ClassObj|
|000017e0| 65 63 74 3a 20 66 75 6e | 63 74 69 6f 6e 20 28 63 |ect: fun|ction (c|
|000017f0| 6f 6d 70 4d 67 72 2c 20 | 63 69 64 2c 20 69 69 64 |ompMgr, |cid, iid|
|00001800| 29 20 7b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | |
|00001810| 69 66 20 28 21 63 69 64 | 2e 65 71 75 61 6c 73 28 |if (!cid|.equals(|
|00001820| 74 68 69 73 2e 63 69 64 | 29 29 0d 20 20 20 20 20 |this.cid|)). |
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 72 6f 77 | | throw|
|00001840| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 72 65 73 75 | Compone|nts.resu|
|00001850| 6c 74 73 2e 4e 53 5f 45 | 52 52 4f 52 5f 4e 4f 5f |lts.NS_E|RROR_NO_|
|00001860| 49 4e 54 45 52 46 41 43 | 45 3b 0d 20 20 20 20 0d |INTERFAC|E;. .|
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|00001880| 21 69 69 64 2e 65 71 75 | 61 6c 73 28 43 6f 6d 70 |!iid.equ|als(Comp|
|00001890| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface|
|000018a0| 73 2e 6e 73 49 46 61 63 | 74 6f 72 79 29 29 0d 20 |s.nsIFac|tory)). |
|000018b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | | t|
|000018c0| 68 72 6f 77 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |hrow Com|ponents.|
|000018d0| 72 65 73 75 6c 74 73 2e | 4e 53 5f 45 52 52 4f 52 |results.|NS_ERROR|
|000018e0| 5f 4e 4f 54 5f 49 4d 50 | 4c 45 4d 45 4e 54 45 44 |_NOT_IMP|LEMENTED|
|000018f0| 3b 0d 20 20 20 20 0d 20 | 20 20 20 20 20 20 20 20 |;. . | |
|00001900| 20 20 20 72 65 74 75 72 | 6e 20 74 68 69 73 2e 66 | retur|n this.f|
|00001910| 61 63 74 6f 72 79 3b 0d | 20 20 20 20 20 20 20 20 |actory;.| |
|00001920| 7d 2c 0d 20 20 20 20 0d | 20 20 20 20 20 20 20 20 |},. .| |
|00001930| 2f 2a 20 43 49 44 20 66 | 6f 72 20 74 68 69 73 20 |/* CID f|or this |
|00001940| 63 6c 61 73 73 20 2a 2f | 0d 20 20 20 20 20 20 20 |class */|. |
|00001950| 20 63 69 64 3a 20 43 6f | 6d 70 6f 6e 65 6e 74 73 | cid: Co|mponents|
|00001960| 2e 49 44 28 22 7b 31 35 | 41 42 46 41 46 37 2d 41 |.ID("{15|ABFAF7-A|
|00001970| 44 34 46 2d 34 34 35 30 | 2d 38 39 39 42 2d 30 33 |D4F-4450|-899B-03|
|00001980| 37 33 45 45 39 46 41 44 | 39 35 7d 22 29 2c 0d 20 |73EE9FAD|95}"),. |
|00001990| 20 20 20 0d 20 20 20 20 | 20 20 20 20 2f 2a 20 43 | . | /* C|
|000019a0| 6f 6e 74 72 61 63 74 20 | 49 44 20 66 6f 72 20 74 |ontract |ID for t|
|000019b0| 68 69 73 20 63 6c 61 73 | 73 20 2a 2f 0d 20 20 20 |his clas|s */. |
|000019c0| 20 20 20 20 20 63 6f 6e | 74 72 61 63 74 49 64 3a | con|tractId:|
|000019d0| 20 22 40 6d 6f 7a 69 6c | 6c 61 2e 6f 72 67 2f 63 | "@mozil|la.org/c|
|000019e0| 6f 6d 6d 61 6e 64 6c 69 | 6e 65 68 61 6e 64 6c 65 |ommandli|nehandle|
|000019f0| 72 2f 67 65 6e 65 72 61 | 6c 2d 73 74 61 72 74 75 |r/genera|l-startu|
|00001a00| 70 3b 31 3f 74 79 70 65 | 3d 72 65 73 65 74 50 72 |p;1?type|=resetPr|
|00001a10| 65 66 22 2c 0d 20 20 20 | 20 0d 20 20 20 20 20 20 |ef",. | . |
|00001a20| 20 20 2f 2a 20 66 61 63 | 74 6f 72 79 20 6f 62 6a | /* fac|tory obj|
|00001a30| 65 63 74 20 2a 2f 0d 20 | 20 20 20 20 20 20 20 66 |ect */. | f|
|00001a40| 61 63 74 6f 72 79 3a 20 | 7b 0d 20 20 20 20 20 20 |actory: |{. |
|00001a50| 20 20 20 20 20 20 2f 2f | 20 63 72 65 61 74 65 49 | //| createI|
|00001a60| 6e 73 74 61 6e 63 65 3a | 20 52 65 74 75 72 6e 20 |nstance:| Return |
|00001a70| 61 20 6e 65 77 20 6e 73 | 52 65 73 65 74 50 72 65 |a new ns|ResetPre|
|00001a80| 66 20 6f 62 6a 65 63 74 | 2e 0d 20 20 20 20 20 20 |f object|.. |
|00001a90| 20 20 20 20 20 20 63 72 | 65 61 74 65 49 6e 73 74 | cr|eateInst|
|00001aa0| 61 6e 63 65 3a 20 66 75 | 6e 63 74 69 6f 6e 20 28 |ance: fu|nction (|
|00001ab0| 6f 75 74 65 72 2c 20 69 | 69 64 29 20 7b 0d 20 20 |outer, i|id) {. |
|00001ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|00001ad0| 20 28 6f 75 74 65 72 20 | 21 3d 20 6e 75 6c 6c 29 | (outer |!= null)|
|00001ae0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001af0| 20 20 20 20 20 74 68 72 | 6f 77 20 43 6f 6d 70 6f | thr|ow Compo|
|00001b00| 6e 65 6e 74 73 2e 72 65 | 73 75 6c 74 73 2e 4e 53 |nents.re|sults.NS|
|00001b10| 5f 45 52 52 4f 52 5f 4e | 4f 5f 41 47 47 52 45 47 |_ERROR_N|O_AGGREG|
|00001b20| 41 54 49 4f 4e 3b 0d 20 | 20 20 20 0d 20 20 20 20 |ATION;. | . |
|00001b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|00001b40| 72 6e 20 28 6e 65 77 20 | 6e 73 52 65 73 65 74 50 |rn (new |nsResetP|
|00001b50| 72 65 66 28 29 29 2e 51 | 75 65 72 79 49 6e 74 65 |ref()).Q|ueryInte|
|00001b60| 72 66 61 63 65 28 69 69 | 64 29 3b 0d 20 20 20 20 |rface(ii|d);. |
|00001b70| 20 20 20 20 20 20 20 20 | 7d 0d 20 20 20 20 20 20 | |}. |
|00001b80| 20 20 7d 2c 0d 20 20 20 | 20 0d 20 20 20 20 20 20 | },. | . |
|00001b90| 20 20 2f 2f 20 63 61 6e | 55 6e 6c 6f 61 64 3a 20 | // can|Unload: |
|00001ba0| 6e 2f 61 20 28 72 65 74 | 75 72 6e 73 20 74 72 75 |n/a (ret|urns tru|
|00001bb0| 65 29 0d 20 20 20 20 20 | 20 20 20 63 61 6e 55 6e |e). | canUn|
|00001bc0| 6c 6f 61 64 3a 20 66 75 | 6e 63 74 69 6f 6e 28 63 |load: fu|nction(c|
|00001bd0| 6f 6d 70 4d 67 72 29 20 | 7b 0d 20 20 20 20 20 20 |ompMgr) |{. |
|00001be0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 74 72 75 | re|turn tru|
|00001bf0| 65 3b 0d 20 20 20 20 20 | 20 20 20 7d 0d 20 20 20 |e;. | }. |
|00001c00| 20 7d 0d 7d 0d 0d 2f 2f | 20 4e 53 47 65 74 4d 6f | }.}..//| NSGetMo|
|00001c10| 64 75 6c 65 3a 20 52 65 | 74 75 72 6e 20 74 68 65 |dule: Re|turn the|
|00001c20| 20 6e 73 49 4d 6f 64 75 | 6c 65 20 6f 62 6a 65 63 | nsIModu|le objec|
|00001c30| 74 2e 0d 66 75 6e 63 74 | 69 6f 6e 20 4e 53 47 65 |t..funct|ion NSGe|
|00001c40| 74 4d 6f 64 75 6c 65 28 | 63 6f 6d 70 4d 67 72 2c |tModule(|compMgr,|
|00001c50| 20 66 69 6c 65 53 70 65 | 63 29 20 7b 0d 20 20 20 | fileSpe|c) {. |
|00001c60| 20 72 65 74 75 72 6e 20 | 6e 73 52 65 73 65 74 50 | return |nsResetP|
|00001c70| 72 65 66 2e 70 72 6f 74 | 6f 74 79 70 65 2e 6d 6f |ref.prot|otype.mo|
|00001c80| 64 75 6c 65 3b 0d 7d 0d | 00 00 00 00 00 00 00 00 |dule;.}.|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 01 00 00 00 01 58 | 00 00 00 58 00 00 00 41 |.......X|...X...A|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 00 00 00 54 d3 39 a0 40 | 3f e5 32 30 00 04 00 00 |...T.9.@|?.20....|
|00001e10| 00 00 00 00 00 00 bb 25 | 39 85 bb 25 39 85 00 00 |.......%|9..%9...|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 11 6b |........|.......k|
|00001e30| 61 69 65 25 6e 65 74 73 | 63 61 70 65 2e 63 6f 6d |aie%nets|cape.com|
|00001e40| 00 00 00 0e 6e 73 52 65 | 73 65 74 50 72 65 66 2e |....nsRe|setPref.|
|00001e50| 6a 73 00 00 00 00 00 00 | 00 00 01 00 00 00 01 58 |js......|.......X|
|00001e60| 00 00 00 58 00 00 00 41 | 00 0e 80 84 3e 40 00 00 |...X...A|....>@..|
|00001e70| 00 1c 00 32 00 00 63 6b | 69 64 00 00 00 0a 00 80 |...2..ck|id......|
|00001e80| 00 00 00 00 00 00 01 3b | 21 5c 0e 50 72 6f 6a 65 |.......;|!\.Proje|
|00001e90| 63 74 6f 72 20 44 61 74 | 61 00 00 00 00 00 00 00 |ctor Dat|a.......|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+