QEverCloud  6.2.0
Unofficial Evernote Cloud API for Qt
EDAMErrorCode.h
Go to the documentation of this file.
1 
12 #ifndef QEVERCLOUD_GENERATED_EDAMERRORCODE_H
13 #define QEVERCLOUD_GENERATED_EDAMERRORCODE_H
14 
15 #include "../Export.h"
16 
17 #include "../Helpers.h"
18 #include <QDebug>
19 #include <QMetaType>
20 #include <QTextStream>
21 
22 namespace qevercloud {
23 
25 
26 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
27 #if QEVERCLOUD_USES_Q_NAMESPACE
28 Q_NAMESPACE
29 #endif
30 #endif
31 
33 
112 enum class EDAMErrorCode
113 {
114  UNKNOWN = 1,
115  BAD_DATA_FORMAT = 2,
116  PERMISSION_DENIED = 3,
117  INTERNAL_ERROR = 4,
118  DATA_REQUIRED = 5,
119  LIMIT_REACHED = 6,
120  QUOTA_REACHED = 7,
121  INVALID_AUTH = 8,
122  AUTH_EXPIRED = 9,
123  DATA_CONFLICT = 10,
124  ENML_VALIDATION = 11,
125  SHARD_UNAVAILABLE = 12,
126  LEN_TOO_SHORT = 13,
127  LEN_TOO_LONG = 14,
128  TOO_FEW = 15,
129  TOO_MANY = 16,
131  TAKEN_DOWN = 18,
132  RATE_LIMIT_REACHED = 19,
137  USER_NOT_ASSOCIATED = 24,
138  USER_NOT_REGISTERED = 25,
140  ACCOUNT_CLEAR = 27,
142 };
143 
144 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
145 #if QEVERCLOUD_USES_Q_NAMESPACE
146 Q_ENUM_NS(EDAMErrorCode)
147 #endif
148 #endif
149 
150 inline uint qHash(EDAMErrorCode value)
151 {
152  return static_cast<uint>(value);
153 }
154 
156 
157 QEVERCLOUD_EXPORT QTextStream & operator<<(
158  QTextStream & out, const EDAMErrorCode value);
159 
161 
163  QDebug & out, const EDAMErrorCode value);
164 
166 
201 {
202  BAD_ADDRESS,
205 };
206 
207 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
208 #if QEVERCLOUD_USES_Q_NAMESPACE
209 Q_ENUM_NS(EDAMInvalidContactReason)
210 #endif
211 #endif
212 
213 inline uint qHash(EDAMInvalidContactReason value)
214 {
215  return static_cast<uint>(value);
216 }
217 
219 
220 QEVERCLOUD_EXPORT QTextStream & operator<<(
221  QTextStream & out, const EDAMInvalidContactReason value);
222 
224 
226  QDebug & out, const EDAMInvalidContactReason value);
227 
229 
252 {
253  READ_NOTEBOOK = 0,
256  FULL_ACCESS = 30
257 };
258 
259 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
260 #if QEVERCLOUD_USES_Q_NAMESPACE
262 #endif
263 #endif
264 
266 {
267  return static_cast<uint>(value);
268 }
269 
271 
272 QEVERCLOUD_EXPORT QTextStream & operator<<(
273  QTextStream & out, const ShareRelationshipPrivilegeLevel value);
274 
276 
278  QDebug & out, const ShareRelationshipPrivilegeLevel value);
279 
281 
287 enum class PrivilegeLevel
288 {
289  NORMAL = 1,
290  PREMIUM = 3,
291  VIP = 5,
292  MANAGER = 7,
293  SUPPORT = 8,
294  ADMIN = 9
295 };
296 
297 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
298 #if QEVERCLOUD_USES_Q_NAMESPACE
299 Q_ENUM_NS(PrivilegeLevel)
300 #endif
301 #endif
302 
303 inline uint qHash(PrivilegeLevel value)
304 {
305  return static_cast<uint>(value);
306 }
307 
309 
310 QEVERCLOUD_EXPORT QTextStream & operator<<(
311  QTextStream & out, const PrivilegeLevel value);
312 
314 
316  QDebug & out, const PrivilegeLevel value);
317 
319 
325 enum class ServiceLevel
326 {
327  BASIC = 1,
328  PLUS = 2,
329  PREMIUM = 3,
330  BUSINESS = 4
331 };
332 
333 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
334 #if QEVERCLOUD_USES_Q_NAMESPACE
335 Q_ENUM_NS(ServiceLevel)
336 #endif
337 #endif
338 
339 inline uint qHash(ServiceLevel value)
340 {
341  return static_cast<uint>(value);
342 }
343 
345 
346 QEVERCLOUD_EXPORT QTextStream & operator<<(
347  QTextStream & out, const ServiceLevel value);
348 
350 
352  QDebug & out, const ServiceLevel value);
353 
355 
360 enum class QueryFormat
361 {
362  USER = 1,
363  SEXP = 2
364 };
365 
366 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
367 #if QEVERCLOUD_USES_Q_NAMESPACE
368 Q_ENUM_NS(QueryFormat)
369 #endif
370 #endif
371 
372 inline uint qHash(QueryFormat value)
373 {
374  return static_cast<uint>(value);
375 }
376 
378 
379 QEVERCLOUD_EXPORT QTextStream & operator<<(
380  QTextStream & out, const QueryFormat value);
381 
383 
385  QDebug & out, const QueryFormat value);
386 
388 
393 enum class NoteSortOrder
394 {
395  CREATED = 1,
396  UPDATED = 2,
397  RELEVANCE = 3,
399  TITLE = 5
400 };
401 
402 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
403 #if QEVERCLOUD_USES_Q_NAMESPACE
404 Q_ENUM_NS(NoteSortOrder)
405 #endif
406 #endif
407 
408 inline uint qHash(NoteSortOrder value)
409 {
410  return static_cast<uint>(value);
411 }
412 
414 
415 QEVERCLOUD_EXPORT QTextStream & operator<<(
416  QTextStream & out, const NoteSortOrder value);
417 
419 
421  QDebug & out, const NoteSortOrder value);
422 
424 
446 {
447  NONE = 0,
448  PENDING = 1,
449  ACTIVE = 2,
450  FAILED = 3,
452  CANCELED = 5
453 };
454 
455 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
456 #if QEVERCLOUD_USES_Q_NAMESPACE
457 Q_ENUM_NS(PremiumOrderStatus)
458 #endif
459 #endif
460 
461 inline uint qHash(PremiumOrderStatus value)
462 {
463  return static_cast<uint>(value);
464 }
465 
467 
468 QEVERCLOUD_EXPORT QTextStream & operator<<(
469  QTextStream & out, const PremiumOrderStatus value);
470 
472 
474  QDebug & out, const PremiumOrderStatus value);
475 
477 
514 {
515  READ_NOTEBOOK = 0,
518  GROUP = 3,
519  FULL_ACCESS = 4,
521 };
522 
523 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
524 #if QEVERCLOUD_USES_Q_NAMESPACE
526 #endif
527 #endif
528 
530 {
531  return static_cast<uint>(value);
532 }
533 
535 
536 QEVERCLOUD_EXPORT QTextStream & operator<<(
537  QTextStream & out, const SharedNotebookPrivilegeLevel value);
538 
540 
542  QDebug & out, const SharedNotebookPrivilegeLevel value);
543 
545 
561 {
562  READ_NOTE = 0,
563  MODIFY_NOTE = 1,
564  FULL_ACCESS = 2
565 };
566 
567 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
568 #if QEVERCLOUD_USES_Q_NAMESPACE
569 Q_ENUM_NS(SharedNotePrivilegeLevel)
570 #endif
571 #endif
572 
573 inline uint qHash(SharedNotePrivilegeLevel value)
574 {
575  return static_cast<uint>(value);
576 }
577 
579 
580 QEVERCLOUD_EXPORT QTextStream & operator<<(
581  QTextStream & out, const SharedNotePrivilegeLevel value);
582 
584 
586  QDebug & out, const SharedNotePrivilegeLevel value);
587 
589 
600 {
601  GROUP_MEMBER = 1,
602  GROUP_ADMIN = 2,
603  GROUP_OWNER = 3
604 };
605 
606 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
607 #if QEVERCLOUD_USES_Q_NAMESPACE
608 Q_ENUM_NS(SponsoredGroupRole)
609 #endif
610 #endif
611 
612 inline uint qHash(SponsoredGroupRole value)
613 {
614  return static_cast<uint>(value);
615 }
616 
618 
619 QEVERCLOUD_EXPORT QTextStream & operator<<(
620  QTextStream & out, const SponsoredGroupRole value);
621 
623 
625  QDebug & out, const SponsoredGroupRole value);
626 
628 
637 {
638  ADMIN = 1,
639  NORMAL = 2
640 };
641 
642 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
643 #if QEVERCLOUD_USES_Q_NAMESPACE
644 Q_ENUM_NS(BusinessUserRole)
645 #endif
646 #endif
647 
648 inline uint qHash(BusinessUserRole value)
649 {
650  return static_cast<uint>(value);
651 }
652 
654 
655 QEVERCLOUD_EXPORT QTextStream & operator<<(
656  QTextStream & out, const BusinessUserRole value);
657 
659 
661  QDebug & out, const BusinessUserRole value);
662 
664 
679 {
680  ACTIVE = 1,
681  DEACTIVATED = 2
682 };
683 
684 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
685 #if QEVERCLOUD_USES_Q_NAMESPACE
686 Q_ENUM_NS(BusinessUserStatus)
687 #endif
688 #endif
689 
690 inline uint qHash(BusinessUserStatus value)
691 {
692  return static_cast<uint>(value);
693 }
694 
696 
697 QEVERCLOUD_EXPORT QTextStream & operator<<(
698  QTextStream & out, const BusinessUserStatus value);
699 
701 
703  QDebug & out, const BusinessUserStatus value);
704 
706 
718 {
719  ASSIGNED = 1,
721 };
722 
723 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
724 #if QEVERCLOUD_USES_Q_NAMESPACE
726 #endif
727 #endif
728 
730 {
731  return static_cast<uint>(value);
732 }
733 
735 
736 QEVERCLOUD_EXPORT QTextStream & operator<<(
737  QTextStream & out, const SharedNotebookInstanceRestrictions value);
738 
740 
742  QDebug & out, const SharedNotebookInstanceRestrictions value);
743 
745 
757 {
758  DO_NOT_SEND = 1,
759  SEND_DAILY_EMAIL = 2
760 };
761 
762 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
763 #if QEVERCLOUD_USES_Q_NAMESPACE
764 Q_ENUM_NS(ReminderEmailConfig)
765 #endif
766 #endif
767 
768 inline uint qHash(ReminderEmailConfig value)
769 {
770  return static_cast<uint>(value);
771 }
772 
774 
775 QEVERCLOUD_EXPORT QTextStream & operator<<(
776  QTextStream & out, const ReminderEmailConfig value);
777 
779 
781  QDebug & out, const ReminderEmailConfig value);
782 
784 
799 {
800  APPROVED = 0,
801  REQUESTED = 1,
802  REDEEMED = 2
803 };
804 
805 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
806 #if QEVERCLOUD_USES_Q_NAMESPACE
807 Q_ENUM_NS(BusinessInvitationStatus)
808 #endif
809 #endif
810 
811 inline uint qHash(BusinessInvitationStatus value)
812 {
813  return static_cast<uint>(value);
814 }
815 
817 
818 QEVERCLOUD_EXPORT QTextStream & operator<<(
819  QTextStream & out, const BusinessInvitationStatus value);
820 
822 
824  QDebug & out, const BusinessInvitationStatus value);
825 
827 
831 enum class ContactType
832 {
833  EVERNOTE = 1,
834  SMS = 2,
835  FACEBOOK = 3,
836  EMAIL = 4,
837  TWITTER = 5,
838  LINKEDIN = 6
839 };
840 
841 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
842 #if QEVERCLOUD_USES_Q_NAMESPACE
843 Q_ENUM_NS(ContactType)
844 #endif
845 #endif
846 
847 inline uint qHash(ContactType value)
848 {
849  return static_cast<uint>(value);
850 }
851 
853 
854 QEVERCLOUD_EXPORT QTextStream & operator<<(
855  QTextStream & out, const ContactType value);
856 
858 
860  QDebug & out, const ContactType value);
861 
863 
867 enum class EntityType
868 {
869  NOTE = 1,
870  NOTEBOOK = 2,
871  WORKSPACE = 3
872 };
873 
874 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
875 #if QEVERCLOUD_USES_Q_NAMESPACE
876 Q_ENUM_NS(EntityType)
877 #endif
878 #endif
879 
880 inline uint qHash(EntityType value)
881 {
882  return static_cast<uint>(value);
883 }
884 
886 
887 QEVERCLOUD_EXPORT QTextStream & operator<<(
888  QTextStream & out, const EntityType value);
889 
891 
893  QDebug & out, const EntityType value);
894 
896 
911 enum class RecipientStatus
912 {
913  NOT_IN_MY_LIST = 1,
914  IN_MY_LIST = 2,
916 };
917 
918 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
919 #if QEVERCLOUD_USES_Q_NAMESPACE
920 Q_ENUM_NS(RecipientStatus)
921 #endif
922 #endif
923 
924 inline uint qHash(RecipientStatus value)
925 {
926  return static_cast<uint>(value);
927 }
928 
930 
931 QEVERCLOUD_EXPORT QTextStream & operator<<(
932  QTextStream & out, const RecipientStatus value);
933 
935 
937  QDebug & out, const RecipientStatus value);
938 
940 
960 {
961  CAN_BE_MOVED = 1,
964 };
965 
966 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
967 #if QEVERCLOUD_USES_Q_NAMESPACE
968 Q_ENUM_NS(CanMoveToContainerStatus)
969 #endif
970 #endif
971 
972 inline uint qHash(CanMoveToContainerStatus value)
973 {
974  return static_cast<uint>(value);
975 }
976 
978 
979 QEVERCLOUD_EXPORT QTextStream & operator<<(
980  QTextStream & out, const CanMoveToContainerStatus value);
981 
983 
985  QDebug & out, const CanMoveToContainerStatus value);
986 
988 
998 {
999  NEWS_ARTICLE = 1,
1000  PROFILE_PERSON = 2,
1002  REFERENCE_MATERIAL = 4
1003 };
1004 
1005 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
1006 #if QEVERCLOUD_USES_Q_NAMESPACE
1007 Q_ENUM_NS(RelatedContentType)
1008 #endif
1009 #endif
1010 
1011 inline uint qHash(RelatedContentType value)
1012 {
1013  return static_cast<uint>(value);
1014 }
1015 
1017 
1018 QEVERCLOUD_EXPORT QTextStream & operator<<(
1019  QTextStream & out, const RelatedContentType value);
1020 
1022 
1023 QEVERCLOUD_EXPORT QDebug & operator<<(
1024  QDebug & out, const RelatedContentType value);
1025 
1027 
1048 {
1049  NOT_ACCESSIBLE = 0,
1053 };
1054 
1055 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
1056 #if QEVERCLOUD_USES_Q_NAMESPACE
1057 Q_ENUM_NS(RelatedContentAccess)
1058 #endif
1059 #endif
1060 
1061 inline uint qHash(RelatedContentAccess value)
1062 {
1063  return static_cast<uint>(value);
1064 }
1065 
1067 
1068 QEVERCLOUD_EXPORT QTextStream & operator<<(
1069  QTextStream & out, const RelatedContentAccess value);
1070 
1072 
1073 QEVERCLOUD_EXPORT QDebug & operator<<(
1074  QDebug & out, const RelatedContentAccess value);
1075 
1077 
1082 {
1083  EVERNOTE_USERID = 1,
1084  EMAIL = 2,
1085  IDENTITYID = 3
1086 };
1087 
1088 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
1089 #if QEVERCLOUD_USES_Q_NAMESPACE
1090 Q_ENUM_NS(UserIdentityType)
1091 #endif
1092 #endif
1093 
1094 inline uint qHash(UserIdentityType value)
1095 {
1096  return static_cast<uint>(value);
1097 }
1098 
1100 
1101 QEVERCLOUD_EXPORT QTextStream & operator<<(
1102  QTextStream & out, const UserIdentityType value);
1103 
1105 
1106 QEVERCLOUD_EXPORT QDebug & operator<<(
1107  QDebug & out, const UserIdentityType value);
1108 
1109 } // namespace qevercloud
1110 
1111 Q_DECLARE_METATYPE(qevercloud::EDAMErrorCode)
1112 Q_DECLARE_METATYPE(qevercloud::EDAMInvalidContactReason)
1114 Q_DECLARE_METATYPE(qevercloud::PrivilegeLevel)
1115 Q_DECLARE_METATYPE(qevercloud::ServiceLevel)
1116 Q_DECLARE_METATYPE(qevercloud::QueryFormat)
1117 Q_DECLARE_METATYPE(qevercloud::NoteSortOrder)
1118 Q_DECLARE_METATYPE(qevercloud::PremiumOrderStatus)
1119 Q_DECLARE_METATYPE(qevercloud::SharedNotebookPrivilegeLevel)
1120 Q_DECLARE_METATYPE(qevercloud::SharedNotePrivilegeLevel)
1121 Q_DECLARE_METATYPE(qevercloud::SponsoredGroupRole)
1122 Q_DECLARE_METATYPE(qevercloud::BusinessUserRole)
1123 Q_DECLARE_METATYPE(qevercloud::BusinessUserStatus)
1125 Q_DECLARE_METATYPE(qevercloud::ReminderEmailConfig)
1126 Q_DECLARE_METATYPE(qevercloud::BusinessInvitationStatus)
1127 Q_DECLARE_METATYPE(qevercloud::ContactType)
1128 Q_DECLARE_METATYPE(qevercloud::EntityType)
1129 Q_DECLARE_METATYPE(qevercloud::RecipientStatus)
1130 Q_DECLARE_METATYPE(qevercloud::CanMoveToContainerStatus)
1131 Q_DECLARE_METATYPE(qevercloud::RelatedContentType)
1132 Q_DECLARE_METATYPE(qevercloud::RelatedContentAccess)
1133 Q_DECLARE_METATYPE(qevercloud::UserIdentityType)
1134 
1135 #endif // QEVERCLOUD_GENERATED_EDAMERRORCODE_H
RelatedContentType
Definition: EDAMErrorCode.h:997
uint qHash(EDAMErrorCode value)
Definition: EDAMErrorCode.h:150
ShareRelationshipPrivilegeLevel
Definition: EDAMErrorCode.h:251
PremiumOrderStatus
Definition: EDAMErrorCode.h:445
BusinessUserRole
Definition: EDAMErrorCode.h:636
CanMoveToContainerStatus
Definition: EDAMErrorCode.h:959
RelatedContentAccess
Definition: EDAMErrorCode.h:1047
SharedNotebookInstanceRestrictions
Definition: EDAMErrorCode.h:717
SponsoredGroupRole
Definition: EDAMErrorCode.h:599
NoteSortOrder
Definition: EDAMErrorCode.h:393
BusinessUserStatus
Definition: EDAMErrorCode.h:678
SharedNotebookPrivilegeLevel
Definition: EDAMErrorCode.h:513
PrivilegeLevel
Definition: EDAMErrorCode.h:287
BusinessInvitationStatus
Definition: EDAMErrorCode.h:798
ContactType
Definition: EDAMErrorCode.h:831
UserIdentityType
Definition: EDAMErrorCode.h:1081
#define QEVERCLOUD_EXPORT
Definition: Export.h:19
QueryFormat
Definition: EDAMErrorCode.h:360
Definition: AsyncResult.h:21
ServiceLevel
Definition: EDAMErrorCode.h:325
SharedNotePrivilegeLevel
Definition: EDAMErrorCode.h:560
QEVERCLOUD_EXPORT QTextStream & operator<<(QTextStream &out, const EDAMErrorCode value)
RecipientStatus
Definition: EDAMErrorCode.h:911
EntityType
Definition: EDAMErrorCode.h:867
ReminderEmailConfig
Definition: EDAMErrorCode.h:756
EDAMErrorCode
Definition: EDAMErrorCode.h:112
EDAMInvalidContactReason
Definition: EDAMErrorCode.h:200