swad-core/swad_follow.h

72 lines
2.9 KiB
C
Raw Normal View History

2015-03-18 01:06:43 +01:00
// swad_follow.h: user's followers and followed
#ifndef _SWAD_FOL
#define _SWAD_FOL
/*
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.
2017-01-13 01:51:23 +01:00
Copyright (C) 1999-2017 Antonio Ca<EFBFBD>as Vargas
2015-03-18 01:06:43 +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 **********************************/
/*****************************************************************************/
2015-03-24 00:01:40 +01:00
#include <stdlib.h> // For malloc
2015-03-19 01:59:08 +01:00
#include "swad_user.h"
2015-03-18 01:06:43 +01:00
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
/*****************************************************************************/
/******************************** Public types *******************************/
/*****************************************************************************/
/*****************************************************************************/
/****************************** Public prototypes ****************************/
/*****************************************************************************/
2016-01-27 22:31:36 +01:00
void Fol_PutLinkWhoToFollow (void);
2017-02-16 20:22:13 +01:00
void Fol_SuggestUsrsToFollowMainZone (void);
void Fol_SuggestUsrsToFollowMainZoneOnRightColumn (void);
2016-01-27 22:31:36 +01:00
2015-03-18 01:06:43 +01:00
bool Fol_CheckUsrIsFollowerOf (long FollowerCod,long FollowedCod);
2015-12-29 14:24:37 +01:00
unsigned Fol_GetNumFollowing (long UsrCod);
unsigned Fol_GetNumFollowers (long UsrCod);
void Fol_ShowFollowingAndFollowers (const struct UsrData *UsrDat,
2015-12-29 19:40:38 +01:00
unsigned NumFollowing,unsigned NumFollowers,
bool UsrFollowsMe,bool IFollowUsr);
2015-03-19 01:59:08 +01:00
void Fol_ListFollowing (void);
void Fol_ListFollowers (void);
2015-03-18 01:06:43 +01:00
2017-02-17 02:42:00 +01:00
void Fol_FollowUsr1 (void);
void Fol_FollowUsr2 (void);
void Fol_UnfollowUsr1 (void);
void Fol_UnfollowUsr2 (void);
2015-03-18 01:06:43 +01:00
2015-03-23 10:35:15 +01:00
void Fol_GetAndShowRankingFollowers (void);
2017-03-06 13:01:16 +01:00
void Fol_GetNotifFollower (char SummaryStr[Cns_MAX_BYTES_SUMMARY_STRING + 1],
2017-01-15 22:58:26 +01:00
char **ContentStr);
2015-03-24 00:01:40 +01:00
2015-12-12 02:01:20 +01:00
void Fol_RemoveUsrFromUsrFollow (long UsrCod);
2015-03-18 01:06:43 +01:00
#endif