chenqiyang
2021-08-20 7b95fb4d4549d3452ee17165236186afc1f2b393
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
 * Copyright (c) 2010-2019 Belledonne Communications SARL.
 *
 * This file is part of Liblinphone.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
 
#ifndef _L_C_PARTICIPANT_IMDN_STATE_H_
#define _L_C_PARTICIPANT_IMDN_STATE_H_
 
#include "linphone/api/c-types.h"
 
// =============================================================================
 
#ifdef __cplusplus
    extern "C" {
#endif // ifdef __cplusplus
 
/**
 * @addtogroup misc
 * @{
 */
 
/**
 * Increment reference count of LinphoneParticipantImdnState object.
 **/
LINPHONE_PUBLIC LinphoneParticipantImdnState *linphone_participant_imdn_state_ref (LinphoneParticipantImdnState *state);
 
/**
 * Decrement reference count of LinphoneParticipantImdnState object.
 **/
LINPHONE_PUBLIC void linphone_participant_imdn_state_unref (LinphoneParticipantImdnState *state);
 
/**
 * Retrieve the user pointer associated with a LinphoneParticipantImdnState.
 * @param[in] state A LinphoneParticipantImdnState object
 * @return The user pointer associated with the LinphoneParticipantImdnState.
**/
LINPHONE_PUBLIC void *linphone_participant_imdn_state_get_user_data(const LinphoneParticipantImdnState *state);
 
/**
 * Assign a user pointer to a LinphoneParticipantImdnState.
 * @param[in] state A LinphoneParticipantImdnState object
 * @param[in] ud The user pointer to associate with the LinphoneParticipantImdnState
**/
LINPHONE_PUBLIC void linphone_participant_imdn_state_set_user_data(LinphoneParticipantImdnState *state, void *ud);
 
/**
 * Get the participant concerned by a LinphoneParticipantImdnState.
 * @param[in] state A LinphoneParticipantImdnState object
 * @return The participant concerned by the LinphoneParticipantImdnState
 */
LINPHONE_PUBLIC const LinphoneParticipant *linphone_participant_imdn_state_get_participant (
    const LinphoneParticipantImdnState *state
);
 
/**
 * Get the chat message state the participant is in.
 * @param state A LinphoneParticipantImdnState object
 * @return The chat message state the participant is in
 */
LINPHONE_PUBLIC LinphoneChatMessageState linphone_participant_imdn_state_get_state (const LinphoneParticipantImdnState *state);
 
/**
 * Get the timestamp at which a participant has reached the state described by a LinphoneParticipantImdnState.
 * @param[in] state A LinphoneParticipantImdnState object
 * @return The timestamp at which the participant has reached the state described in the LinphoneParticipantImdnState
 */
LINPHONE_PUBLIC time_t linphone_participant_imdn_state_get_state_change_time (const LinphoneParticipantImdnState *state);
 
/**
 * @}
 */
 
#ifdef __cplusplus
    }
#endif // ifdef __cplusplus
 
#endif // ifndef _L_C_PARTICIPANT_IMDN_STATE_H_