┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchoptionsconfigurator.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-12-12 12:23:05 +0000
committerPeter Penz <[email protected]>2009-12-12 12:23:05 +0000
commit5e25098037571c8a43fd8c407c1758065e1a1548 (patch)
tree29dcad0e5ef565f58014e9046fa54f3a2e3cbbdd /src/search/dolphinsearchoptionsconfigurator.h
parent1dbcada3764c9d04116672544e7d85aeb3146452 (diff)
allow to restrict the search results by the current folder (including all sub folders)
svn path=/trunk/KDE/kdebase/apps/; revision=1061589
Diffstat (limited to 'src/search/dolphinsearchoptionsconfigurator.h')
-rw-r--r--src/search/dolphinsearchoptionsconfigurator.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/search/dolphinsearchoptionsconfigurator.h b/src/search/dolphinsearchoptionsconfigurator.h
index 90adea736..e4f7718e2 100644
--- a/src/search/dolphinsearchoptionsconfigurator.h
+++ b/src/search/dolphinsearchoptionsconfigurator.h
@@ -43,6 +43,9 @@ public:
DolphinSearchOptionsConfigurator(QWidget* parent = 0);
virtual ~DolphinSearchOptionsConfigurator();
+ QString customSearchQuery() const;
+ KUrl directory() const;
+
/**
* Returns the sum of the configured options and the
* custom search query as Nepomuk conform search URL. If the
@@ -60,6 +63,13 @@ public slots:
*/
void setCustomSearchQuery(const QString& searchQuery);
+ /**
+ * Sets the directory that is used when the
+ * "From Here"-location-filter is used. URLs that represent
+ * already a Nepomuk search URL will be ignored.
+ */
+ void setDirectory(const KUrl& dir);
+
signals:
void searchOptionsChanged();
@@ -97,6 +107,7 @@ private:
private:
bool m_initialized;
+ KUrl m_directory;
KComboBox* m_locationBox;
KComboBox* m_whatBox;
QPushButton* m_addSelectorButton;