OxFF pan.do/ra Firefox Extension

This commit is contained in:
j 2010-08-03 22:49:30 +02:00
commit 22b9128e5f
15 changed files with 803 additions and 0 deletions

8
src/make.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
cd `dirname $0`
XULRUNNER=xulrunner-1.9.2.8
IDL_PREFIX=/usr/share/idl/$XULRUNNER
XPIDL=/usr/lib/$XULRUNNER/xpidl
XPT=../OxFF/components/nsIOxFF.xpt
IDL=nsIOxFF.idl
$XPIDL -m typelib -w -v -I $IDL_PREFIX -e $XPT $IDL

30
src/nsIOxFF.idl Normal file
View file

@ -0,0 +1,30 @@
#include "nsISupports.idl"
[function, scriptable, uuid(70015be1-2620-4682-ba3c-8023e7cb42ac)]
interface oxICallback : nsISupports
{
/**
* @param result string
*/
void callback(in AString result);
};
[scriptable, uuid(333280ed-2620-46ed-916d-b9c29e84d9ba)]
interface nsIOxFF : nsISupports
{
readonly attribute string version;
boolean login(in AString user);
boolean addVolume();
string import();
float progress(in AString oshash);
boolean access([optional] in boolean request);
boolean update();
string volumes();
boolean files(in oxICallback callback);
boolean get(in AString oshash, in AString media, in oxICallback callback);
boolean extract(in AString oshash, in AString media, in oxICallback callback);
boolean logout();
};