2012-10-21 15:02:20 -04:00
|
|
|
/*
|
2012-05-09 22:29:48 -04:00
|
|
|
* preferences.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 James Booth <boothj5@gmail.com>
|
2012-10-21 15:02:20 -04:00
|
|
|
*
|
2012-05-09 22:29:48 -04:00
|
|
|
* This file is part of Profanity.
|
|
|
|
*
|
|
|
|
* Profanity 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Profanity 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 Profanity. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PREFERENCES_H
|
|
|
|
#define PREFERENCES_H
|
|
|
|
|
2012-09-08 11:51:09 -04:00
|
|
|
#include "config.h"
|
|
|
|
|
2012-05-10 04:55:55 -04:00
|
|
|
#include <glib.h>
|
2012-09-08 11:51:09 -04:00
|
|
|
|
|
|
|
#ifdef HAVE_NCURSES_H
|
2012-08-25 20:50:50 -04:00
|
|
|
#include <ncurses.h>
|
2012-09-08 11:51:09 -04:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_NCURSES_NCURSES_H
|
|
|
|
#include <ncurses/ncurses.h>
|
|
|
|
#endif
|
2012-05-10 04:55:55 -04:00
|
|
|
|
2012-05-09 22:29:48 -04:00
|
|
|
void prefs_load(void);
|
2012-07-31 18:01:15 -04:00
|
|
|
void prefs_close(void);
|
2012-05-09 22:29:48 -04:00
|
|
|
|
2012-10-21 18:46:30 -04:00
|
|
|
char * prefs_find_login(char *prefix);
|
|
|
|
void prefs_reset_login_search(void);
|
2012-10-22 17:15:06 -04:00
|
|
|
char * prefs_autocomplete_boolean_choice(char *prefix);
|
|
|
|
void prefs_reset_boolean_choice(void);
|
2012-05-10 18:51:06 -04:00
|
|
|
|
2012-05-10 04:55:55 -04:00
|
|
|
gboolean prefs_get_beep(void);
|
|
|
|
void prefs_set_beep(gboolean value);
|
|
|
|
gboolean prefs_get_flash(void);
|
|
|
|
void prefs_set_flash(gboolean value);
|
2012-07-22 18:07:34 -04:00
|
|
|
gboolean prefs_get_chlog(void);
|
|
|
|
void prefs_set_chlog(gboolean value);
|
2012-10-14 13:26:08 -04:00
|
|
|
gboolean prefs_get_history(void);
|
|
|
|
void prefs_set_history(gboolean value);
|
2012-06-03 18:02:13 -04:00
|
|
|
gboolean prefs_get_showsplash(void);
|
|
|
|
void prefs_set_showsplash(gboolean value);
|
2012-10-23 20:35:36 -04:00
|
|
|
gboolean prefs_get_vercheck(void);
|
|
|
|
void prefs_set_vercheck(gboolean value);
|
2012-10-27 19:33:20 -04:00
|
|
|
gboolean prefs_get_intype(void);
|
|
|
|
void prefs_set_intype(gboolean value);
|
2012-10-31 17:41:00 -04:00
|
|
|
gboolean prefs_get_states(void);
|
|
|
|
void prefs_set_states(gboolean value);
|
2012-10-31 20:12:35 -04:00
|
|
|
gboolean prefs_get_outtype(void);
|
|
|
|
void prefs_set_outtype(gboolean value);
|
2012-05-10 04:55:55 -04:00
|
|
|
|
2012-10-27 17:05:08 -04:00
|
|
|
void prefs_set_notify_message(gboolean value);
|
|
|
|
gboolean prefs_get_notify_message(void);
|
|
|
|
void prefs_set_notify_typing(gboolean value);
|
|
|
|
gboolean prefs_get_notify_typing(void);
|
|
|
|
void prefs_set_notify_remind(gint period);
|
|
|
|
gint prefs_get_notify_remind(void);
|
|
|
|
|
2012-07-22 18:07:34 -04:00
|
|
|
void prefs_add_login(const char *jid);
|
|
|
|
|
2012-06-18 17:16:57 -04:00
|
|
|
NCURSES_COLOR_T prefs_get_bkgnd();
|
|
|
|
NCURSES_COLOR_T prefs_get_text();
|
|
|
|
NCURSES_COLOR_T prefs_get_online();
|
2012-08-18 19:58:08 -04:00
|
|
|
NCURSES_COLOR_T prefs_get_away();
|
|
|
|
NCURSES_COLOR_T prefs_get_chat();
|
|
|
|
NCURSES_COLOR_T prefs_get_dnd();
|
|
|
|
NCURSES_COLOR_T prefs_get_xa();
|
2012-06-18 18:23:06 -04:00
|
|
|
NCURSES_COLOR_T prefs_get_offline();
|
2012-06-18 17:16:57 -04:00
|
|
|
NCURSES_COLOR_T prefs_get_err();
|
|
|
|
NCURSES_COLOR_T prefs_get_inc();
|
|
|
|
NCURSES_COLOR_T prefs_get_bar();
|
2012-06-18 18:23:06 -04:00
|
|
|
NCURSES_COLOR_T prefs_get_bar_draw();
|
2012-06-18 18:38:34 -04:00
|
|
|
NCURSES_COLOR_T prefs_get_bar_text();
|
2012-06-18 17:16:57 -04:00
|
|
|
|
2012-05-09 22:29:48 -04:00
|
|
|
#endif
|