Pete Collins wrote:
> If i interpreted Dougt's post from xpcom ng correctly i think we are
> going to have something like this:
>
> ------------------------------------------
>
>
> #include "nsISupports.idl"
> interface nsISimpleEnumerator;
>
> [scriptable, uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)]
> interface nsIFile : nsISupports {
>
> const unsigned long NORMAL_FILE_TYPE = 0;
> const unsigned long DIRECTORY_TYPE = 1;
>
> void append(in wstring node);
*snip*
> void initWithPath(in wstring filePath, in boolean followLinks);
>
>
> };
Do we want to use |wstring|, or |AString|? From javascript, there's no
difference. From c++, interfaces change to take a |const nsAString&|
instead of a |const PRUnichar*|, and a |nsAString&| instead of a
|PRUnichar**|.