summaryrefslogtreecommitdiff
path: root/src/gs-lock-plug.h.orig
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-lock-plug.h.orig')
-rw-r--r--src/gs-lock-plug.h.orig82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/gs-lock-plug.h.orig b/src/gs-lock-plug.h.orig
new file mode 100644
index 0000000..cc71f21
--- /dev/null
+++ b/src/gs-lock-plug.h.orig
@@ -0,0 +1,82 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2004-2005 William Jon McCann <[email protected]>
+ *
+ * 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 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.
+ *
+ * Authors: William Jon McCann <[email protected]>
+ *
+ */
+
+#ifndef __GS_LOCK_PLUG_H
+#define __GS_LOCK_PLUG_H
+
+G_BEGIN_DECLS
+
+typedef enum
+{
+ GS_LOCK_PLUG_RESPONSE_NONE = -1,
+ GS_LOCK_PLUG_RESPONSE_OK = -2,
+ GS_LOCK_PLUG_RESPONSE_CANCEL = -3
+} GSPlugResponseType;
+
+#define GS_TYPE_LOCK_PLUG (gs_lock_plug_get_type ())
+#define GS_LOCK_PLUG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GS_TYPE_LOCK_PLUG, GSLockPlug))
+#define GS_LOCK_PLUG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GS_TYPE_LOCK_PLUG, GSLockPlugClass))
+#define GS_IS_LOCK_PLUG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GS_TYPE_LOCK_PLUG))
+#define GS_IS_LOCK_PLUG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GS_TYPE_LOCK_PLUG))
+#define GS_LOCK_PLUG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GS_TYPE_LOCK_PLUG, GSLockPlugClass))
+
+typedef struct GSLockPlugPrivate GSLockPlugPrivate;
+
+typedef struct
+{
+ GtkPlug parent;
+
+ GSLockPlugPrivate *priv;
+} GSLockPlug;
+
+typedef struct
+{
+ GtkPlugClass parent_class;
+
+ void (* response) (GSLockPlug *plug, gint response_id);
+
+ /* Keybinding signals */
+ void (* close) (GSLockPlug *plug);
+
+} GSLockPlugClass;
+
+GType gs_lock_plug_get_type (void);
+GtkWidget * gs_lock_plug_new (void);
+
+int gs_lock_plug_run (GSLockPlug *plug);
+void gs_lock_plug_set_sensitive (GSLockPlug *plug,
+ gboolean sensitive);
+void gs_lock_plug_enable_prompt (GSLockPlug *plug,
+ const char *message,
+ gboolean visible);
+void gs_lock_plug_disable_prompt (GSLockPlug *plug);
+void gs_lock_plug_set_busy (GSLockPlug *plug);
+void gs_lock_plug_set_ready (GSLockPlug *plug);
+
+void gs_lock_plug_get_text (GSLockPlug *plug,
+ char **text);
+void gs_lock_plug_show_message (GSLockPlug *plug,
+ const char *message);
+
+G_END_DECLS
+
+#endif /* __GS_LOCK_PLUG_H */