swad-core/swad_setting.h

77 lines
2.9 KiB
C
Raw Normal View History

2019-03-26 11:53:37 +01:00
// swad_setting.h: user's settings / preferences
#ifndef _SWAD_SET
#define _SWAD_SET
/*
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.
Copyright (C) 1999-2023 Antonio Ca<EFBFBD>as Vargas
2019-03-26 11:53:37 +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_date.h"
2019-03-26 11:53:37 +01:00
/*****************************************************************************/
/***************************** Public constants ******************************/
/*****************************************************************************/
// Related with type of list of users
#define Set_NUM_USR_LIST_TYPES 3
typedef enum
{
Set_USR_LIST_UNKNOWN = 0,
Set_USR_LIST_AS_CLASS_PHOTO = 1,
Set_USR_LIST_AS_LISTING = 2,
} Set_ShowUsrsType_t;
#define Set_SHOW_USRS_TYPE_DEFAULT Set_USR_LIST_AS_CLASS_PHOTO
2019-03-26 11:53:37 +01:00
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void Set_EditSettings (void);
void Set_GetSettingsFromIP (void);
void Set_SetSettingsFromIP (void);
void Set_ChangeSideCols (void);
unsigned Set_GetParSideCols (void);
unsigned Set_GetSideColsFromStr (const char *Str);
//------------------------ My settings on users' list -------------------------
void Set_PutParsPrefsAboutUsrList (void);
void Set_GetAndUpdatePrefsAboutUsrList (void);
void Set_PutParUsrListType (Set_ShowUsrsType_t ListType);
void Set_GetAndUpdateColsClassPhoto (void);
void Set_GetMyColsClassPhotoFromDB (void);
void Set_PutParColsClassPhoto (void);
void Set_PutParListWithPhotos (void);
void Set_GetMyPrefAboutListWithPhotosFromDB (void);
void Set_BeginSettingsHead (void);
2019-03-26 11:53:37 +01:00
void Set_EndSettingsHead (void);
void Set_BeginOneSettingSelector (void);
2019-03-26 11:53:37 +01:00
void Set_EndOneSettingSelector (void);
void Set_BeginPref (bool Condition);
void Set_EndPref (void);
2019-03-26 11:53:37 +01:00
#endif