19#ifndef LIB_QUENTIER_LOCAL_STORAGE_NOTE_SEARCH_QUERY_H
20#define LIB_QUENTIER_LOCAL_STORAGE_NOTE_SEARCH_QUERY_H
22#include <quentier/types/ErrorString.h>
24#include <QSharedDataPointer>
28QT_FORWARD_DECLARE_CLASS(NoteSearchQueryData)
49 bool setQueryString(
const QString & queryString,
ErrorString & error);
58 bool hasAnyModifier()
const;
60 const QStringList & tagNames()
const;
61 const QStringList & negatedTagNames()
const;
62 bool hasAnyTag()
const;
63 bool hasNegatedAnyTag()
const;
65 const QStringList & titleNames()
const;
66 const QStringList & negatedTitleNames()
const;
67 bool hasAnyTitleName()
const;
68 bool hasNegatedAnyTitleName()
const;
70 const QVector<qint64> & creationTimestamps()
const;
71 const QVector<qint64> & negatedCreationTimestamps()
const;
72 bool hasAnyCreationTimestamp()
const;
73 bool hasNegatedAnyCreationTimestamp()
const;
75 const QVector<qint64> & modificationTimestamps()
const;
76 const QVector<qint64> & negatedModificationTimestamps()
const;
77 bool hasAnyModificationTimestamp()
const;
78 bool hasNegatedAnyModificationTimestamp()
const;
80 const QStringList & resourceMimeTypes()
const;
81 const QStringList & negatedResourceMimeTypes()
const;
82 bool hasAnyResourceMimeType()
const;
83 bool hasNegatedAnyResourceMimeType()
const;
85 const QVector<qint64> & subjectDateTimestamps()
const;
86 const QVector<qint64> & negatedSubjectDateTimestamps()
const;
87 bool hasAnySubjectDateTimestamp()
const;
88 bool hasNegatedAnySubjectDateTimestamp()
const;
90 const QVector<double> & latitudes()
const;
91 const QVector<double> & negatedLatitudes()
const;
92 bool hasAnyLatitude()
const;
93 bool hasNegatedAnyLatitude()
const;
95 const QVector<double> & longitudes()
const;
96 const QVector<double> & negatedLongitudes()
const;
97 bool hasAnyLongitude()
const;
98 bool hasNegatedAnyLongitude()
const;
100 const QVector<double> & altitudes()
const;
101 const QVector<double> & negatedAltitudes()
const;
102 bool hasAnyAltitude()
const;
103 bool hasNegatedAnyAltitude()
const;
105 const QStringList & authors()
const;
106 const QStringList & negatedAuthors()
const;
107 bool hasAnyAuthor()
const;
108 bool hasNegatedAnyAuthor()
const;
110 const QStringList & sources()
const;
111 const QStringList & negatedSources()
const;
112 bool hasAnySource()
const;
113 bool hasNegatedAnySource()
const;
115 const QStringList & sourceApplications()
const;
116 const QStringList & negatedSourceApplications()
const;
117 bool hasAnySourceApplication()
const;
118 bool hasNegatedAnySourceApplication()
const;
120 const QStringList & contentClasses()
const;
121 const QStringList & negatedContentClasses()
const;
122 bool hasAnyContentClass()
const;
123 bool hasNegatedAnyContentClass()
const;
125 const QStringList & placeNames()
const;
126 const QStringList & negatedPlaceNames()
const;
127 bool hasAnyPlaceName()
const;
128 bool hasNegatedAnyPlaceName()
const;
130 const QStringList & applicationData()
const;
131 const QStringList & negatedApplicationData()
const;
132 bool hasAnyApplicationData()
const;
133 bool hasNegatedAnyApplicationData()
const;
135 const QVector<qint64> & reminderOrders()
const;
136 const QVector<qint64> & negatedReminderOrders()
const;
137 bool hasAnyReminderOrder()
const;
138 bool hasNegatedAnyReminderOrder()
const;
140 const QVector<qint64> & reminderTimes()
const;
141 const QVector<qint64> & negatedReminderTimes()
const;
142 bool hasAnyReminderTime()
const;
143 bool hasNegatedAnyReminderTime()
const;
145 const QVector<qint64> & reminderDoneTimes()
const;
146 const QVector<qint64> & negatedReminderDoneTimes()
const;
147 bool hasAnyReminderDoneTime()
const;
148 bool hasNegatedAnyReminderDoneTime()
const;
150 bool hasUnfinishedToDo()
const;
151 bool hasNegatedUnfinishedToDo()
const;
153 bool hasFinishedToDo()
const;
154 bool hasNegatedFinishedToDo()
const;
156 bool hasAnyToDo()
const;
157 bool hasNegatedAnyToDo()
const;
159 bool hasEncryption()
const;
160 bool hasNegatedEncryption()
const;
162 const QStringList & contentSearchTerms()
const;
163 const QStringList & negatedContentSearchTerms()
const;
164 bool hasAnyContentSearchTerms()
const;
166 bool isMatcheable()
const;
168 virtual QTextStream & print(QTextStream & strm)
const override;
171 QSharedDataPointer<NoteSearchQueryData> d;
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition ErrorString.h:44
Definition NoteSearchQuery.h:31
const QString queryString() const
const QString notebookModifier() const
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition Printable.h:38