class KUriFilterData


Table of contents
Modules
kio Classes
All Classes
Module kio
Namespace global
Class KUriFilterData
Inherits

A basic message object used for exchanging filtering information between the filter plugins and the application requesting the filtering service.

Use this object if you require a more detailed information about the URI you want to filter. Any application can create an instance of this class and send it to KUriFilter to have the plugins fill out all possible information about the URI.

Example

QString text = "kde.org";
KUriFilterData d = text;
bool filtered = KUriFilter.self()->filter( d );
cout << "URL: " << text.toLatin1() << endl
<< "Filtered URL: " << d.uri().url().toLatin1() << endl
<< "URI Type: " << d.uriType() << endl
<< "Was Filtered: " << filtered << endl;

The above code should yield the following output:

URI: kde.org
Filtered URI: http://kde.org
URI Type: 0 <== means NET_PROTOCOL
Was Filtered: 1 <== means the URL was successfully filtered

A message object for exchanging filtering URI info. Author Dawit Alemayehu



enums

enum details

methods