|
|
Base class for URI filter plugins.
This class applies a single filter to a URI. All plugins designed to provide URI filtering functionalities should inherit from this abstract class and provide a specific filtering implementation.
All inheriting classes need to implement the pure virtual function filterURI. Otherwise, they would also become abstract.
|
Constructor to create a filter plugin with a given name and priority.
Parameters:
QString |
[const virtual]
Return the filter's name.
Returns: A string naming the filter.
double |
[const virtual]
Return the filter's .
Each filter has an assigned priority, a float from 0 to 1. Filters with the lowest priority are first given a chance to filter a URI.
Returns: The priority of the filter.
bool |
[const pure virtual]
Filters a URI.
Parameters:
Returns: A boolean indicating whether the URI has been changed.
KCModule * |
[const virtual]
Returns a configuration module for the filter.
It is the responsability of the caller to delete the module once it is not needed anymore.
Returns: A configuration module, null
if the filter isn't configurable.
QString |
[const virtual]
Returns the name of the configuration module for the filter.
Returns: the name of a configuration module or null
if none.
void |
[protected const]
Sets the the URL in data
to uri.
void |
[protected const]
Sets the error message in data
to errormsg.
void |
[protected const]
Sets the URI type in data
to type.
void |
[protected const]
Sets the arguments and options string in data
to args
if any were found during filterting.
QString |
[protected]
double |
[protected]
Generated by: prospector@porky.devel.redhat.com on Fri Nov 3 09:58:58 2000, using kdoc 2.0a42. |