1 /* 2 # PostgreSQL Database Modeler (pgModeler) 3 # 4 # Copyright 2006-2020 - Raphael Araújo e Silva <raphael@pgmodeler.io> 5 # 6 # This program is free software: you can redistribute it and/or modify 7 # it under the terms of the GNU General Public License as published by 8 # the Free Software Foundation version 3. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # The complete text of GPLv3 is at LICENSE file on source code root directory. 16 # Also, you can get the complete GNU General Public License at <http://www.gnu.org/licenses/> 17 */ 18 19 /** 20 \ingroup libpgmodeler/pgsqltypes 21 \class SecurityType 22 \brief Implements the operations to manipulate function's security types. 23 **/ 24 25 #ifndef SECURITY_TYPE 26 #define SECURITY_TYPE 27 28 #include "templatetype.h" 29 30 class SecurityType: public TemplateType<SecurityType>{ 31 public: 32 static constexpr unsigned Invoker = 1, 33 Definer = 2; 34 35 SecurityType(unsigned type_id); 36 SecurityType(const QString &type_name); 37 SecurityType(); 38 }; 39 40 #endif 41