Changes

Jump to: navigation, search

Researching XPIDL and IDL Technologies

646 bytes added, 13:05, 4 October 2006
Methods
attribute long attr;
void fun();
};
 
Methods can have any number of in, out or inout parameters, with a variety of types.
 
In this example many parameters of different types and in an out specifications are seen
 
interface nsIStringStuff {
void findStringLength(in string str, out long l);
void concatenateStrings(in string str1, in string str2,
out string result);
void replaceChar(inout string str, in char from, in char to,
in boolean foldCase);
};
 
Attributes can be made read-only, by placing the read-only keyword infront of the the definition
interface nsIThing {
readonly attribute string lookButDontTouch;
};
1
edit

Navigation menu