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> 23 #include <QSharedDataPointer> 27 QT_FORWARD_DECLARE_CLASS(NoteSearchQueryData)
46 const QString queryString()
const;
48 bool setQueryString(
const QString & queryString,
ErrorString & error);
55 const QString notebookModifier()
const;
57 bool hasAnyModifier()
const;
59 const QStringList & tagNames()
const;
60 const QStringList & negatedTagNames()
const;
61 bool hasAnyTag()
const;
62 bool hasNegatedAnyTag()
const;
64 const QStringList & titleNames()
const;
65 const QStringList & negatedTitleNames()
const;
66 bool hasAnyTitleName()
const;
67 bool hasNegatedAnyTitleName()
const;
69 const QVector<qint64> & creationTimestamps()
const;
70 const QVector<qint64> & negatedCreationTimestamps()
const;
71 bool hasAnyCreationTimestamp()
const;
72 bool hasNegatedAnyCreationTimestamp()
const;
74 const QVector<qint64> & modificationTimestamps()
const;
75 const QVector<qint64> & negatedModificationTimestamps()
const;
76 bool hasAnyModificationTimestamp()
const;
77 bool hasNegatedAnyModificationTimestamp()
const;
79 const QStringList & resourceMimeTypes()
const;
80 const QStringList & negatedResourceMimeTypes()
const;
81 bool hasAnyResourceMimeType()
const;
82 bool hasNegatedAnyResourceMimeType()
const;
84 const QVector<qint64> & subjectDateTimestamps()
const;
85 const QVector<qint64> & negatedSubjectDateTimestamps()
const;
86 bool hasAnySubjectDateTimestamp()
const;
87 bool hasNegatedAnySubjectDateTimestamp()
const;
89 const QVector<double> & latitudes()
const;
90 const QVector<double> & negatedLatitudes()
const;
91 bool hasAnyLatitude()
const;
92 bool hasNegatedAnyLatitude()
const;
94 const QVector<double> & longitudes()
const;
95 const QVector<double> & negatedLongitudes()
const;
96 bool hasAnyLongitude()
const;
97 bool hasNegatedAnyLongitude()
const;
99 const QVector<double> & altitudes()
const;
100 const QVector<double> & negatedAltitudes()
const;
101 bool hasAnyAltitude()
const;
102 bool hasNegatedAnyAltitude()
const;
104 const QStringList & authors()
const;
105 const QStringList & negatedAuthors()
const;
106 bool hasAnyAuthor()
const;
107 bool hasNegatedAnyAuthor()
const;
109 const QStringList & sources()
const;
110 const QStringList & negatedSources()
const;
111 bool hasAnySource()
const;
112 bool hasNegatedAnySource()
const;
114 const QStringList & sourceApplications()
const;
115 const QStringList & negatedSourceApplications()
const;
116 bool hasAnySourceApplication()
const;
117 bool hasNegatedAnySourceApplication()
const;
119 const QStringList & contentClasses()
const;
120 const QStringList & negatedContentClasses()
const;
121 bool hasAnyContentClass()
const;
122 bool hasNegatedAnyContentClass()
const;
124 const QStringList & placeNames()
const;
125 const QStringList & negatedPlaceNames()
const;
126 bool hasAnyPlaceName()
const;
127 bool hasNegatedAnyPlaceName()
const;
129 const QStringList & applicationData()
const;
130 const QStringList & negatedApplicationData()
const;
131 bool hasAnyApplicationData()
const;
132 bool hasNegatedAnyApplicationData()
const;
134 const QVector<qint64> & reminderOrders()
const;
135 const QVector<qint64> & negatedReminderOrders()
const;
136 bool hasAnyReminderOrder()
const;
137 bool hasNegatedAnyReminderOrder()
const;
139 const QVector<qint64> & reminderTimes()
const;
140 const QVector<qint64> & negatedReminderTimes()
const;
141 bool hasAnyReminderTime()
const;
142 bool hasNegatedAnyReminderTime()
const;
144 const QVector<qint64> & reminderDoneTimes()
const;
145 const QVector<qint64> & negatedReminderDoneTimes()
const;
146 bool hasAnyReminderDoneTime()
const;
147 bool hasNegatedAnyReminderDoneTime()
const;
149 bool hasUnfinishedToDo()
const;
150 bool hasNegatedUnfinishedToDo()
const;
152 bool hasFinishedToDo()
const;
153 bool hasNegatedFinishedToDo()
const;
155 bool hasAnyToDo()
const;
156 bool hasNegatedAnyToDo()
const;
158 bool hasEncryption()
const;
159 bool hasNegatedEncryption()
const;
161 const QStringList & contentSearchTerms()
const;
162 const QStringList & negatedContentSearchTerms()
const;
163 bool hasAnyContentSearchTerms()
const;
165 bool isMatcheable()
const;
167 virtual QTextStream & print(QTextStream & strm)
const Q_DECL_OVERRIDE;
170 QSharedDataPointer<NoteSearchQueryData> d;
175 #endif // LIB_QUENTIER_LOCAL_STORAGE_NOTE_SEARCH_QUERY_H The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:38
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:54
Definition: NoteSearchQuery.h:29