swad-core/swad_social.h

95 lines
3.0 KiB
C
Raw Normal View History

2015-12-28 19:23:42 +01:00
// swad_social.c: social networking
#ifndef _SWAD_SOC
#define _SWAD_SOC
/*
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-2015 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 **********************************/
/*****************************************************************************/
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
/*****************************************************************************/
/******************************** Public types *******************************/
/*****************************************************************************/
2015-12-29 01:28:17 +01:00
#define Soc_NUM_SOCIAL_EVENTS 13
2015-12-28 19:23:42 +01:00
// If the numbers assigned to each event type change,
// it is necessary to change old numbers to new ones in database table social
typedef enum
{
2015-12-29 10:38:46 +01:00
Soc_EVENT_UNKNOWN = 0,
2015-12-28 19:23:42 +01:00
/* Institution tab */
2015-12-29 10:38:46 +01:00
Soc_EVENT_INS_DOC_PUB_FILE = 1,
Soc_EVENT_INS_SHA_PUB_FILE = 2,
2015-12-28 19:23:42 +01:00
/* Centre tab */
2015-12-29 10:38:46 +01:00
Soc_EVENT_CTR_DOC_PUB_FILE = 3,
Soc_EVENT_CTR_SHA_PUB_FILE = 4,
2015-12-28 19:23:42 +01:00
/* Degree tab */
2015-12-29 10:38:46 +01:00
Soc_EVENT_DEG_DOC_PUB_FILE = 5,
Soc_EVENT_DEG_SHA_PUB_FILE = 6,
2015-12-28 19:23:42 +01:00
/* Course tab */
2015-12-29 10:38:46 +01:00
Soc_EVENT_CRS_DOC_PUB_FILE = 7,
Soc_EVENT_CRS_SHA_PUB_FILE = 8,
2015-12-28 19:23:42 +01:00
/* Assessment tab */
2015-12-29 10:38:46 +01:00
Soc_EVENT_EXAM_ANNOUNCEMENT = 9,
2015-12-28 19:23:42 +01:00
2015-12-29 10:38:46 +01:00
/* Users tab */
2015-12-28 19:23:42 +01:00
/* Social tab */
2015-12-29 10:38:46 +01:00
Soc_EVENT_SOCIAL_POST = 10,
2015-12-28 19:23:42 +01:00
/* Messages tab */
2015-12-29 10:38:46 +01:00
Soc_EVENT_NOTICE = 11,
Soc_EVENT_FORUM_POST = 12,
2015-12-28 19:23:42 +01:00
/* Statistics tab */
/* Profile tab */
} Soc_SocialEvent_t;
/*****************************************************************************/
/****************************** Public prototypes ****************************/
/*****************************************************************************/
2015-12-29 21:21:51 +01:00
void Soc_FormSocialPost (void);
2015-12-29 21:47:42 +01:00
void Soc_ReceiveSocialPost (void);
2015-12-29 21:21:51 +01:00
2015-12-29 14:24:37 +01:00
void Soc_ShowUsrTimeline (long UsrCod);
void Soc_ShowFollowingTimeline (void);
2015-12-28 19:23:42 +01:00
2015-12-28 20:46:48 +01:00
void Soc_StoreSocialEvent (Soc_SocialEvent_t SocialEvent,long Cod);
2015-12-30 02:08:08 +01:00
void Soc_RemoveSocialEvent (void);
2015-12-28 19:23:42 +01:00
#endif