#include "nsISupports.idl" #include "IPasspetContinuation.idl" // UUID version 5 for http://passpet.org/XPCOM/IPasspetRemote [scriptable, uuid(23aab295-39f4-5fd9-97a3-2c6bee3d7d5b)] interface IPasspetRemote : nsISupports { // Failure codes passed to cont.abort(). readonly attribute ACString SERVER_NOT_FOUND; readonly attribute ACString LOGIN_FAILED; readonly attribute ACString WRITE_REFUSED; readonly attribute ACString INVALID_REQUEST; readonly attribute ACString SERVER_ERROR; readonly attribute ACString CONNECTION_ERROR; // Calls cont.proceed with the index of the new account as a string. void create(in ACString address, in long k1, in ACString password, in IPasspetContinuation cont); // Calls cont.proceed with a string containing space-separated entries, // with one entry for each account in the form ":". void list(in ACString address, in IPasspetContinuation cont); // Calls cont.proceed(''). void delete_(in ACString address, in long index, in ACString password, in IPasspetContinuation cont); // Calls cont.proceed with the string contents of the file. void read(in ACString address, in long index, in ACString password, in IPasspetContinuation cont); // Calls cont.proceed(''). void write(in ACString address, in long index, in ACString password, in ACString oldMAC, in ACString newFile, in IPasspetContinuation cont); };