swad-core/swad_exam.h

72 lines
2.7 KiB
C
Raw Normal View History

2014-12-01 23:55:08 +01:00
// swad_exam.h: exam announcements
#ifndef _SWAD_EXA
#define _SWAD_EXA
/*
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.
2016-01-01 20:19:43 +01:00
Copyright (C) 1999-2016 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 ***********************************/
/*****************************************************************************/
2015-10-16 02:24:29 +02:00
#include <stdbool.h> // For boolean type
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/************************** Public types and constants ***********************/
/*****************************************************************************/
typedef enum
{
Exa_NORMAL_VIEW,
Exa_PRINT_VIEW,
2015-11-13 01:27:44 +01:00
Exa_FORM_VIEW,
} Exa_TypeViewExamAnnouncement_t;
2014-12-01 23:55:08 +01:00
typedef enum
{
Exa_ACTIVE_EXAM_ANNOUNCEMENT = 0,
Exa_OBSOLETE_EXAM_ANNOUNCEMENT = 1,
Exa_DELETED_EXAM_ANNOUNCEMENT = 2,
} Exa_ExamAnnouncementStatus_t; // Don't change these numbers because they are used in database
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void Exa_PutFrmEditAExamAnnouncement (void);
void Exa_ReceiveExamAnnouncement (void);
void Exa_PrintExamAnnouncement (void);
2016-12-11 21:02:22 +01:00
void Exa_ReqRemoveExamAnnouncement (void);
2014-12-01 23:55:08 +01:00
void Exa_RemoveExamAnnouncement (void);
void Exa_FreeMemExamAnnouncement (void);
void Exa_FreeListExamAnnouncements (void);
void Exa_ListExamAnnouncementsSee (void);
2016-06-01 19:34:44 +02:00
2016-06-03 10:37:00 +02:00
void Exa_GetExaCodToHighlight (void);
void Exa_GetDateToHighlight (void);
2016-06-01 19:34:44 +02:00
2014-12-01 23:55:08 +01:00
void Exa_CreateListOfExamAnnouncements (void);
2016-06-03 10:37:00 +02:00
void Exa_PutHiddenParamExaCod (long ExaCod);
2015-12-29 02:09:50 +01:00
void Exa_GetSummaryAndContentExamAnnouncement (char *SummaryStr,char **ContentStr,
long ExaCod,unsigned MaxChars,bool GetContent);
2014-12-01 23:55:08 +01:00
#endif