swad-core/swad_exam.h

78 lines
2.8 KiB
C
Raw Permalink Normal View History

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.
Copyright (C) 1999-2024 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"
#include "swad_user.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);
void Exa_ListAllExams (struct Exa_Exams *Exams);
2020-05-07 02:22:57 +02:00
Usr_Can_t Exa_CheckIfICanEditExams (void);
2020-05-07 02:22:57 +02:00
2020-04-20 01:26:46 +02:00
void Exa_SeeOneExam (void);
void Exa_ShowOnlyOneExam (struct Exa_Exams *Exams,Frm_PutForm_t PutFormSession);
2020-04-20 01:26:46 +02:00
void Exa_ShowOnlyOneExamBegin (struct Exa_Exams *Exams,
Frm_PutForm_t PutFormSession);
2020-04-20 01:26:46 +02:00
void Exa_ShowOnlyOneExamEnd (void);
void Exa_SetCurrentExaCod (long ExaCod);
void Exa_PutPars (void *Exams);
void Exa_GetPars (struct Exa_Exams *Exams,Exa_CheckExaCod_t CheckExaCod);
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_GetExamDataByCod (struct Exa_Exam *Exam);
void Exa_GetExamDataByFolder (struct Exa_Exam *Exam);
2020-04-20 01:26:46 +02:00
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_ReqCreatOrEditExam (void);
2020-05-07 02:22:57 +02:00
void Exa_PutFormsOneExam (struct Exa_Exams *Exams,
Exa_ExistingNewExam_t ExistingNewExam);
2020-04-27 02:09:56 +02:00
void Exa_ReceiveExam (void);
2020-04-20 01:26:46 +02:00
//-------------------------------- Figures ------------------------------------
void Exa_GetAndShowExamsStats (void);
2014-12-01 23:55:08 +01:00
#endif