syncthingtray/syncthingconnector/syncthingconnectionenums.h
Martchus dd936b4a81 Workaround lupdate not understanding "enum class" in some cases
Apparently this is still problematic leading to errors like
`Qualifying with unknown namespace/class`. It seems that moving the enum to
a different header file works. The trick to use a macro to define
`enum class` ceased to work on the other hand.

Specifying a function with the namespace like
`void QtGui::FinalWizardPage::showResults()` leads to the same problem and
also needs to be avoided.
2023-06-07 23:14:48 +02:00

26 lines
987 B
C++

#ifndef SYNCTHINGCONNECTION_ENUMS_H
#define SYNCTHINGCONNECTION_ENUMS_H
#include <c++utilities/misc/flagenumclass.h>
#include <QtGlobal>
namespace Data {
enum class SyncthingStatusComputionFlags : quint64;
enum class SyncthingConnectionLoggingFlags : quint64 {
None, /**< loggingn is disabled */
FromEnvironment = (1 << 0), /**< environment variables are checked to pull in any of the other flags dynamically */
ApiCalls = (1 << 1), /**< log calls to Syncthing's REST-API and responses */
ApiReplies = (1 << 2), /**< log replies from Syncthing's REST-API */
Events = (1 << 3), /**< log events received via Syncthing's event API */
DirsOrDevsResetted = (1 << 4), /**< log list of directories/devices when list is reset */
All = ApiCalls | ApiReplies | Events | DirsOrDevsResetted, /** log as much as possible */
};
} // namespace Data
CPP_UTILITIES_MARK_FLAG_ENUM_CLASS(Data, Data::SyncthingConnectionLoggingFlags)
#endif // SYNCTHINGCONNECTION_ENUMS_H