// swad_exam.h: exams #ifndef _SWAD_EXA #define _SWAD_EXA /* 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-2020 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 . */ /*****************************************************************************/ /********************************* Headers ***********************************/ /*****************************************************************************/ // #include "swad_date.h" // #include "swad_exam_event.h" #include "swad_exam_type.h" // #include "swad_scope.h" /*****************************************************************************/ /************************** Public types and constants ***********************/ /*****************************************************************************/ /*****************************************************************************/ /***************************** Public prototypes *****************************/ /*****************************************************************************/ void Exa_ResetExams (struct Exa_Exams *Exams); void Exa_ResetExam (struct Exa_Exam *Exam); void Exa_SeeAllExams (void); void Exa_SeeOneExam (void); void Exa_ShowOnlyOneExam (struct Exa_Exams *Exams, struct Exa_Exam *Exam, struct ExaEvt_Event *Event, bool PutFormEvent); void Exa_ShowOnlyOneExamBegin (struct Exa_Exams *Exams, struct Exa_Exam *Exam, struct ExaEvt_Event *Event, bool PutFormEvent); void Exa_ShowOnlyOneExamEnd (void); void Exa_SetCurrentExaCod (long ExaCod); void ExaSet_PutParamsOneSet (void *Exams); void Exa_PutParams (void *Exams); void Exa_PutParamExamCod (long ExaCod); long Exa_GetParamExamCod (void); long ExaSet_GetParamSetCod (void); void Exa_GetParams (struct Exa_Exams *Exams); 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); void Exa_RemoveExamsCrs (long CrsCod); void Exa_HideExam (void); void Exa_UnhideExam (void); void Exa_RequestCreatOrEditExam (void); void ExaSet_ReceiveFormSet (void); void ExaSet_ChangeSetTitle (void); void ExaSet_ChangeNumQstsToExam (void); void Exa_ReceiveFormExam (void); unsigned ExaSet_GetNumSetsExam (long ExaCod); unsigned ExaSet_GetNumQstsExam (long ExaCod); void ExaSet_RequestCreatOrEditSet (void); void ExaSet_ReqSelectQstsToAddToSet (void); void ExaSet_ListQstsToAddToSet (void); void Exa_PutParamQstInd (unsigned QstInd); unsigned Exa_GetParamQstInd (void); long Exa_GetQstCodFromQstInd (long ExaCod,unsigned QstInd); unsigned Exa_GetPrevQuestionIndexInExam (long ExaCod,unsigned QstInd); unsigned Exa_GetNextQuestionIndexInExam (long ExaCod,unsigned QstInd); 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); unsigned Exa_GetNumCoursesWithExams (Hie_Level_t Scope); unsigned Exa_GetNumExams (Hie_Level_t Scope); double Exa_GetNumQstsPerCrsExam (Hie_Level_t Scope); void Exa_ShowTstTagsPresentInAnExam (long ExaCod); void Exa_GetScoreRange (long ExaCod,double *MinScore,double *MaxScore); #endif