aboutsummaryrefslogtreecommitdiff
path: root/components/interfaces/rdIRedirect.idl
blob: 0421d8e155c61284186317d3e23d28cf2bad62e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* $Id$ */
#include "nsISupports.idl"
#include "rdIMatchResult.idl"

[scriptable, uuid(cb69ddf0-bce1-11de-8251-028037ec0200)]
interface rdIRedirect : nsISupports {
	
	/* Attributes */
	attribute wstring exampleUrl;	
	attribute wstring includePattern;
	attribute wstring excludePattern;
	attribute wstring redirectUrl;
	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); 
};