blob: 1bce14ddc62bbd1498243ce1e183593b8b82bc39 (
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
|
/* $Id$ */
/*-
*/
#ifndef __XFSM_CLIENT_H__
#define __XFSM_CLIENT_H__
#include <xfce4-session/xfsm-properties.h>
typedef struct _XfsmClient XfsmClient;
typedef enum
{
XFSM_CLIENT_IDLE,
XFSM_CLIENT_INTERACTING,
XFSM_CLIENT_SAVEDONE,
XFSM_CLIENT_SAVING,
XFSM_CLIENT_SAVINGLOCAL,
XFSM_CLIENT_WAITFORINTERACT,
XFSM_CLIENT_WAITFORPHASE2,
XFSM_CLIENT_DISCONNECTED,
} XfsmClientState;
struct _XfsmClient
{
XfsmClientState state;
const gchar *id;
XfsmProperties *properties;
SmsConn sms_conn;
guint save_timeout_id;
gchar **old_discard_command;
};
#define XFSM_CLIENT(c) ((XfsmClient *) (c))
XfsmClient *xfsm_client_new (SmsConn sms_conn);
void xfsm_client_free (XfsmClient *client);
void xfsm_client_set_initial_properties (XfsmClient *client,
XfsmProperties *properties);
void xfsm_client_remember_discard_command (XfsmClient *client);
void xfsm_client_maybe_run_old_discard_command (XfsmClient *client);
#endif /* !__XFSM_CLIENT_H__ */
|