Changeset View
Changeset View
Standalone View
Standalone View
runners/bookmarks/bookmarkmatch.h
Show All 18 Lines | |||||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | 21 | | |||
22 | #ifndef BOOKMARKMATCH_H | 22 | #ifndef BOOKMARKMATCH_H | ||
23 | #define BOOKMARKMATCH_H | 23 | #define BOOKMARKMATCH_H | ||
24 | 24 | | |||
25 | #include <QString> | 25 | #include <QString> | ||
26 | #include <QList> | 26 | #include <QList> | ||
27 | #include <krunner/querymatch.h> | 27 | #include <KRunner/QueryMatch> | ||
28 | #include <QIcon> | ||||
28 | 29 | | |||
29 | class Favicon; | | |||
30 | class BookmarkMatch | 30 | class BookmarkMatch | ||
31 | { | 31 | { | ||
32 | public: | 32 | public: | ||
33 | BookmarkMatch(Favicon *favicon, const QString &searchTerm, const QString &bookmarkTitle, const QString &bookmarkURL, const QString &description = QString()); | 33 | BookmarkMatch(const QIcon &icon, const QString &searchTerm, const QString &bookmarkTitle, const QString &bookmarkURL, const QString &description = QString()); | ||
34 | void addTo(QList< BookmarkMatch >& listOfResults, bool addEvenOnNoMatch); | 34 | void addTo(QList< BookmarkMatch >& listOfResults, bool addEvenOnNoMatch); | ||
35 | Plasma::QueryMatch asQueryMatch(Plasma::AbstractRunner *runner); | 35 | Plasma::QueryMatch asQueryMatch(Plasma::AbstractRunner *runner); | ||
36 | private: | 36 | private: | ||
37 | bool matches(const QString &search, const QString &matchingField); | 37 | bool matches(const QString &search, const QString &matchingField); | ||
38 | private: | 38 | private: | ||
39 | Favicon * m_favicon; | 39 | QIcon m_icon; | ||
40 | QString m_searchTerm; | 40 | QString m_searchTerm; | ||
41 | QString m_bookmarkTitle; | 41 | QString m_bookmarkTitle; | ||
42 | QString m_bookmarkURL; | 42 | QString m_bookmarkURL; | ||
43 | QString m_description; | 43 | QString m_description; | ||
44 | }; | 44 | }; | ||
45 | 45 | | |||
46 | #endif // BOOKMARKMATCH_H | 46 | #endif // BOOKMARKMATCH_H |