diff options
author | Perberos <[email protected]> | 2011-12-01 23:03:59 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-12-01 23:03:59 -0300 |
commit | 52d7aadcc57f3fa09653d315fc1a7fef52ae6bca (patch) | |
tree | 93f7e38ac79b2592d48d22e6912aeddfd227ffab /mate-session/gsm-xsmp-client.h | |
download | mate-session-manager-52d7aadcc57f3fa09653d315fc1a7fef52ae6bca.tar.bz2 mate-session-manager-52d7aadcc57f3fa09653d315fc1a7fef52ae6bca.tar.xz |
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'mate-session/gsm-xsmp-client.h')
-rw-r--r-- | mate-session/gsm-xsmp-client.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/mate-session/gsm-xsmp-client.h b/mate-session/gsm-xsmp-client.h new file mode 100644 index 0000000..20ef3df --- /dev/null +++ b/mate-session/gsm-xsmp-client.h @@ -0,0 +1,93 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * + * Copyright (C) 2007 Novell, Inc. + * + * 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 2 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +#ifndef __GSM_XSMP_CLIENT_H__ +#define __GSM_XSMP_CLIENT_H__ + +#include "gsm-client.h" + +#include <X11/SM/SMlib.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define GSM_TYPE_XSMP_CLIENT (gsm_xsmp_client_get_type ()) +#define GSM_XSMP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSM_TYPE_XSMP_CLIENT, GsmXSMPClient)) +#define GSM_XSMP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSM_TYPE_XSMP_CLIENT, GsmXSMPClientClass)) +#define GSM_IS_XSMP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSM_TYPE_XSMP_CLIENT)) +#define GSM_IS_XSMP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GSM_TYPE_XSMP_CLIENT)) +#define GSM_XSMP_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSM_TYPE_XSMP_CLIENT, GsmXSMPClientClass)) + +typedef struct _GsmXSMPClient GsmXSMPClient; +typedef struct _GsmXSMPClientClass GsmXSMPClientClass; + +typedef struct GsmXSMPClientPrivate GsmXSMPClientPrivate; + +struct _GsmXSMPClient +{ + GsmClient parent; + GsmXSMPClientPrivate *priv; +}; + +struct _GsmXSMPClientClass +{ + GsmClientClass parent_class; + + /* signals */ + gboolean (*register_request) (GsmXSMPClient *client, + char **client_id); + gboolean (*logout_request) (GsmXSMPClient *client, + gboolean prompt); + + + void (*saved_state) (GsmXSMPClient *client); + + void (*request_phase2) (GsmXSMPClient *client); + + void (*request_interaction) (GsmXSMPClient *client); + void (*interaction_done) (GsmXSMPClient *client, + gboolean cancel_shutdown); + + void (*save_yourself_done) (GsmXSMPClient *client); + +}; + +GType gsm_xsmp_client_get_type (void) G_GNUC_CONST; + +GsmClient *gsm_xsmp_client_new (IceConn ice_conn); + +void gsm_xsmp_client_connect (GsmXSMPClient *client, + SmsConn conn, + unsigned long *mask_ret, + SmsCallbacks *callbacks_ret); + +void gsm_xsmp_client_save_state (GsmXSMPClient *client); +void gsm_xsmp_client_save_yourself (GsmXSMPClient *client, + gboolean save_state); +void gsm_xsmp_client_save_yourself_phase2 (GsmXSMPClient *client); +void gsm_xsmp_client_interact (GsmXSMPClient *client); +void gsm_xsmp_client_shutdown_cancelled (GsmXSMPClient *client); + +#ifdef __cplusplus +} +#endif + +#endif /* __GSM_XSMP_CLIENT_H__ */ |