mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
86 lines
3.0 KiB
C
86 lines
3.0 KiB
C
// swad_exam_set.h: set of questions in exams
|
|
|
|
#ifndef _SWAD_EXA_SET
|
|
#define _SWAD_EXA_SET
|
|
/*
|
|
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-2021 Antonio Cañas Vargas
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General 3 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_exam_type.h"
|
|
#include "swad_test_type.h"
|
|
|
|
/*****************************************************************************/
|
|
/************************** Public types and constants ***********************/
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
/***************************** Public prototypes *****************************/
|
|
/*****************************************************************************/
|
|
|
|
void ExaSet_PutParamsOneSet (void *Exams);
|
|
long ExaSet_GetParamSetCod (void);
|
|
|
|
void ExaSet_GetDataOfSetByCod (struct ExaSet_Set *Set);
|
|
|
|
void ExaSet_ReceiveFormSet (void);
|
|
void ExaSet_ChangeSetTitle (void);
|
|
void ExaSet_ChangeNumQstsToExam (void);
|
|
|
|
unsigned ExaSet_GetNumSetsExam (long ExaCod);
|
|
unsigned ExaSet_GetNumQstsExam (long ExaCod);
|
|
|
|
void ExaSet_RequestCreatOrEditSet (void);
|
|
void ExaSet_ReqSelectQstsToAddToSet (void);
|
|
void ExaSet_ListQstsToAddToSet (void);
|
|
|
|
void ExaSet_ListExamSets (struct Exa_Exams *Exams,
|
|
struct Exa_Exam *Exam,
|
|
struct ExaSet_Set *Set);
|
|
|
|
void ExaSet_ResetSet (struct ExaSet_Set *Set);
|
|
|
|
Tst_AnswerType_t ExaSet_GetQstAnswerTypeFromDB (long QstCod);
|
|
void ExaSet_GetQstDataFromDB (struct Tst_Question *Question);
|
|
void ExaSet_GetAnswersQst (struct Tst_Question *Question,MYSQL_RES **mysql_res,
|
|
bool Shuffle);
|
|
|
|
void ExaSet_AddQstsToSet (void);
|
|
|
|
void ExaSet_RequestRemoveSet (void);
|
|
void ExaSet_RemoveSet (void);
|
|
|
|
void ExaSet_MoveUpSet (void);
|
|
void ExaSet_MoveDownSet (void);
|
|
|
|
void ExaSet_RequestRemoveQstFromSet (void);
|
|
void ExaSet_RemoveQstFromSet (void);
|
|
|
|
void ExaSet_ValidateQst (void);
|
|
void ExaSet_InvalidateQst (void);
|
|
|
|
void ExaSet_WriteSetTitle (const struct ExaSet_Set *Set);
|
|
|
|
#endif
|