@mozilla.org/cookie-monster;1. To create an instance, use:
var cookieMonster = Components.classes["@mozilla.org/cookie-monster;1"] .createInstance(Components.interfaces.nsICookieMonster);
| || ||The cookie monster's favorite kind of cookie. Must be one of the constants defined under Constants on this page.|
| || ||A value from 0-100 indicating how hungry the cookie monster is. 0 means "stuffed to the brim with cookies" and 100 means "I'm so empty of cookies! Feed me now!"|
| || ||The cookie monster's name. Read only.|
Cookie flavor constants
| ||1||Simple sugar cookie.|
| ||2||Chocolate chip cookie.|
| ||3||Peanut butter cookie.|
| ||4||Chocolate cookie with chocolate chips.|
| ||0||An unknown type of cookie.|
| ||1||The cookie is disgusting.|
| ||2||The cookie is good but not awesome.|
| ||3||The cookie is really, really yummy.|
| ||4||OMG THIS IS THE BEST COOKIE EVAR!1!!1.|
Feeds a cookie to the cookie monster.
void eatCookie( in nsICookie cookieToEat );
- The cookie to eat.
Returns a string containing a funny quote the cookie monster might say.
AString getFunnySaying( in integer number );
- The saying number to return.
AString containing the requested funny quote. If the specified quote number is invalid, an exception is thrown.
- Unable to locate the requested quote.
Says something appreciative of the tastiness of the cookie in the specified language.
void sayYummy( in AString language );
- The localization identification indicating the language in which the cookie monster is to express his love of cookies.
Sings the song "C is For Cookie."
Remember, this isn't a real interface. This is where you would provide additional information about the interface as necessary.