2020-04-20 01:26:46 +02:00
|
|
|
|
// swad_exam.h: exams
|
2014-12-01 23:55:08 +01:00
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_EXA
|
|
|
|
|
#define _SWAD_EXA
|
|
|
|
|
/*
|
2020-04-20 01:26:46 +02:00
|
|
|
|
SWAD (Shared Workspace At a Distance),
|
2014-12-01 23:55:08 +01:00
|
|
|
|
is a web platform developed at the University of Granada (Spain),
|
|
|
|
|
and used to support university teaching.
|
|
|
|
|
|
|
|
|
|
This file is part of SWAD core.
|
2022-09-21 10:46:14 +02:00
|
|
|
|
Copyright (C) 1999-2022 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
|
2020-04-20 01:26:46 +02:00
|
|
|
|
it under the terms of the GNU Affero General 3 License as
|
2014-12-01 23:55:08 +01:00
|
|
|
|
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 ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2020-05-05 21:49:00 +02:00
|
|
|
|
#include "swad_exam_type.h"
|
2016-12-12 02:21:41 +01:00
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public prototypes *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2020-04-20 01:26:46 +02:00
|
|
|
|
void Exa_ResetExams (struct Exa_Exams *Exams);
|
2020-04-23 23:09:28 +02:00
|
|
|
|
void Exa_ResetExam (struct Exa_Exam *Exam);
|
2020-04-20 01:26:46 +02:00
|
|
|
|
|
|
|
|
|
void Exa_SeeAllExams (void);
|
2022-09-23 22:11:49 +02:00
|
|
|
|
void Exa_ListAllExams (struct Exa_Exams *Exams);
|
2020-05-07 02:22:57 +02:00
|
|
|
|
|
|
|
|
|
bool Exa_CheckIfICanEditExams (void);
|
|
|
|
|
|
2020-04-20 01:26:46 +02:00
|
|
|
|
void Exa_SeeOneExam (void);
|
|
|
|
|
void Exa_ShowOnlyOneExam (struct Exa_Exams *Exams,
|
2020-05-17 02:28:30 +02:00
|
|
|
|
struct ExaSes_Session *Session,
|
|
|
|
|
bool PutFormSession);
|
2020-04-20 01:26:46 +02:00
|
|
|
|
void Exa_ShowOnlyOneExamBegin (struct Exa_Exams *Exams,
|
2020-05-17 02:28:30 +02:00
|
|
|
|
struct ExaSes_Session *Session,
|
|
|
|
|
bool PutFormSession);
|
2020-04-20 01:26:46 +02:00
|
|
|
|
void Exa_ShowOnlyOneExamEnd (void);
|
|
|
|
|
|
|
|
|
|
void Exa_SetCurrentExaCod (long ExaCod);
|
|
|
|
|
void Exa_PutParams (void *Exams);
|
|
|
|
|
void Exa_PutParamExamCod (long ExaCod);
|
|
|
|
|
long Exa_GetParamExamCod (void);
|
2020-04-25 01:36:53 +02:00
|
|
|
|
void Exa_GetParams (struct Exa_Exams *Exams);
|
2020-04-20 01:26:46 +02:00
|
|
|
|
|
|
|
|
|
void Exa_GetListExams (struct Exa_Exams *Exams,Exa_Order_t SelectedOrder);
|
|
|
|
|
void Exa_GetListSelectedExaCods (struct Exa_Exams *Exams);
|
|
|
|
|
void Exa_GetDataOfExamByCod (struct Exa_Exam *Exam);
|
|
|
|
|
void Exa_GetDataOfExamByFolder (struct Exa_Exam *Exam);
|
|
|
|
|
void Exa_FreeListExams (struct Exa_Exams *Exams);
|
|
|
|
|
|
|
|
|
|
void Exa_AskRemExam (void);
|
|
|
|
|
void Exa_RemoveExam (void);
|
2020-05-18 22:59:07 +02:00
|
|
|
|
void Exa_RemoveCrsExams (long CrsCod);
|
2020-04-20 01:26:46 +02:00
|
|
|
|
|
|
|
|
|
void Exa_HideExam (void);
|
|
|
|
|
void Exa_UnhideExam (void);
|
|
|
|
|
|
|
|
|
|
void Exa_RequestCreatOrEditExam (void);
|
2020-05-07 02:22:57 +02:00
|
|
|
|
void Exa_PutFormsOneExam (struct Exa_Exams *Exams,
|
|
|
|
|
struct ExaSet_Set *Set,
|
|
|
|
|
bool ItsANewExam);
|
|
|
|
|
void Exa_PutFormEditionExam (struct Exa_Exams *Exams,
|
|
|
|
|
char Txt[Cns_MAX_BYTES_TEXT + 1],
|
|
|
|
|
bool ItsANewExam);
|
2020-04-27 02:09:56 +02:00
|
|
|
|
|
2020-05-05 21:49:00 +02:00
|
|
|
|
void Exa_ReceiveFormExam (void);
|
2020-04-20 01:26:46 +02:00
|
|
|
|
|
2020-05-07 02:22:57 +02:00
|
|
|
|
bool Exa_CheckIfEditable (const struct Exa_Exam *Exam);
|
2020-04-12 20:08:37 +02:00
|
|
|
|
|
2022-01-03 02:47:16 +01:00
|
|
|
|
//-------------------------------- Figures ------------------------------------
|
|
|
|
|
void Exa_GetAndShowExamsStats (void);
|
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
#endif
|