1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 #ifndef __LOGJAM_CONF_H__
5 #define __LOGJAM_CONF_H__
7 #include "liblj/livejournal.h"
11 # include "jamview.h" /* need META_COUNT */
15 #include "checkfriends.h"
19 int x
, y
, width
, height
;
20 int panedpos
; /* optional; for windows with panes. */
24 /* this should match the geometry_names[] array in conf_xml.c */
43 gboolean useproxyauth
;
46 gboolean usespellcheck
;
48 gboolean revertusejournal
;
54 gboolean cffloatraise
;
55 gboolean cffloat_decorate
;
56 gboolean friends_hidestats
;
57 gboolean allowmultipleinstances
;
59 gboolean smartquotes_russian
;
60 gboolean showmeta
[JAM_VIEW_META_COUNT
];
78 /* configuration file */
82 Geometry geometries
[GEOM_COUNT
];
88 gchar
*spell_language
;
95 char *proxyuser
, *proxypass
;
97 LJSecurity defaultsecurity
;
102 /* run-time settings. */
109 gchar
*conf_dir
; /* may be null, which means <home>/.logjam/ */
111 gboolean cli
; /* true if there's no gui */
115 GtkTooltips
*tooltips
;
123 gint autosave
; /* timeout id */
131 extern Configuration conf
;
132 extern Application app
;
135 extern JamHost
*conf_host_by_name (Configuration
*c
, const char *hostname
);
137 extern int conf_verify_dir (void);
138 extern void conf_make_path (const char *file
, char *buf
, size_t bufsz
);
140 extern char *conf_make_account_path (JamAccount
*acc
, const char *path
);
142 extern void conf_verify_a_host_exists (void);
144 extern gboolean
conf_rename_host (JamHost
*host
, const char *newname
, GError
**err
);