Diana Software
Namespaces | Enumerations | Functions
QDbDefs.hh File Reference

common definitions and enums for db classes More...

Go to the source code of this file.

Namespaces

 QDbDefinitions
 

Enumerations

enum  QApolloUserLevel {
  SoftwareLevel = -1 , SuperUserLevel = 0 , AddUserLevel = 5 , StartStopLevel = 10 ,
  ReadLevel = 20 , NoPrivLevel = 99 , InvalidLevel = 100
}
 user authentication levels allowed in the users db table More...
 
enum  QDbDefinitions::QSettingsBasketKind { QDbDefinitions::Unknown = 0 , QDbDefinitions::Online = 1 , QDbDefinitions::Reprocess = 2 }
 used to retrieve and store settings baskets: the settings_basket_id depends also on the settings basket kind More...
 

Functions

int QDbDefinitions::GetMinimumId (QSettingsBasketKind sbKind)
 this function defines the minimum allowed settings_basket_id for a given kind of settings basket (Online or Reprocess). -1 is returned when no limit is defined More...
 
int QDbDefinitions::GetMaximumId (QSettingsBasketKind sbKind)
 this function defines the maximum allowed settings_basket_id for a given kind of settings basket (Online or Reprocess). -1 is returned when no limit is defined More...
 

Detailed Description

common definitions and enums for db classes

Definition in file QDbDefs.hh.

Enumeration Type Documentation

◆ QApolloUserLevel

user authentication levels allowed in the users db table

Lower level corresponds to higher the privileges

Enumerator
SoftwareLevel 

service users for internal software use

SuperUserLevel 

superuser

AddUserLevel 

can add new users

StartStopLevel 

can start/stop measurements

ReadLevel 

read-only access level

NoPrivLevel 

can do nothing

InvalidLevel 

associated user is invalid – can do nothing

Definition at line 19 of file QDbDefs.hh.