libquentier  0.5.0
The library for rich desktop clients of Evernote service
LocalStorageManager.h
1 /*
2  * Copyright 2016-2020 Dmitry Ivanov
3  *
4  * This file is part of libquentier
5  *
6  * libquentier is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * libquentier is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with libquentier. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef LIB_QUENTIER_LOCAL_STORAGE_LOCAL_STORAGE_MANAGER_H
20 #define LIB_QUENTIER_LOCAL_STORAGE_LOCAL_STORAGE_MANAGER_H
21 
22 #include <quentier/local_storage/Lists.h>
23 #include <quentier/local_storage/NoteSearchQuery.h>
24 #include <quentier/types/Account.h>
25 #include <quentier/types/ErrorString.h>
26 #include <quentier/utility/Linkage.h>
27 #include <quentier/utility/Macros.h>
28 
29 #include <QHash>
30 #include <QString>
31 #include <QVector>
32 
33 #include <cstdint>
34 #include <memory>
35 #include <utility>
36 
37 namespace qevercloud {
38 
39 QT_FORWARD_DECLARE_STRUCT(Accounting)
40 QT_FORWARD_DECLARE_STRUCT(BusinessUserInfo)
41 QT_FORWARD_DECLARE_STRUCT(NoteAttributes)
42 QT_FORWARD_DECLARE_STRUCT(NotebookRestrictions)
43 QT_FORWARD_DECLARE_STRUCT(ResourceAttributes)
44 QT_FORWARD_DECLARE_STRUCT(PremiumInfo)
45 QT_FORWARD_DECLARE_STRUCT(SharedNotebook)
46 QT_FORWARD_DECLARE_STRUCT(UserAttributes)
47 
48 } // namespace qevercloud
49 
50 namespace quentier {
51 
52 QT_FORWARD_DECLARE_CLASS(ILocalStoragePatch)
53 QT_FORWARD_DECLARE_CLASS(LocalStorageManagerPrivate)
54 
55 class QUENTIER_EXPORT LocalStorageManager: public QObject
56 {
57  Q_OBJECT
58 public:
64  enum class StartupOption
65  {
73  ClearDatabase = 1,
82  OverrideLock = 2
83  };
84  Q_DECLARE_FLAGS(StartupOptions, StartupOption)
85 
86  friend QUENTIER_EXPORT QTextStream & operator<<(
87  QTextStream & strm, const StartupOption option);
88 
89  friend QUENTIER_EXPORT QDebug & operator<<(
90  QDebug & dbg, const StartupOption option);
91 
92  friend QUENTIER_EXPORT QTextStream & operator<<(
93  QTextStream & strm, const StartupOptions options);
94 
95  friend QUENTIER_EXPORT QDebug & operator<<(
96  QDebug & dbg, const StartupOptions options);
97 
109  explicit LocalStorageManager(
110  const Account & account, const StartupOptions options = 0,
111  QObject * parent = nullptr);
112 
113  virtual ~LocalStorageManager() override;
114 
115 Q_SIGNALS:
126  void upgradeProgress(double progress);
127 
128 public:
139  enum class ListObjectsOption {
140  ListAll = 0,
141  ListDirty = 1,
142  ListNonDirty = 2,
143  ListElementsWithoutGuid = 4,
144  ListElementsWithGuid = 8,
145  ListLocal = 16,
146  ListNonLocal = 32,
147  ListFavoritedElements = 64,
148  ListNonFavoritedElements = 128
149  };
150  Q_DECLARE_FLAGS(ListObjectsOptions, ListObjectsOption)
151 
152  friend QUENTIER_EXPORT QTextStream & operator<<(
153  QTextStream & strm, const ListObjectsOption option);
154 
155  friend QUENTIER_EXPORT QDebug & operator<<(
156  QDebug & dbg, const ListObjectsOption option);
157 
158  friend QUENTIER_EXPORT QTextStream & operator<<(
159  QTextStream & strm, const ListObjectsOptions options);
160 
161  friend QUENTIER_EXPORT QDebug & operator<<(
162  QDebug & dbg, const ListObjectsOptions options);
163 
180  void switchUser(const Account & account, const StartupOptions options = 0);
181 
205  bool isLocalStorageVersionTooHigh(ErrorString & errorDescription);
206 
231  bool localStorageRequiresUpgrade(ErrorString & errorDescription);
232 
245  QVector<std::shared_ptr<ILocalStoragePatch>> requiredLocalStoragePatches();
246 
259  qint32 localStorageVersion(ErrorString & errorDescription);
260 
268  qint32 highestSupportedLocalStorageVersion() const;
269 
280  int userCount(ErrorString & errorDescription) const;
281 
296  bool addUser(const User & user, ErrorString & errorDescription);
297 
312  bool updateUser(const User & user, ErrorString & errorDescription);
313 
326  bool findUser(User & user, ErrorString & errorDescription) const;
327 
337  bool deleteUser(const User & user, ErrorString & errorDescription);
338 
349  bool expungeUser(const User & user, ErrorString & errorDescription);
350 
361  int notebookCount(ErrorString & errorDescription) const;
362 
382  bool addNotebook(Notebook & notebook, ErrorString & errorDescription);
383 
402  bool updateNotebook(Notebook & notebook, ErrorString & errorDescription);
403 
433  bool findNotebook(Notebook & notebook, ErrorString & errorDescription) const;
434 
445  bool findDefaultNotebook(
446  Notebook & notebook, ErrorString & errorDescription) const;
447 
458  bool findLastUsedNotebook(
459  Notebook & notebook, ErrorString & errorDescription) const;
460 
472  bool findDefaultOrLastUsedNotebook(
473  Notebook & notebook, ErrorString & errorDescription) const;
474 
480  enum class OrderDirection
481  {
482  Ascending = 0,
483  Descending
484  };
485 
486  friend QUENTIER_EXPORT QTextStream & operator<<(
487  QTextStream & strm, const OrderDirection orderDirection);
488 
489  friend QUENTIER_EXPORT QDebug & operator<<(
490  QDebug & dbg, const OrderDirection orderDirection);
491 
497  {
498  ByUpdateSequenceNumber = 0,
499  ByNotebookName,
500  ByCreationTimestamp,
501  ByModificationTimestamp,
502  NoOrder
503  };
504 
505  friend QUENTIER_EXPORT QTextStream & operator<<(
506  QTextStream & strm, const ListNotebooksOrder order);
507 
508  friend QUENTIER_EXPORT QDebug & operator<<(
509  QDebug & dbg, const ListNotebooksOrder order);
510 
544  QList<Notebook> listAllNotebooks(
545  ErrorString & errorDescription,
546  const size_t limit = 0, const size_t offset = 0,
547  const ListNotebooksOrder order = ListNotebooksOrder::NoOrder,
548  const OrderDirection orderDirection = OrderDirection::Ascending,
549  const QString & linkedNotebookGuid = QString()) const;
550 
584  QList<Notebook> listNotebooks(
585  const ListObjectsOptions flag,
586  ErrorString & errorDescription,
587  const size_t limit = 0, const size_t offset = 0,
588  const ListNotebooksOrder order = ListNotebooksOrder::NoOrder,
589  const OrderDirection orderDirection = OrderDirection::Ascending,
590  const QString & linkedNotebookGuid = QString()) const;
591 
604  QList<SharedNotebook> listAllSharedNotebooks(
605  ErrorString & errorDescription) const;
606 
623  QList<SharedNotebook> listSharedNotebooksPerNotebookGuid(
624  const QString & notebookGuid, ErrorString & errorDescription) const;
625 
649  bool expungeNotebook(Notebook & notebook, ErrorString & errorDescription);
650 
660  int linkedNotebookCount(ErrorString & errorDescription) const;
661 
675  bool addLinkedNotebook(
676  const LinkedNotebook & linkedNotebook, ErrorString & errorDescription);
677 
690  bool updateLinkedNotebook(
691  const LinkedNotebook & linkedNotebook, ErrorString & errorDescription);
692 
708  bool findLinkedNotebook(
709  LinkedNotebook & linkedNotebook, ErrorString & errorDescription) const;
710 
716  {
717  ByUpdateSequenceNumber = 0,
718  ByShareName,
719  ByUsername,
720  NoOrder
721  };
722 
723  friend QUENTIER_EXPORT QTextStream & operator<<(
724  QTextStream & strm, const ListLinkedNotebooksOrder order);
725 
726  friend QUENTIER_EXPORT QDebug & operator<<(
727  QDebug & strm, const ListLinkedNotebooksOrder order);
728 
752  QList<LinkedNotebook> listAllLinkedNotebooks(
753  ErrorString & errorDescription,
754  const size_t limit = 0, const size_t offset = 0,
755  const ListLinkedNotebooksOrder order = ListLinkedNotebooksOrder::NoOrder,
756  const OrderDirection orderDirection = OrderDirection::Ascending) const;
757 
785  QList<LinkedNotebook> listLinkedNotebooks(
786  const ListObjectsOptions flag, ErrorString & errorDescription,
787  const size_t limit = 0, const size_t offset = 0,
788  const ListLinkedNotebooksOrder order = ListLinkedNotebooksOrder::NoOrder,
789  const OrderDirection orderDirection = OrderDirection::Ascending) const;
790 
808  bool expungeLinkedNotebook(
809  const LinkedNotebook & linkedNotebook, ErrorString & errorDescription);
810 
815  enum class NoteCountOption
816  {
817  IncludeNonDeletedNotes = 1,
818  IncludeDeletedNotes = 2
819  };
820  Q_DECLARE_FLAGS(NoteCountOptions, NoteCountOption)
821 
822  friend QUENTIER_EXPORT QTextStream & operator<<(
823  QTextStream & strm, const NoteCountOption option);
824 
825  friend QUENTIER_EXPORT QDebug & operator<<(
826  QDebug & dbg, const NoteCountOption option);
827 
828  friend QUENTIER_EXPORT QTextStream & operator<<(
829  QTextStream & strm, const NoteCountOptions options);
830 
831  friend QUENTIER_EXPORT QDebug & operator<<(
832  QDebug & strm, const NoteCountOptions options);
833 
846  int noteCount(
847  ErrorString & errorDescription,
848  const NoteCountOptions options =
849  NoteCountOption::IncludeNonDeletedNotes) const;
850 
867  int noteCountPerNotebook(
868  const Notebook & notebook,
869  ErrorString & errorDescription,
870  const NoteCountOptions options =
871  NoteCountOption::IncludeNonDeletedNotes) const;
872 
889  int noteCountPerTag(
890  const Tag & tag, ErrorString & errorDescription,
891  const NoteCountOptions options =
892  NoteCountOption::IncludeNonDeletedNotes) const;
893 
911  bool noteCountsPerAllTags(
912  QHash<QString, int> & noteCountsPerTagLocalUid,
913  ErrorString & errorDescription,
914  const NoteCountOptions options =
915  NoteCountOption::IncludeNonDeletedNotes) const;
916 
935  int noteCountPerNotebooksAndTags(
936  const QStringList & notebookLocalUids,
937  const QStringList & tagLocalUids, ErrorString & errorDescription,
938  const NoteCountOptions options =
939  NoteCountOption::IncludeNonDeletedNotes) const;
940 
958  bool addNote(Note & note, ErrorString & errorDescription);
959 
969  enum class UpdateNoteOption
970  {
976  UpdateResourceMetadata = 1,
983  UpdateResourceBinaryData = 2,
987  UpdateTags = 4
988  };
989  Q_DECLARE_FLAGS(UpdateNoteOptions, UpdateNoteOption)
990 
991  friend QUENTIER_EXPORT QTextStream & operator<<(
992  QTextStream & strm, const UpdateNoteOption option);
993 
994  friend QUENTIER_EXPORT QDebug & operator<<(
995  QDebug & strm, const UpdateNoteOption option);
996 
997  friend QUENTIER_EXPORT QTextStream & operator<<(
998  QTextStream & strm, const UpdateNoteOptions options);
999 
1000  friend QUENTIER_EXPORT QDebug & operator<<(
1001  QDebug & strm, const UpdateNoteOptions options);
1002 
1048  bool updateNote(
1049  Note & note, const UpdateNoteOptions options,
1050  ErrorString & errorDescription);
1051 
1063  enum class GetNoteOption
1064  {
1070  WithResourceMetadata = 1,
1077  WithResourceBinaryData = 2
1078  };
1079  Q_DECLARE_FLAGS(GetNoteOptions, GetNoteOption)
1080 
1081  friend QUENTIER_EXPORT QTextStream & operator<<(
1082  QTextStream & strm, const GetNoteOption option);
1083 
1084  friend QUENTIER_EXPORT QDebug & operator<<(
1085  QDebug & dbg, const GetNoteOption option);
1086 
1087  friend QUENTIER_EXPORT QTextStream & operator<<(
1088  QTextStream & strm, const GetNoteOptions options);
1089 
1090  friend QUENTIER_EXPORT QDebug & operator<<(
1091  QDebug & strm, const GetNoteOptions options);
1092 
1102  bool findNote(
1103  Note & note, const GetNoteOptions options,
1104  ErrorString & errorDescription) const;
1105 
1110  enum class ListNotesOrder
1111  {
1112  ByUpdateSequenceNumber = 0,
1113  ByTitle,
1114  ByCreationTimestamp,
1115  ByModificationTimestamp,
1116  ByDeletionTimestamp,
1117  ByAuthor,
1118  BySource,
1119  BySourceApplication,
1120  ByReminderTime,
1121  ByPlaceName,
1122  NoOrder
1123  };
1124 
1125  friend QUENTIER_EXPORT QTextStream & operator<<(
1126  QTextStream & strm, const ListNotesOrder order);
1127 
1128  friend QUENTIER_EXPORT QDebug & operator<<(
1129  QDebug & strm, const ListNotesOrder order);
1130 
1159  QList<Note> listNotesPerNotebook(
1160  const Notebook & notebook,
1161  const GetNoteOptions options,
1162  ErrorString & errorDescription,
1163  const ListObjectsOptions & flag = ListObjectsOption::ListAll,
1164  const size_t limit = 0, const size_t offset = 0,
1165  const ListNotesOrder & order = ListNotesOrder::NoOrder,
1166  const OrderDirection & orderDirection = OrderDirection::Ascending) const;
1167 
1195  QList<Note> listNotesPerTag(
1196  const Tag & tag, const GetNoteOptions options,
1197  ErrorString & errorDescription,
1198  const ListObjectsOptions & flag = ListObjectsOption::ListAll,
1199  const size_t limit = 0, const size_t offset = 0,
1200  const ListNotesOrder & order = ListNotesOrder::NoOrder,
1201  const OrderDirection & orderDirection = OrderDirection::Ascending) const;
1202 
1233  QList<Note> listNotesPerNotebooksAndTags(
1234  const QStringList & notebookLocalUids,
1235  const QStringList & tagLocalUids,
1236  const GetNoteOptions options,
1237  ErrorString & errorDescription,
1238  const ListObjectsOptions & flag = ListObjectsOption::ListAll,
1239  const size_t limit = 0, const size_t offset = 0,
1240  const ListNotesOrder & order = ListNotesOrder::NoOrder,
1241  const OrderDirection & orderDirection = OrderDirection::Ascending) const;
1242 
1274  QList<Note> listNotesByLocalUids(
1275  const QStringList & noteLocalUids,
1276  const GetNoteOptions options,
1277  ErrorString & errorDescription,
1278  const ListObjectsOptions & flag = ListObjectsOption::ListAll,
1279  const size_t limit = 0, const size_t offset = 0,
1280  const ListNotesOrder & order = ListNotesOrder::NoOrder,
1281  const OrderDirection & orderDirection = OrderDirection::Ascending) const;
1282 
1317  QList<Note> listNotes(
1318  const ListObjectsOptions flag, const GetNoteOptions options,
1319  ErrorString & errorDescription,
1320  const size_t limit = 0, const size_t offset = 0,
1321  const ListNotesOrder order = ListNotesOrder::NoOrder,
1322  const OrderDirection orderDirection = OrderDirection::Ascending,
1323  const QString & linkedNotebookGuid = QString()) const;
1324 
1336  QStringList findNoteLocalUidsWithSearchQuery(
1337  const NoteSearchQuery & noteSearchQuery,
1338  ErrorString & errorDescription) const;
1339 
1355  NoteList findNotesWithSearchQuery(
1356  const NoteSearchQuery & noteSearchQuery,
1357  const GetNoteOptions options, ErrorString & errorDescription) const;
1358 
1376  bool expungeNote(Note & note, ErrorString & errorDescription);
1377 
1387  int tagCount(ErrorString & errorDescription) const;
1388 
1402  bool addTag(Tag & tag, ErrorString & errorDescription);
1403 
1421  bool updateTag(Tag & tag, ErrorString & errorDescription);
1422 
1447  bool findTag(Tag & tag, ErrorString & errorDescription) const;
1448 
1453  enum class ListTagsOrder
1454  {
1455  ByUpdateSequenceNumber,
1456  ByName,
1457  NoOrder
1458  };
1459 
1460  friend QUENTIER_EXPORT QTextStream & operator<<(
1461  QTextStream & strm, const ListTagsOrder order);
1462 
1463  friend QUENTIER_EXPORT QDebug & operator<<(
1464  QDebug & strm, const ListTagsOrder order);
1465 
1494  QList<Tag> listAllTagsPerNote(
1495  const Note & note, ErrorString & errorDescription,
1496  const ListObjectsOptions & flag = ListObjectsOption::ListAll,
1497  const size_t limit = 0, const size_t offset = 0,
1498  const ListTagsOrder & order = ListTagsOrder::NoOrder,
1499  const OrderDirection & orderDirection = OrderDirection::Ascending) const;
1500 
1531  QList<Tag> listAllTags(
1532  ErrorString & errorDescription,
1533  const size_t limit = 0, const size_t offset = 0,
1534  const ListTagsOrder order = ListTagsOrder::NoOrder,
1535  const OrderDirection orderDirection = OrderDirection::Ascending,
1536  const QString & linkedNotebookGuid = QString()) const;
1537 
1570  QList<Tag> listTags(
1571  const ListObjectsOptions flag,
1572  ErrorString & errorDescription,
1573  const size_t limit = 0, const size_t offset = 0,
1574  const ListTagsOrder & order = ListTagsOrder::NoOrder,
1575  const OrderDirection orderDirection = OrderDirection::Ascending,
1576  const QString & linkedNotebookGuid = QString()) const;
1577 
1616  QList<std::pair<Tag, QStringList>> listTagsWithNoteLocalUids(
1617  const ListObjectsOptions flag, ErrorString & errorDescription,
1618  const size_t limit = 0, const size_t offset = 0,
1619  const ListTagsOrder & order = ListTagsOrder::NoOrder,
1620  const OrderDirection orderDirection = OrderDirection::Ascending,
1621  const QString & linkedNotebookGuid = QString()) const;
1622 
1647  bool expungeTag(
1648  Tag & tag, QStringList & expungedChildTagLocalUids,
1649  ErrorString & errorDescription);
1650 
1661  bool expungeNotelessTagsFromLinkedNotebooks(ErrorString & errorDescription);
1662 
1674  int enResourceCount(ErrorString & errorDescription) const;
1675 
1692  bool addEnResource(Resource & resource, ErrorString & errorDescription);
1693 
1714  bool updateEnResource(Resource & resource, ErrorString & errorDescription);
1715 
1727  {
1732  WithBinaryData = 1
1733  };
1734  Q_DECLARE_FLAGS(GetResourceOptions, GetResourceOption)
1735 
1736  friend QUENTIER_EXPORT QTextStream & operator<<(
1737  QTextStream & strm, const GetResourceOption option);
1738 
1739  friend QUENTIER_EXPORT QDebug & operator<<(
1740  QDebug & strm, const GetResourceOption option);
1741 
1742  friend QUENTIER_EXPORT QTextStream & operator<<(
1743  QTextStream & strm, const GetResourceOptions options);
1744 
1745  friend QUENTIER_EXPORT QDebug & operator<<(
1746  QDebug & strm, const GetResourceOptions options);
1747 
1766  bool findEnResource(
1767  Resource & resource, const GetResourceOptions options,
1768  ErrorString & errorDescription) const;
1769 
1784  bool expungeEnResource(Resource & resource, ErrorString & errorDescription);
1785 
1795  int savedSearchCount(ErrorString & errorDescription) const;
1796 
1813  bool addSavedSearch(SavedSearch & search, ErrorString & errorDescription);
1814 
1833  bool updateSavedSearch(SavedSearch & search, ErrorString & errorDescription);
1834 
1852  bool findSavedSearch(
1853  SavedSearch & search, ErrorString & errorDescription) const;
1854 
1860  {
1861  ByUpdateSequenceNumber = 0,
1862  ByName,
1863  ByFormat,
1864  NoOrder
1865  };
1866 
1867  friend QUENTIER_EXPORT QTextStream & operator<<(
1868  QTextStream & strm, const ListSavedSearchesOrder order);
1869 
1870  friend QUENTIER_EXPORT QDebug & operator<<(
1871  QDebug & strm, const ListSavedSearchesOrder order);
1872 
1895  QList<SavedSearch> listAllSavedSearches(
1896  ErrorString & errorDescription,
1897  const size_t limit = 0, const size_t offset = 0,
1898  const ListSavedSearchesOrder order = ListSavedSearchesOrder::NoOrder,
1899  const OrderDirection orderDirection = OrderDirection::Ascending) const;
1900 
1930  QList<SavedSearch> listSavedSearches(
1931  const ListObjectsOptions flag, ErrorString & errorDescription,
1932  const size_t limit = 0, const size_t offset = 0,
1933  const ListSavedSearchesOrder order = ListSavedSearchesOrder::NoOrder,
1934  const OrderDirection orderDirection = OrderDirection::Ascending) const;
1935 
1949  bool expungeSavedSearch(
1950  SavedSearch & search, ErrorString & errorDescription);
1951 
1969  qint32 accountHighUsn(
1970  const QString & linkedNotebookGuid, ErrorString & errorDescription);
1971 
1972 private:
1973  Q_DISABLE_COPY(LocalStorageManager)
1974 
1975  LocalStorageManagerPrivate * const d_ptr;
1976  Q_DECLARE_PRIVATE(LocalStorageManager)
1977 };
1978 
1979 Q_DECLARE_OPERATORS_FOR_FLAGS(LocalStorageManager::GetNoteOptions)
1980 Q_DECLARE_OPERATORS_FOR_FLAGS(LocalStorageManager::ListObjectsOptions)
1981 Q_DECLARE_OPERATORS_FOR_FLAGS(LocalStorageManager::StartupOptions)
1982 Q_DECLARE_OPERATORS_FOR_FLAGS(LocalStorageManager::UpdateNoteOptions)
1983 
1984 } // namespace quentier
1985 
1986 #endif // LIB_QUENTIER_LOCAL_STORAGE_LOCAL_STORAGE_MANAGER_H
ListLinkedNotebooksOrder
The ListLinkedNotebooksOrder enum allows to specify the results ordering for methods listing linked n...
Definition: LocalStorageManager.h:715
ListNotebooksOrder
The ListNotebooksOrder allows to specify the results ordering for methods listing notebooks from the ...
Definition: LocalStorageManager.h:496
GetNoteOption
The GetNoteOption enum is a QFlags enum which allows to specify which note fields should be included ...
Definition: LocalStorageManager.h:1063
ListObjectsOption
The ListObjectsOption enum is a QFlags enum which allows to specify the desired local storage element...
Definition: LocalStorageManager.h:139
Definition: LinkedNotebook.h:32
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:43
UpdateNoteOption
The UpdateNoteOption enum is a QFlags enum which allows to specify which note fields should be update...
Definition: LocalStorageManager.h:969
Definition: Resource.h:29
ListTagsOrder
The ListTagsOrder enum allows to specify the results ordering for methods listing tags from the local...
Definition: LocalStorageManager.h:1453
Definition: DecryptedTextManager.h:26
NoteCountOption
The NoteCountOption enum is a QFlags enum which allows to specify some options for methods returning ...
Definition: LocalStorageManager.h:815
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:39
Definition: Notebook.h:34
Definition: Tag.h:32
Definition: User.h:33
Definition: Note.h:34
ListNotesOrder
The ListNotesOrder enum allows to specify the results ordering for methods listing notes from the loc...
Definition: LocalStorageManager.h:1110
Definition: NoteSearchQuery.h:30
Definition: LocalStorageManager.h:37
OrderDirection
The OrderDirection enum specifies the direction of ordering of the results for methods listing the ob...
Definition: LocalStorageManager.h:480
Definition: LocalStorageManager.h:55
ListSavedSearchesOrder
The ListSavedSearchesOrder enum allows to specify the results ordering for methods listing saved sear...
Definition: LocalStorageManager.h:1859
Definition: SavedSearch.h:32
StartupOption
The StartupOption enum is a QFlags enum which allows to specify some options to be applied to the loc...
Definition: LocalStorageManager.h:64
GetResourceOption
The GetResourceOption enum is a QFlags enum which allows to specify which resource fields should be i...
Definition: LocalStorageManager.h:1726