From c646d52761bf59f014b9c385d15309880cc5309c Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 14 Feb 2011 21:00:53 +0100 Subject: New upstream version 2.91.6 --- src/ka-applet-priv.h | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) (limited to 'src/ka-applet-priv.h') diff --git a/src/ka-applet-priv.h b/src/ka-applet-priv.h index 7e240a7..a64848c 100644 --- a/src/ka-applet-priv.h +++ b/src/ka-applet-priv.h @@ -1,6 +1,6 @@ /* Krb5 Auth Applet -- Acquire and release kerberos tickets * - * (C) 2008,2010 Guido Guenther + * (C) 2008,2010,2011 Guido Guenther * * 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 @@ -33,34 +33,33 @@ #include "ka-pwdialog.h" G_BEGIN_DECLS - -#define KA_NAME _("Network Authentication") - +#define KA_NAME _("Kerberos Authentication") /* signals emitted by KaApplet */ -typedef enum { - KA_SIGNAL_ACQUIRED_TGT, /* New TGT acquired */ - KA_SIGNAL_RENEWED_TGT, /* TGT got renewed */ - KA_SIGNAL_EXPIRED_TGT, /* TGT expired or ticket cache got destroyed */ - KA_SIGNAL_COUNT + typedef enum { + KA_SIGNAL_ACQUIRED_TGT, /* New TGT acquired */ + KA_SIGNAL_RENEWED_TGT, /* TGT got renewed */ + KA_SIGNAL_EXPIRED_TGT, /* TGT expired or ticket cache got destroyed */ + KA_SIGNAL_COUNT } KaAppletSignalNumber; /* public functions */ -gboolean ka_applet_get_show_trayicon(const KaApplet* applet); -void ka_applet_set_tgt_renewable(KaApplet* applet, gboolean renewable); -gboolean ka_applet_get_tgt_renewable(const KaApplet* applet); -guint ka_applet_get_pw_prompt_secs(const KaApplet* applet); -KaPwDialog* ka_applet_get_pwdialog(const KaApplet* applet); -GConfClient* ka_applet_get_gconf_client(const KaApplet* applet); -void ka_applet_signal_emit(KaApplet* applet, KaAppletSignalNumber signum, - krb5_timestamp expiry); +gboolean ka_applet_get_show_trayicon (const KaApplet *self); +void ka_applet_set_tgt_renewable (KaApplet *self, gboolean renewable); +gboolean ka_applet_get_tgt_renewable (const KaApplet *self); +guint ka_applet_get_pw_prompt_secs (const KaApplet *self); +KaPwDialog *ka_applet_get_pwdialog (const KaApplet *self); +GConfClient *ka_applet_get_gconf_client (const KaApplet *self); +void ka_applet_signal_emit (KaApplet *self, KaAppletSignalNumber signum, + krb5_timestamp expiry); +void ka_applet_set_msg (KaApplet *self, const char *msg); /* create the applet */ -KaApplet* ka_applet_create(void); +KaApplet *ka_applet_create (void); + /* update tooltip and icon */ -int ka_applet_update_status(KaApplet* applet, krb5_timestamp expiry); +int ka_applet_update_status (KaApplet *self, krb5_timestamp expiry); G_END_DECLS - #ifdef ENABLE_DEBUG #define KA_DEBUG(fmt,...) \ g_printf ("DEBUG: %s: " fmt "\n", __func__, ##__VA_ARGS__) @@ -68,5 +67,4 @@ G_END_DECLS #define KA_DEBUG(fmt,...) \ do { } while (0) #endif /* !ENABLE_DEBUG */ - #endif -- cgit