1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
4 * Copyright (C) 2001 JP Rosevear
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
24 #ifndef _E_PILOT_SETTINGS_H_
25 #define _E_PILOT_SETTINGS_H_
31 #include <libedataserver/e-source-list.h>
36 #define E_TYPE_PILOT_SETTINGS (e_pilot_settings_get_type ())
37 #define E_PILOT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_PILOT_SETTINGS, EPilotSettings))
38 #define E_PILOT_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_PILOT_SETTINGS, EPilotSettingsClass))
39 #define E_IS_PILOT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_PILOT_SETTINGS))
40 #define E_IS_PILOT_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_PILOT_SETTINGS))
43 typedef struct _EPilotSettings EPilotSettings;
44 typedef struct _EPilotSettingsPrivate EPilotSettingsPrivate;
45 typedef struct _EPilotSettingsClass EPilotSettingsClass;
47 #define E_PILOT_SETTINGS_TABLE_ROWS 3
48 #define E_PILOT_SETTINGS_TABLE_COLS 3
50 struct _EPilotSettings {
53 EPilotSettingsPrivate *priv;
56 struct _EPilotSettingsClass {
57 GtkTableClass parent_class;
61 GType e_pilot_settings_get_type (void);
62 GtkWidget *e_pilot_settings_new (ESourceList *source_list);
64 ESource *e_pilot_settings_get_source (EPilotSettings *ps);
65 void e_pilot_settings_set_source (EPilotSettings *ps, ESource *source);
67 gboolean e_pilot_settings_get_secret (EPilotSettings *ps);
68 void e_pilot_settings_set_secret (EPilotSettings *ps, gboolean secret);