aboutsummaryrefslogtreecommitdiffstats
path: root/libwombat/wombat-client.h
blob: afec05db39c2c4f19eb231ed8a6b31c99f4ed7a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* Wombat client library
 *
 * Copyright (C) 2001 Ximian, Inc.
 *
 * Author: Rodrigo Moya <rodrigo@ximian.com>
 *
 * 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
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef WOMBAT_CLIENT_H
#define WOMBAT_CLIENT_H

#include <libgnome/gnome-defs.h>
#include <bonobo/bonobo-xobject.h>
#include "wombat.h"

BEGIN_GNOME_DECLS

#define WOMBAT_TYPE_CLIENT            (wombat_client_get_type())
#define WOMBAT_CLIENT(obj)            GTK_CHECK_CAST(obj, WOMBAT_TYPE_CLIENT, WombatClient)
#define WOMBAT_CLIENT_CLASS(klass)    GTK_CHECK_CLASS_CAST(klass, WOMBAT_TYPE_CLIENT, WombatClientClass)
#define WOMBAT_IS_CLIENT(obj)         GTK_CHECK_TYPE(obj, WOMBAT_TYPE_CLIENT)
#define WOMBAT_IS_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), WOMBAT_TYPE_CLIENT))

typedef struct _WombatClient        WombatClient;
typedef struct _WombatClientClass   WombatClientClass;
typedef struct _WombatClientPrivate WombatClientPrivate;

struct _WombatClient {
    BonoboXObject        object;
    WombatClientPrivate *priv;
};

struct _WombatClientClass {
    BonoboXObjectClass parent_class;

    POA_GNOME_Evolution_WombatClient__epv epv;
};

typedef gchar * (* WombatClientGetPasswordFn) (WombatClient *client,
                           const gchar *prompt,
                           const gchar *key,
                           gpointer user_data);
typedef void    (* WombatClientForgetPasswordFn) (WombatClient *client,
                          const gchar *key,
                          gpointer user_data);

GtkType       wombat_client_get_type  (void);

WombatClient *wombat_client_construct (WombatClient *client,
                       WombatClientGetPasswordFn get_password_fn,
                       WombatClientForgetPasswordFn forget_password_fn,
                       gpointer fn_data);
WombatClient *wombat_client_new       (WombatClientGetPasswordFn get_password_fn,
                       WombatClientForgetPasswordFn forget_password_fn,
                       gpointer fn_data);


END_GNOME_DECLS

#endif
PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * Update to 1.8.2.adamw2003-09-253-20/+20 * Udpate to 1.8.1.adamw2003-06-082-2/+2 * Update to 1.8.0.marcus2003-05-133-15/+26 * Convert to new GNOME infrastructure.marcus2003-04-221-5/+1 * Remove USE_GNOMENG.marcus2003-04-201-1/+0 * Clear moonlight beckons.ade2003-03-072-1/+1 * Update to GNOME 2.2.marcus2003-02-084-14/+5 * Update to 1.6.0.marcus2003-01-205-33/+14 * Update to 1.5.0.marcus2002-10-283-5/+5 * Update to 1.4.0.marcus2002-10-063-23/+28 * GNOME has just changed the layout of their FTP site. This resulted inmarcus2002-09-211-1/+1 * Fix build on -stable.marcus2002-09-121-0/+10 * Add patch missed in previous commit.sobomax2002-09-111-0/+16