2023-04-01 01:01:12 +02:00
|
|
|
|
// swad_project_config.h: projects configuration
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_PRJ_CFG
|
|
|
|
|
#define _SWAD_PRJ_CFG
|
|
|
|
|
/*
|
|
|
|
|
SWAD (Shared Workspace At a Distance),
|
|
|
|
|
is a web platform developed at the University of Granada (Spain),
|
|
|
|
|
and used to support university teaching.
|
|
|
|
|
|
|
|
|
|
This file is part of SWAD core.
|
|
|
|
|
Copyright (C) 1999-2023 Antonio Ca<EFBFBD>as Vargas
|
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/********************************* Headers ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2023-04-13 14:25:52 +02:00
|
|
|
|
#include "swad_project.h"
|
|
|
|
|
|
2023-04-01 01:01:12 +02:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/************************** Public types and constants ***********************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2023-04-10 14:41:20 +02:00
|
|
|
|
#define PrjCfg_NET_CAN_CREATE_DEFAULT true
|
2023-04-01 01:01:12 +02:00
|
|
|
|
|
2023-05-17 15:28:15 +02:00
|
|
|
|
#define PrjCfg_NUM_RUBRIC_TYPES 4
|
2023-04-12 11:05:40 +02:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2023-05-03 11:02:06 +02:00
|
|
|
|
PrjCfg_RUBRIC_ERR = 0,
|
|
|
|
|
PrjCfg_RUBRIC_TUT = 1,
|
|
|
|
|
PrjCfg_RUBRIC_EVL = 2,
|
|
|
|
|
PrjCfg_RUBRIC_GBL = 3,
|
2023-05-17 15:28:15 +02:00
|
|
|
|
} PrjCfg_RubricType_t;
|
2023-04-12 11:05:40 +02:00
|
|
|
|
|
2023-04-13 14:25:52 +02:00
|
|
|
|
struct PrjCfg_Config
|
|
|
|
|
{
|
|
|
|
|
bool NETCanCreate;
|
2023-05-17 15:28:15 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct PrgCfg_ListRubCods
|
|
|
|
|
{
|
|
|
|
|
long *RubCods;
|
|
|
|
|
unsigned NumRubrics;
|
2023-04-13 14:25:52 +02:00
|
|
|
|
};
|
|
|
|
|
|
2023-04-01 01:01:12 +02:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public prototypes *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2023-04-13 14:25:52 +02:00
|
|
|
|
void PrjCfg_GetConfig (struct PrjCfg_Config *Config);
|
2023-04-01 01:01:12 +02:00
|
|
|
|
|
2023-04-10 14:41:20 +02:00
|
|
|
|
bool PrjCfg_CheckIfICanConfig (void);
|
2023-04-01 01:01:12 +02:00
|
|
|
|
void PrjCfg_ShowFormConfig (void);
|
2023-05-17 15:28:15 +02:00
|
|
|
|
PrjCfg_RubricType_t PrjCfg_GetRubricFromString (const char *Str);
|
|
|
|
|
void PrjCfg_ChangeNETCanCreate (void);
|
|
|
|
|
void PrjCfg_ChangeRubricsOfType (void);
|
2023-04-01 01:01:12 +02:00
|
|
|
|
|
|
|
|
|
#endif
|