KIO
kurifilter.cpp
Go to the documentation of this file.
159 KUriFilterSearchProvider& KUriFilterSearchProvider::operator=(const KUriFilterSearchProvider& other)
541 void KUriFilterPlugin::setPreferredSearchProviders(KUriFilterData &data, const ProviderInfoList &providers) const
559 void KUriFilterPlugin::setSearchProviders(KUriFilterData &data, const QList<KUriFilterSearchProvider*>& providers) const
QString searchProvider() const
Returns the name of the search service provider, e.g.
Definition: kurifilter.cpp:355
QMap< QString, KUriFilterSearchProvider * > SearchProviderMap
Definition: kurifilter.cpp:37
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
static QString lookupIconNameFor(const KUrl &url, KUriFilterData::UriTypes type)
Definition: kurifilter.cpp:40
QString queryForPreferredSearchProvider(const QString &provider) const
Returns the web shortcut url for the given preferred search provider.
Definition: kurifilter.cpp:375
void setAlternateSearchProviders(const QStringList &providers)
Sets a list of search providers to use in case no preferred search providers are available.
Definition: kurifilter.cpp:456
QChar searchTermSeparator() const
Returns the character that is used to separate the search term from the keyword.
Definition: kurifilter.cpp:350
Definition: kurifilter.h:188
KUriFilterSearchProvider & operator=(const KUriFilterSearchProvider &)
Assignment operator.
Definition: kurifilter.cpp:159
void setIconName(const QString &)
Definition: kurifilter.cpp:173
bool hasAbsolutePath() const
Checks whether the supplied data had an absolute path.
Definition: kurifilter.cpp:320
void setAlternateDefaultSearchProvider(const QString &provider)
Sets the search provider to use in case no default provider is available.
Definition: kurifilter.cpp:461
static KIconLoader * global()
const Key & key() const
static Ptr serviceByDesktopName(const QString &_name)
static KServiceTypeTrader * self()
QString desktopEntryName() const
Returns the desktop filename of the search provider without any extension.
Definition: kurifilter.cpp:131
bool hasNext() const
QString argsAndOptions() const
Returns the command line options and arguments for a local resource when present. ...
Definition: kurifilter.cpp:325
QString name() const
Returns the descriptive name of the search provider, e.g.
Definition: kurifilter.cpp:141
#define K_GLOBAL_STATIC(TYPE, NAME)
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
QHostInfo resolveName(const QString &hostname, unsigned long timeout) const
Performs a DNS lookup for hostname and returns the result.
Definition: kurifilter.cpp:572
QString searchTerm() const
Returns the search term portion of the typed string.
Definition: kurifilter.cpp:345
QStringList keys() const
Returns all the web shortcut keys associated with this search provider.
Definition: kurifilter.cpp:146
QString alternateDefaultSearchProvider() const
Returns the search provider to use when a default provider is not available.
Definition: kurifilter.cpp:404
void lookupHost(const QString &hostName, QObject *receiver, const char *member)
Definition: hostinfo.cpp:240
void setArguments(KUriFilterData &data, const QString &args) const
Sets the arguments and options string in data to args if any were found during filterting.
Definition: kurifilter.cpp:526
QString iconName()
The name of the icon that matches the current filtered URL.
Definition: kurifilter.cpp:419
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setDefaultUrlScheme(const QString &)
Sets the default scheme used when filtering potentially valid url inputs.
Definition: kurifilter.cpp:466
QStringList allQueriesForSearchProvider(const QString &provider) const
Returns all the query urls for the given search provider.
Definition: kurifilter.cpp:383
QString iconNameForPreferredSearchProvider(const QString &provider) const
Returns the icon associated with the given preferred search provider.
Definition: kurifilter.cpp:391
Definition: kurifilter.h:882
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void clear()
void setData(const KUrl &url)
Same as above except the argument is a URL.
Definition: kurifilter.cpp:429
void setFilteredUri(KUriFilterData &data, const KUrl &uri) const
Sets the URL in data to uri.
Definition: kurifilter.cpp:506
QString defaultKey() const
Returns the default web shortcut key for this search provider.
Definition: kurifilter.cpp:151
bool filterUri(KUriFilterData &data, const QStringList &filters=QStringList())
Filters data using the specified filters.
Definition: kurifilter.cpp:612
Class that holds information about a search provider.
Definition: kurifilter.h:50
void setSearchProviders(KUriFilterData &data, const QList< KUriFilterSearchProvider * > &providers) const
Sets the information about the search providers in data.
Definition: kurifilter.cpp:559
bool isEmpty() const
void setObjectName(const QString &name)
bool isEmpty() const
Definition: kurifilter.h:188
virtual QString configName() const
Returns the name of the configuration module for the filter.
Definition: kurifilter.cpp:501
QString path(AdjustPathOption trailing=LeaveTrailingSlash) const
KUriFilter applies a number of filters to a URI and returns a filtered version if any filter matches...
Definition: kurifilter.h:871
This class is a basic messaging class used to exchange filtering information between the filter plugi...
Definition: kurifilter.h:169
QStringList types(Mode mode=Writing)
Returns a list of all KImageIO supported formats.
Definition: kimageio.cpp:82
Item next()
Definition: kurifilter.h:881
QStringList pluginNames() const
Return a list of the names of all loaded plugins.
Definition: kurifilter.cpp:688
QString absolutePath() const
Returns the absolute path if one has already been set.
Definition: kurifilter.cpp:315
Definition: kurifilter.h:188
QStringList preferredSearchProviders() const
Returns a list of the names of preferred or available search providers.
Definition: kurifilter.cpp:360
QStringList alternateSearchProviders() const
Returns the list of alternate search providers.
Definition: kurifilter.cpp:399
KUriFilterPlugin(const QString &name, QObject *parent=0)
Constructs a filter plugin with a given name.
Definition: kurifilter.cpp:490
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
KUriFilterSearchProvider queryForSearchProvider(const QString &provider) const
Returns information about provider.
Definition: kurifilter.cpp:365
QString mid(int position, int n) const
SearchFilterOptions searchFilteringOptions() const
Returns the specified search filter options.
Definition: kurifilter.cpp:414
void setSearchProvider(KUriFilterData &data, const QString &provider, const QString &term, const QChar &separator) const
Sets the name of the search provider, the search term and keyword/term separator in data...
Definition: kurifilter.cpp:532
QString iconName() const
Returns the icon name associated with the search provider when available.
Definition: kurifilter.cpp:136
Definition: kurifilter.h:188
Definition: kurifilter.h:188
KUrl filteredUri(const KUrl &uri, const QStringList &filters=QStringList())
Returns the filtered URI.
Definition: kurifilter.cpp:653
QString iconNameFor(const KUrl &url, KUriFilterData::UriTypes type) const
Returns the icon name for the given url and URI type.
Definition: kurifilter.cpp:567
bool hasArgsAndOptions() const
Checks whether the current data is a local resource with command line options and arguments...
Definition: kurifilter.cpp:330
Definition: kurifilter.h:188
QString left(int n) const
virtual KCModule * configModule(QWidget *, const char *) const
Creates a configuration module for the filter.
Definition: kurifilter.cpp:496
bool filterSearchUri(KUriFilterData &data)
See filterSearchUri(KUriFilterData&, SearchFilterTypes)
Definition: kurifilter.cpp:668
KUriFilterData & operator=(const KUrl &url)
Overloaded assigenment operator.
Definition: kurifilter.cpp:476
Definition: kurifilter.h:188
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
const T & value() const
void setPreferredSearchProviders(KUriFilterData &data, const ProviderInfoList &providers) const
Sets the name of the preferred search providers in data.
Definition: kurifilter.cpp:541
void setSearchFilteringOptions(SearchFilterOptions options)
Sets the options used by search filter plugins to filter requests.
Definition: kurifilter.cpp:471
void setDesktopEntryName(const QString &)
Definition: kurifilter.cpp:168
void setErrorMsg(KUriFilterData &data, const QString &errmsg) const
Sets the error message in data to errormsg.
Definition: kurifilter.cpp:513
Definition: kurifilter.h:188
T * createInstance(QObject *parent=0, const QVariantList &args=QVariantList(), QString *error=0) const
Definition: kurifilter.h:188
void setCheckForExecutables(bool check)
Check whether the provided uri is executable or not.
Definition: kurifilter.cpp:451
void setUriType(KUriFilterData &data, KUriFilterData::UriTypes type) const
Sets the URI type in data to type.
Definition: kurifilter.cpp:519
QString typedString() const
The string as typed by the user, before any URL processing is done.
Definition: kurifilter.cpp:340
bool setAbsolutePath(const QString &abs_path)
Sets the absolute path to be used whenever the supplied data is a relative local URL.
Definition: kurifilter.cpp:439
QString defaultUrlScheme() const
Returns the default protocol to use when filtering potentially valid url inputs.
Definition: kurifilter.cpp:409
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.