1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-service.h : Abstract class for an email service */
6 * Copyright (C) 1999 Bertrand Guiheneuf <Bertrand.Guiheneuf@inria.fr> .
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25 #ifndef CAMEL_SERVICE_H
26 #define CAMEL_SERVICE_H 1
32 #endif /* __cplusplus }*/
36 #define CAMEL_SERVICE_TYPE (camel_service_get_type ())
37 #define CAMEL_SERVICE(obj) (GTK_CHECK_CAST((obj), CAMEL_SERVICE_TYPE, CamelService))
38 #define CAMEL_SERVICE_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), CAMEL_SERVICE_TYPE, CamelServiceClass))
39 #define IS_CAMEL_SERVICE(o) (GTK_CHECK_TYPE((o), CAMEL_SERVICE_TYPE))
44 GtkObject parent_object;
53 GtkObjectClass parent_class;
55 void (*connect) (CamelService *service);
56 void (*connect_to_with_login_passwd) (CamelService *service, GString *host, GString *login, GString *passwd);
57 void (*connect_to_with_login_passwd_port) (CamelService *service, GString *host, GString *login, GString *passwd, guint port);
58 gboolean (*is_connected) (CamelService *service);
59 void (*set_connected) (CamelService *service, gboolean state);
68 void camel_service_connect(CamelService *service);
70 /* Standard Gtk function */
71 GtkType camel_service_get_type (void);
75 #endif /* __cplusplus */
77 #endif /* CAMEL_SERVICE_H */