swad-core/swad_banner.h

77 lines
2.7 KiB
C
Raw Permalink Normal View History

2014-12-01 23:55:08 +01:00
// swad_banner.h: banners
#ifndef _SWAD_BAN
#define _SWAD_BAN
2014-12-01 23:55:08 +01:00
/*
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-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
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_constant.h"
#include "swad_hidden_visible.h"
#include "swad_name.h"
#include "swad_string.h"
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/************************** Public types and constants ***********************/
/*****************************************************************************/
2017-03-09 11:16:17 +01:00
#define Ban_MAX_CHARS_IMAGE NAME_MAX // 255
#define Ban_MAX_BYTES_IMAGE Ban_MAX_CHARS_IMAGE // 255
2014-12-01 23:55:08 +01:00
2020-04-08 03:06:45 +02:00
struct Ban_Banner
2014-12-01 23:55:08 +01:00
{
long BanCod;
HidVis_HiddenOrVisible_t HiddenOrVisible;
char ShrtName[Nam_MAX_BYTES_SHRT_NAME + 1];
char FullName[Nam_MAX_BYTES_FULL_NAME + 1];
2017-03-07 01:56:41 +01:00
char Img[Ban_MAX_BYTES_IMAGE + 1];
char WWW[Cns_MAX_BYTES_WWW + 1];
2014-12-01 23:55:08 +01:00
};
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void Ban_ShowAllBanners (void);
2014-12-01 23:55:08 +01:00
void Ban_EditBanners (void);
2018-11-16 00:24:44 +01:00
void Ban_PutIconToViewBanners (void);
void Ban_GetBannerDataByCod (struct Ban_Banner *Ban);
2014-12-01 23:55:08 +01:00
void Ban_RemoveBanner (void);
void Ban_UnhideBanner (void);
2014-12-01 23:55:08 +01:00
void Ban_HideBanner (void);
void Ban_RenameBannerShort (void);
void Ban_RenameBannerFull (void);
void Ban_ChangeBannerImg (void);
void Ban_ChangeBannerWWW (void);
2019-04-09 14:46:32 +02:00
void Ban_ContEditAfterChgBan (void);
void Ban_ReceiveNewBanner (void);
2014-12-01 23:55:08 +01:00
void Ban_WriteMenuWithBanners (void);
2020-04-06 17:16:31 +02:00
2014-12-01 23:55:08 +01:00
void Ban_ClickOnBanner (void);
2020-04-06 17:16:31 +02:00
long Ban_GetBanCodClicked (void);
2014-12-01 23:55:08 +01:00
#endif