mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-24 00:01:03 +02:00
83 lines
3.3 KiB
C
83 lines
3.3 KiB
C
// swad_timeline.h: social timeline
|
|
|
|
#ifndef _SWAD_TL_COM
|
|
#define _SWAD_TL_COM
|
|
/*
|
|
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-2021 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 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_timeline_note.h"
|
|
#include "swad_timeline_post.h"
|
|
|
|
/*****************************************************************************/
|
|
/****************************** Public constants *****************************/
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
/******************************** Public types *******************************/
|
|
/*****************************************************************************/
|
|
|
|
struct TL_Com_Comment
|
|
{
|
|
long PubCod; // Unique code/identifier for each publication
|
|
long UsrCod; // Publisher
|
|
long NotCod; // Note code to which this comment belongs
|
|
time_t DateTimeUTC; // Date-time of publication in UTC time
|
|
unsigned NumFavs; // Number of times (users) this comment has been favourited
|
|
struct TL_Pst_PostContent Content;
|
|
};
|
|
|
|
/*****************************************************************************/
|
|
/****************************** Public prototypes ****************************/
|
|
/*****************************************************************************/
|
|
|
|
void TL_Com_PutIconToToggleComment (const char UniqueId[Frm_MAX_BYTES_ID + 1]);
|
|
void TL_Com_PutIconCommentDisabled (void);
|
|
|
|
void TL_Com_PutHiddenFormToWriteNewComment (const struct TL_Timeline *Timeline,
|
|
long NotCod,
|
|
const char IdNewComment[Frm_MAX_BYTES_ID + 1]);
|
|
unsigned long TL_Com_GetNumCommentsInNote (long NotCod);
|
|
|
|
void TL_Com_WriteCommentsInNote (struct TL_Timeline *Timeline,
|
|
const struct TL_Not_Note *Not,
|
|
unsigned NumComments);
|
|
|
|
void TL_Com_ShowHiddenCommentsUsr (void);
|
|
void TL_Com_ShowHiddenCommentsGbl (void);
|
|
|
|
void TL_Com_ReceiveCommentUsr (void);
|
|
void TL_Com_ReceiveCommentGbl (void);
|
|
|
|
void TL_Com_RequestRemComUsr (void);
|
|
void TL_Com_RequestRemComGbl (void);
|
|
void TL_Com_RemoveComUsr (void);
|
|
void TL_Com_RemoveComGbl (void);
|
|
|
|
void TL_Com_RemoveCommentMediaAndDBEntries (long PubCod);
|
|
|
|
void TL_Com_GetDataOfCommByCod (struct TL_Com_Comment *Com);
|
|
|
|
#endif
|