Add script constants for the DbCat* filter categories.

Refs #4782
This commit is contained in:
Gunnar Beutner 2013-10-30 09:09:44 +01:00
parent 8c5bff3f75
commit ff737e4cb5
2 changed files with 34 additions and 15 deletions

View File

@ -62,3 +62,22 @@ set DomainPrivCommand = (1<<2)
set DomainPrivReadOnly = (DomainPrivRead) set DomainPrivReadOnly = (DomainPrivRead)
set DomainPrivReadWrite = (DomainPrivRead | DomainPrivCheckResult | DomainPrivCommand) set DomainPrivReadWrite = (DomainPrivRead | DomainPrivCheckResult | DomainPrivCommand)
/*
* IDO filter categories
*/
set DbCatConfig = (1 << 0)
set DbCatState = (1 << 1)
set DbCatAcknowledgement = (1 << 2)
set DbCatComment = (1 << 3)
set DbCatDowntime = (1 << 4)
set DbCatEventHandler = (1 << 5)
set DbCatExternalCommand = (1 << 6)
set DbCatFlapping = (1 << 7)
set DbCatCheck = (1 << 8)
set DbCatLog = (1 << 9)
set DbCatNotification = (1 << 10)
set DbCatProgramStatus = (1 << 11)
set DbCatRetention = (1 << 12)
set DbCatStateHistory = (1 << 13)

View File

@ -34,23 +34,23 @@ enum DbQueryType
enum DbQueryCategory enum DbQueryCategory
{ {
DbCatInvalid, DbCatInvalid = -1,
DbCatConfig, DbCatConfig = (1 << 0),
DbCatState, DbCatState = (1 << 1),
DbCatAcknowledgement, DbCatAcknowledgement = (1 << 2),
DbCatComment, DbCatComment = (1 << 3),
DbCatDowntime, DbCatDowntime = (1 << 4),
DbCatEventHandler, DbCatEventHandler = (1 << 5),
DbCatExternalCommand, DbCatExternalCommand = (1 << 6),
DbCatFlapping, DbCatFlapping = (1 << 7),
DbCatCheck, DbCatCheck = (1 << 8),
DbCatLog, DbCatLog = (1 << 9),
DbCatNotification, DbCatNotification = (1 << 10),
DbCatProgramStatus, DbCatProgramStatus = (1 << 11),
DbCatRetention, DbCatRetention = (1 << 12),
DbCatStateHistory DbCatStateHistory = (1 << 13)
}; };
class DbObject; class DbObject;