From 1059664ff4a3c92b2c6a4720f695e158aed215e4 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Tue, 20 Oct 2009 13:04:15 +0000 Subject: Changed to use actual interfaces! Seems to work, tiny bug left in unit tests. git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@285 119bf307-c92d-0410-89bd-8f53e6181181 --- components/interfaces/rdIRedirect.idl | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'components/interfaces/rdIRedirect.idl') diff --git a/components/interfaces/rdIRedirect.idl b/components/interfaces/rdIRedirect.idl index 32d8494..76c3960 100644 --- a/components/interfaces/rdIRedirect.idl +++ b/components/interfaces/rdIRedirect.idl @@ -1,8 +1,29 @@ /* $Id */ #include "nsISupports.idl" +#include "rdIMatchResult.idl" [scriptable, uuid(cb69ddf0-bce1-11de-8251-028037ec0200)] interface rdIRedirect : nsISupports { - void test(); + + /* Attributes */ + attribute wstring exampleUrl; + attribute wstring includePattern; + attribute wstring excludePattern; + attribute wstring redirectTo; + attribute wchar patternType; + attribute boolean unescapeMatches; + attribute boolean disabled; + + /* Methods */ + rdIRedirect clone(); + void compile(); + void copyValues(in rdIRedirect other); + void deserialize(in wstring data); + boolean equals(in rdIRedirect other); + rdIMatchResult getMatch(in wstring url); + boolean isRegex(); + boolean isWildcard(); + wstring serialize(); + rdIMatchResult test(in wstring url); }; -- cgit v1.2.3-70-g09d2