swad-core/swad_indicator.h

83 lines
2.9 KiB
C
Raw Normal View History

2014-12-01 23:55:08 +01:00
// swad_indicator.h: indicators of courses
#ifndef _SWAD_IND
#define _SWAD_IND
/*
SWAD (Shared Workspace At a Distance in Spanish),
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
2014-12-01 23:55:08 +01:00
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 ***********************************/
/*****************************************************************************/
#include "swad_info.h"
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/************************** Public types and constants ***********************/
/*****************************************************************************/
#define Ind_NUM_INDICATORS 5
2017-01-28 15:58:46 +01:00
#define Ind_MAX_SIZE_INDICATORS_SELECTED ((1 + Ind_NUM_INDICATORS) * (10 + 1))
2016-06-08 14:14:31 +02:00
2014-12-01 23:55:08 +01:00
struct Ind_IndicatorsCrs
{
unsigned NumFilesInDocumentZones;
unsigned NumFilesInSharedZones;
2014-12-01 23:55:08 +01:00
bool ThereIsSyllabus;
Inf_Src_t TeachingGuideSrc;
Inf_Src_t SyllabusLecSrc;
Inf_Src_t SyllabusPraSrc;
2014-12-01 23:55:08 +01:00
bool ThereAreAssignments;
unsigned NumAssignments;
unsigned NumFilesAssignments;
unsigned NumFilesWorks;
2014-12-01 23:55:08 +01:00
bool ThereIsOnlineTutoring;
unsigned NumThreads;
unsigned NumPosts;
unsigned NumUsrsToBeNotifiedByEMail;
unsigned NumMsgsSentByTchs;
bool ThereAreMaterials;
bool ThereIsAssessment;
Inf_Src_t AssessmentSrc;
2016-06-10 10:22:22 +02:00
unsigned NumIndicators;
2014-12-01 23:55:08 +01:00
bool CoursePartiallyOK;
bool CourseAllOK;
};
2020-04-12 21:33:02 +02:00
struct Ind_Indicators
{
long DegTypCod;
long DptCod;
char StrIndicatorsSelected[Ind_MAX_SIZE_INDICATORS_SELECTED + 1];
bool IndicatorsSelected[1 + Ind_NUM_INDICATORS];
};
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void Ind_ReqIndicatorsCourses (void);
void Ind_ShowIndicatorsCourses (void);
2016-06-10 10:22:22 +02:00
int Ind_GetNumIndicatorsCrsFromDB (long CrsCod);
void Ind_ComputeAndStoreIndicatorsCrs (long CrsCod,int NumIndicatorsFromDB,
2020-04-12 21:33:02 +02:00
struct Ind_IndicatorsCrs *IndicatorsCrs);
2014-12-01 23:55:08 +01:00
#endif