1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* evolution-activity-client.h |
---|
3 | * |
---|
4 | * Copyright (C) 2001 Ximian, Inc. |
---|
5 | * |
---|
6 | * This program is free software; you can redistribute it and/or |
---|
7 | * modify it under the terms of version 2 of the GNU General Public |
---|
8 | * License as published by the Free Software Foundation. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public |
---|
16 | * License along with this program; if not, write to the |
---|
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | * Boston, MA 02111-1307, USA. |
---|
19 | * |
---|
20 | * Author: Ettore Perazzoli <ettore@ximian.com> |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef _EVOLUTION_ACTIVITY_CLIENT_H_ |
---|
24 | #define _EVOLUTION_ACTIVITY_CLIENT_H_ |
---|
25 | |
---|
26 | #include "evolution-shell-client.h" |
---|
27 | |
---|
28 | #include "Evolution.h" |
---|
29 | |
---|
30 | #include <gtk/gtkobject.h> |
---|
31 | #include <gdk-pixbuf/gdk-pixbuf.h> |
---|
32 | |
---|
33 | #ifdef __cplusplus |
---|
34 | extern "C" { |
---|
35 | #pragma } |
---|
36 | #endif /* __cplusplus */ |
---|
37 | |
---|
38 | #define EVOLUTION_TYPE_ACTIVITY_CLIENT (evolution_activity_client_get_type ()) |
---|
39 | #define EVOLUTION_ACTIVITY_CLIENT(obj) (GTK_CHECK_CAST ((obj), EVOLUTION_TYPE_ACTIVITY_CLIENT, EvolutionActivityClient)) |
---|
40 | #define EVOLUTION_ACTIVITY_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EVOLUTION_TYPE_ACTIVITY_CLIENT, EvolutionActivityClientClass)) |
---|
41 | #define EVOLUTION_IS_ACTIVITY_CLIENT(obj) (GTK_CHECK_TYPE ((obj), EVOLUTION_TYPE_ACTIVITY_CLIENT)) |
---|
42 | #define EVOLUTION_IS_ACTIVITY_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EVOLUTION_TYPE_ACTIVITY_CLIENT)) |
---|
43 | |
---|
44 | |
---|
45 | typedef struct _EvolutionActivityClient EvolutionActivityClient; |
---|
46 | typedef struct _EvolutionActivityClientPrivate EvolutionActivityClientPrivate; |
---|
47 | typedef struct _EvolutionActivityClientClass EvolutionActivityClientClass; |
---|
48 | |
---|
49 | struct _EvolutionActivityClient { |
---|
50 | GtkObject parent; |
---|
51 | |
---|
52 | EvolutionActivityClientPrivate *priv; |
---|
53 | }; |
---|
54 | |
---|
55 | struct _EvolutionActivityClientClass { |
---|
56 | GtkObjectClass parent_class; |
---|
57 | |
---|
58 | /* Signals. */ |
---|
59 | void (* show_details) (EvolutionActivityClient *activity_client); |
---|
60 | void (* cancel) (EvolutionActivityClient *activity_client); |
---|
61 | }; |
---|
62 | |
---|
63 | |
---|
64 | GtkType evolution_activity_client_get_type (void); |
---|
65 | gboolean evolution_activity_client_construct (EvolutionActivityClient *activity_client, |
---|
66 | EvolutionShellClient *shell_client, |
---|
67 | const char *component_id, |
---|
68 | GdkPixbuf **animated_icon, |
---|
69 | const char *information, |
---|
70 | gboolean cancellable, |
---|
71 | gboolean *suggest_display_return); |
---|
72 | EvolutionActivityClient *evolution_activity_client_new (EvolutionShellClient *shell_client, |
---|
73 | const char *component_id, |
---|
74 | GdkPixbuf **animated_icon, |
---|
75 | const char *information, |
---|
76 | gboolean cancellable, |
---|
77 | gboolean *suggest_display_return); |
---|
78 | |
---|
79 | gboolean evolution_activity_client_update (EvolutionActivityClient *activity_client, |
---|
80 | const char *information, |
---|
81 | double progress); |
---|
82 | |
---|
83 | GNOME_Evolution_Activity_DialogAction |
---|
84 | evolution_activity_client_request_dialog (EvolutionActivityClient *activity_client, |
---|
85 | GNOME_Evolution_Activity_DialogType dialog_type); |
---|
86 | |
---|
87 | #ifdef __cplusplus |
---|
88 | } |
---|
89 | #endif /* __cplusplus */ |
---|
90 | |
---|
91 | #endif /* _EVOLUTION_ACTIVITY_CLIENT_H_ */ |
---|