2014-12-01 23:55:08 +01:00
|
|
|
|
// swad_notice.h: notices (yellow notes)
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_NOT
|
|
|
|
|
#define _SWAD_NOT
|
|
|
|
|
/*
|
|
|
|
|
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.
|
2018-04-24 13:21:53 +02:00
|
|
|
|
Copyright (C) 1999-2018 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 ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "swad_statistic.h"
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public constants ******************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/******************************* Public types ********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#define Not_NUM_TYPES_LISTING 2
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
Not_LIST_BRIEF_NOTICES = 0,
|
|
|
|
|
Not_LIST_FULL_NOTICES = 1,
|
|
|
|
|
} Not_Listing_t;
|
|
|
|
|
|
|
|
|
|
#define Not_NUM_STATUS 2
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
Not_ACTIVE_NOTICE = 0,
|
|
|
|
|
Not_OBSOLETE_NOTICE = 1,
|
|
|
|
|
} Not_Status_t; // Don't change these numbers because they are used in database
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public prototypes *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
void Not_ShowFormNotice (void);
|
|
|
|
|
void Not_ReceiveNotice (void);
|
2015-11-03 22:13:01 +01:00
|
|
|
|
void Not_ListNoticesAfterRemoval (void);
|
|
|
|
|
void Not_ListFullNotices (void);
|
2015-11-03 21:58:51 +01:00
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
void Not_HideActiveNotice (void);
|
|
|
|
|
void Not_RevealHiddenNotice (void);
|
2015-11-03 21:58:51 +01:00
|
|
|
|
|
|
|
|
|
void Not_RequestRemNotice (void);
|
|
|
|
|
void Not_RemoveNotice (void);
|
|
|
|
|
|
2016-06-03 10:37:00 +02:00
|
|
|
|
void Not_GetNotCodToHighlight (void);
|
2016-11-06 22:37:12 +01:00
|
|
|
|
void Not_ShowNotices (Not_Listing_t TypeNoticesListing);
|
2017-03-08 14:12:33 +01:00
|
|
|
|
void Not_GetSummaryAndContentNotice (char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1],
|
2017-03-06 13:01:16 +01:00
|
|
|
|
char **ContentStr,
|
|
|
|
|
long NotCod,bool GetContent);
|
2015-11-01 20:21:59 +01:00
|
|
|
|
unsigned Not_GetNumNotices (Sco_Scope_t Scope,Not_Status_t Status,unsigned *NumNotif);
|
2014-12-01 23:55:08 +01:00
|
|
|
|
unsigned Not_GetNumNoticesDeleted (Sco_Scope_t Scope,unsigned *NumNotif);
|
|
|
|
|
|
2015-12-29 13:18:25 +01:00
|
|
|
|
void Not_PutHiddenParamNotCod (long NotCod);
|
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
#endif
|