Changed CallbackConditions from enum class to enum

enum class is not suitable for bitflags