blob: a2af8d6c0cc8a2082e04ce8d6738f0fcae313f45 (
plain)
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
|
#ifndef TURNS_PARTICIPANT_H
#define TURNS_PARTICIPANT_H
#include "turns-disposition.h"
#include <glib-object.h>
#include <glib.h>
#include <glibconfig.h>
G_BEGIN_DECLS
#define TURNS_TYPE_PARTICIPANT turns_participant_get_type()
G_DECLARE_FINAL_TYPE(TurnsParticipant, turns_participant, TURNS, PARTICIPANT, GObject)
/**
* @brief Construct a new Participant.
*
* This functions constructs a default initialized instance, meaning:
* - @p name is the empty string
* - @p priority is 0.0f
* - @p disposition is Disposition.Neutral.
*/
TurnsParticipant * turns_participant_new() G_GNUC_WARN_UNUSED_RESULT;
/**
* @brief Construct a new Participant with the given values.
*
* @param name The name of the new instance. The value *must not* be NULL.
* @param priority The priority of the new instance.
* @param disposition The disposition of the new instance.
*/
TurnsParticipant * turns_participant_new_with(gchar const * name, gfloat priority, TurnsDisposition disposition) G_GNUC_WARN_UNUSED_RESULT;
/**
* @brief Get the disposition of a participant.
*
* @param self A Participant instance. The value *must not* be NULL.
* @return The disposition of the instance.
*/
TurnsDisposition turns_participant_get_disposition(TurnsParticipant const * self);
/**
* @brief Get the name of a participant.
*
* @param self A Participant instance. The value *must not* be NULL.
* @return The name of the instance. The data is owned by the instance.
*/
gchar const * turns_participant_get_name(TurnsParticipant const * self);
/**
* @brief Get the priority of a participant.
*
* @param self A Participant instance. The value *must not* be NULL.
* @return The priority of the instance.
*/
gfloat turns_participant_get_priority(TurnsParticipant const * self);
/**
* @brief Set the disposition of a participant.
*
* @param self A Participant instance. The value *must not* be NULL.
* @param value The new disposition.
*/
void turns_participant_set_disposition(TurnsParticipant * self, TurnsDisposition value);
/**
* @brief Set the name of a participant.
*
* @param self A Participant instance. The value *must not* be NULL.
* @param value The new name. The data is owned by the caller of the method.
*/
void turns_participant_set_name(TurnsParticipant * self, gchar const * value);
/**
* @brief Set the priority of a participant.
*
* @param self A Participant instance. The value *must not* be NULL.
* @param value The new priority.
*/
void turns_participant_set_priority(TurnsParticipant * self, gfloat value);
G_END_DECLS
#endif
|