1
/* gsm-client-row.h - a gsm-client object for entry into a clist
3
Copyright 1999 Free Software Foundation, Inc.
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2, or (at your option)
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
Authors: Felix Bellaby */
22
#ifndef GSM_CLIENT_ROW_H
23
#define GSM_CLIENT_ROW_H
25
#include "gsm-protocol.h"
26
#include "gsm-client-list.h"
28
#define GSM_TYPE_CLIENT_ROW (gsm_client_row_get_type ())
29
#define GSM_CLIENT_ROW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSM_TYPE_CLIENT_ROW, GsmClientRow))
30
#define GSM_CLIENT_ROW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GSM_TYPE_CLIENT_ROW, GsmClientRowClass))
31
#define GSM_IS_CLIENT_ROW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSM_TYPE_CLIENT_ROW))
32
#define GSM_IS_CLIENT_ROW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GSM_TYPE_CLIENT_ROW))
33
#define GSM_CLIENT_ROW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSM_TYPE_CLIENT_ROW, GsmClientRowClass))
37
GSM_CLIENT_ROW_REMOVE,
43
GSM_CLIENT_ROW_ADDED, /* iter is valid */
44
GSM_CLIENT_ROW_REMOVED
50
GsmClientList *client_list;
53
GsmClientRowState state;
55
/* used in implementing reversion */
56
GsmClientRowChange change;
62
GsmClientClass parent_class;
65
GType gsm_client_row_get_type (void);
67
/* creates a client row to appear in the GsmClientList */
68
GsmClientRow *gsm_client_row_new (GsmClientList* client_list);
70
/* removes the row from its GsmClientList */
71
void gsm_client_row_remove (GsmClientRow* client_row);
73
/* adds the row into its GsmClientList */
74
void gsm_client_row_add (GsmClientRow* client_row);
76
/* changes the restart style for the row */
77
void gsm_client_row_set_style (GsmClientRow *client_row, GsmStyle style);
79
/* changes the start order for the row */
80
void gsm_client_row_set_order (GsmClientRow *client_row, guint order);
82
#endif /* GSM_CLIENT_ROW_H */