swad-core/swad_timeline_comment.h

81 lines
3.2 KiB
C
Raw Normal View History

2021-02-11 00:58:53 +01:00
// 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<EFBFBD>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"
2021-02-11 14:39:46 +01:00
#include "swad_timeline_post.h"
2021-02-11 00:58:53 +01:00
/*****************************************************************************/
/****************************** 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_Content Content;
2021-02-11 00:58:53 +01:00
};
/*****************************************************************************/
/****************************** Public prototypes ****************************/
/*****************************************************************************/
void TL_Com_PutIconToToggleComm (const char UniqueId[Frm_MAX_BYTES_ID + 1]);
void TL_Com_PutIconCommDisabled (void);
2021-02-11 00:58:53 +01:00
void TL_Com_PutPhotoAndFormToWriteNewComm (const struct TL_Timeline *Timeline,
long NotCod,
const char IdNewComm[Frm_MAX_BYTES_ID + 1]);
2021-02-11 00:58:53 +01:00
void TL_Com_WriteCommsInNote (const struct TL_Timeline *Timeline,
const struct TL_Not_Note *Not);
2021-02-11 00:58:53 +01:00
void TL_Com_ShowHiddenCommsUsr (void);
void TL_Com_ShowHiddenCommsGbl (void);
2021-02-11 00:58:53 +01:00
void TL_Com_ReceiveCommUsr (void);
void TL_Com_ReceiveCommGbl (void);
2021-02-11 00:58:53 +01:00
void TL_Com_RequestRemComUsr (void);
void TL_Com_RequestRemComGbl (void);
void TL_Com_RemoveComUsr (void);
void TL_Com_RemoveComGbl (void);
void TL_Com_RemoveCommMediaAndDBEntries (long PubCod);
2021-02-11 00:58:53 +01:00
void TL_Com_GetDataOfCommByCod (struct TL_Com_Comment *Com);
#endif