21 #ifndef _MW_SRVC_CONF_H
22 #define _MW_SRVC_CONF_H
35 #define mwService_CONFERENCE 0x80000010
158 guint32 reason,
const char *text);
161 #define mwConference_reject(c,r,t) \
162 mwConference_destroy((c),(r),(t))
176 struct mwIdBlock *who,
const char *text);
191 gpointer data, GDestroyNotify
clear);
int mwConference_accept(struct mwConference *conf)
accept a conference invitation.
mwService_funcClear clear
The service's cleanup handler.
Definition: mw_service.h:195
Definition: mw_common.h:123
void(* on_typing)(struct mwConference *conf, struct mwLoginInfo *who, gboolean typing)
typing notification
Definition: mw_srvc_conf.h:97
struct mwServiceConference * mwServiceConference_new(struct mwSession *sess, struct mwConferenceHandler *handler)
Allocate a new conferencing service, attaching the given handler.
void mwConference_removeClientData(struct mwConference *conf)
remove associated client data if any, and call the cleanup function on the data as necessary ...
outgoing conference pending creation
Definition: mw_srvc_conf.h:40
void(* on_invited)(struct mwConference *conf, struct mwLoginInfo *inviter, const char *invite)
triggered when we receive a conference invitation.
Definition: mw_srvc_conf.h:71
struct mwServiceConference * mwConference_getService(struct mwConference *conf)
conference is closing due to error
Definition: mw_srvc_conf.h:44
void mwConference_setClientData(struct mwConference *conf, gpointer data, GDestroyNotify clear)
associate arbitrary client data and an optional cleanup function with a conference.
void(* conf_closed)(struct mwConference *, guint32 reason)
triggered when a conference is closed.
Definition: mw_srvc_conf.h:84
void(* on_peer_joined)(struct mwConference *, struct mwLoginInfo *)
triggered when someone joins the conference
Definition: mw_srvc_conf.h:87
new outgoing conference
Definition: mw_srvc_conf.h:39
const char * mwConference_getName(struct mwConference *conf)
conference is closing
Definition: mw_srvc_conf.h:43
Represents a Sametime client session.
Definition: mw_common.h:178
Common data types and functions for handling those types.
unable to determine conference state
Definition: mw_srvc_conf.h:45
int mwConference_sendText(struct mwConference *conf, const char *text)
send a text message over an open conference
Handler structure used to provide callbacks for an instance of the conferencing service.
Definition: mw_srvc_conf.h:61
Instance of the multi-user conference service.
void(* conf_opened)(struct mwConference *conf, GList *members)
triggered when we enter the conference.
Definition: mw_srvc_conf.h:80
struct mwConference * mwConference_new(struct mwServiceConference *srvc, const char *title)
Allocate a new conference, in state NEW with the given title.
void(* on_text)(struct mwConference *conf, struct mwLoginInfo *who, const char *what)
triggered when someone says something
Definition: mw_srvc_conf.h:93
const char * mwConference_getTitle(struct mwConference *conf)
GList * mwConference_getMembers(struct mwConference *conf)
a mwIdBlock list of the members of the conference.
A multi-user chat.
Definition: mw_srvc_conf.h:51
void(* on_peer_parted)(struct mwConference *, struct mwLoginInfo *)
triggered when someone leaves the conference
Definition: mw_srvc_conf.h:90
GList * mwServiceConference_getConferences(struct mwServiceConference *srvc)
a mwConference list of the conferences in this service.
struct mwConferenceHandler * mwServiceConference_getHandler(struct mwServiceConference *srvc)
int mwConference_sendTyping(struct mwConference *conf, gboolean typing)
send typing notification over an open conference
gpointer mwConference_getClientData(struct mwConference *conf)
reference associated client data
mwConferenceState
Definition: mw_srvc_conf.h:38
invited to incoming conference
Definition: mw_srvc_conf.h:41
int mwConference_destroy(struct mwConference *conf, guint32 reason, const char *text)
Leave and close an existing conference, or reject an invitation.
int mwConference_open(struct mwConference *conf)
Initiate a conference.
void(* clear)(struct mwServiceConference *srvc)
optional.
Definition: mw_srvc_conf.h:101
conference open and active
Definition: mw_srvc_conf.h:42
int mwConference_invite(struct mwConference *conf, struct mwIdBlock *who, const char *text)
invite another user to an ACTIVE conference