| | |
| | | #ifndef EVENTREGISTRY_H_ |
| | | #define EVENTREGISTRY_H_ |
| | | |
| | | #include "../api/datatypes.h" |
| | | #include <licensecc/datatypes.h> |
| | | |
| | | #include <vector> |
| | | #include <map> |
| | | #include <set> |
| | |
| | | * for the license with the most advanced status. |
| | | * @return NULL if no failures are found. |
| | | */ |
| | | AuditEvent const* getLastFailure() const; |
| | | const AuditEvent *getLastFailure() const; |
| | | void addEvent(EVENT_TYPE event, const std::string &licenseLocationId); |
| | | void addEvent(EVENT_TYPE event, const char *licenseLocationId = nullptr, |
| | | const char *info = nullptr); |
| | | void addEvent(EVENT_TYPE event, const char *licenseLocationId = nullptr, const char *info = nullptr); |
| | | void exportLastEvents(AuditEvent *auditEvents, int nlogs); |
| | | }; |
| | | } |
| | | } // namespace license |
| | | #endif /* EVENTREGISTRY_H_ */ |