cosmetix
[k8lowj.git] / src / security.h
blob7ca3ecdacd3c5a28d947abff7f5b707b705377ef
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
3 */
4 #ifndef __LOGJAM_SECURITY_H__
5 #define __LOGJAM_SECURITY_H__
7 #include <gtk/gtkoptionmenu.h>
9 #include "liblj/livejournal.h"
11 #include "account.h"
14 /* A SecMgr is a widget which manages a security setting.
15 * The LJSecurity object now lives in livejournal.[ch].
18 #define SECMGR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), secmgr_get_type(), SecMgr))
20 typedef struct _SecMgr SecMgr;
23 extern GType secmgr_get_type (void);
24 extern GtkWidget *secmgr_new (gboolean withcustom);
25 extern void secmgr_security_set (SecMgr *secmgr, const LJSecurity *security);
26 extern void secmgr_security_set_force (SecMgr *secmgr, const LJSecurity *security);
27 extern void secmgr_security_get (SecMgr *secmgr, LJSecurity *security);
28 extern void secmgr_set_account (SecMgr *sm, JamAccountLJ *account);
30 extern guint32 custom_security_dlg_run (GtkWindow *parent, guint32 mask, JamAccountLJ *acc);
33 #endif