2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4
<refentry id="EBookListener">
6
<refentrytitle role="top_of_page" id="EBookListener.top_of_page">EBookListener</refentrytitle>
7
<manvolnum>3</manvolnum>
13
<refname>EBookListener</refname>
14
<refpurpose>Listens for call responses and event notifications from EBook objects.</refpurpose>
17
<refsynopsisdiv id="EBookListener.synopsis" role="synopsis">
18
<title role="synopsis.title">Synopsis</title>
20
<synopsis> <link linkend="EBookListener-struct">EBookListener</link>;
21
<link linkend="EBookListenerResponse">EBookListenerResponse</link>;
22
enum <link linkend="EBookListenerOperation">EBookListenerOperation</link>;
23
<link linkend="EBookListener"><returnvalue>EBookListener</returnvalue></link> * <link linkend="e-book-listener-new">e_book_listener_new</link> (<parameter><type>void</type></parameter>);
24
<link linkend="void"><returnvalue>void</returnvalue></link> <link linkend="e-book-listener-stop">e_book_listener_stop</link> (<parameter><link linkend="EBookListener"><type>EBookListener</type></link> *listener</parameter>);
27
<refsect1 id="EBookListener.object-hierarchy" role="object_hierarchy">
28
<title role="object_hierarchy.title">Object Hierarchy</title>
30
<link linkend="GObject">GObject</link>
31
+----<link linkend="BonoboObject">BonoboObject</link>
35
<refsect1 id="EBookListener.signals" role="signal_proto">
36
<title role="signal_proto.title">Signals</title>
38
"<link linkend="EBookListener-response">response</link>" : Run Last
42
<refsect1 id="EBookListener.description" role="desc">
43
<title role="desc.title">Description</title>
45
Exposes the Evolution:BookListener interface. Contrast with EBookViewListener.
48
<refsect1 id="EBookListener.details" role="details">
49
<title role="details.title">Details</title>
50
<refsect2 id="EBookListener-struct" role="struct">
51
<title>EBookListener</title>
52
<indexterm zone="EBookListener-struct"><primary>EBookListener</primary></indexterm>
53
<programlisting>typedef struct _EBookListener EBookListener;</programlisting>
56
<refsect2 id="EBookListenerResponse" role="struct">
57
<title>EBookListenerResponse</title>
58
<indexterm zone="EBookListenerResponse"><primary>EBookListenerResponse</primary></indexterm>
59
<programlisting>typedef struct {
60
EBookListenerOperation op;
62
/* The tag that e_book_* assigned to the operation this is a
66
/* For most Response notifications */
69
/* For GetBookViewReponse */
70
GNOME_Evolution_Addressbook_BookView book_view;
72
/* For GetSupportedFields/GetSupportedAuthMethods */
75
/* For ProgressEvent */
79
/* For LinkStatusEvent */
82
/* For WritableStatusEvent */
85
/* For Card[Added|Removed|Modified]Event */
88
} EBookListenerResponse;
92
<refsect2 id="EBookListenerOperation" role="enum">
93
<title>enum EBookListenerOperation</title>
94
<indexterm zone="EBookListenerOperation"><primary>EBookListenerOperation</primary></indexterm>
95
<programlisting>typedef enum {
99
CreateContactResponse,
100
RemoveContactResponse,
101
ModifyContactResponse,
103
GetContactListResponse,
106
AuthenticationResponse,
107
GetSupportedFieldsResponse,
108
GetRequiredFieldsResponse,
109
GetSupportedAuthMethodsResponse,
116
} EBookListenerOperation;
120
<refsect2 id="e-book-listener-new" role="function">
121
<title>e_book_listener_new ()</title>
122
<indexterm zone="e-book-listener-new"><primary>e_book_listener_new</primary></indexterm>
123
<programlisting><link linkend="EBookListener"><returnvalue>EBookListener</returnvalue></link> * e_book_listener_new (<parameter><type>void</type></parameter>);</programlisting>
125
Creates and returns a new <link linkend="EBookListener"><type>EBookListener</type></link>.</para>
126
<variablelist role="params">
127
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="EBookListener"><type>EBookListener</type></link>
128
</simpara></listitem></varlistentry>
129
</variablelist></refsect2>
130
<refsect2 id="e-book-listener-stop" role="function">
131
<title>e_book_listener_stop ()</title>
132
<indexterm zone="e-book-listener-stop"><primary>e_book_listener_stop</primary></indexterm>
133
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link> e_book_listener_stop (<parameter><link linkend="EBookListener"><type>EBookListener</type></link> *listener</parameter>);</programlisting>
135
Stops <parameter>listener</parameter> from generating events.</para>
136
<variablelist role="params">
137
<varlistentry><term><parameter>listener</parameter> :</term>
138
<listitem><simpara>an <link linkend="EBookListener"><type>EBookListener</type></link>
139
</simpara></listitem></varlistentry>
140
</variablelist></refsect2>
143
<refsect1 id="EBookListener.signal-details" role="signals">
144
<title role="signals.title">Signal Details</title>
145
<refsect2 id="EBookListener-response" role="signal"><title>The <literal>"response"</literal> signal</title>
146
<indexterm zone="EBookListener-response"><primary>EBookListener::response</primary></indexterm>
147
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link> user_function (<link linkend="EBookListener"><type>EBookListener</type></link> *ebooklistener,
148
<link linkend="gpointer"><type>gpointer</type></link> arg1,
149
<link linkend="gpointer"><type>gpointer</type></link> user_data) : Run Last</programlisting>
151
</para><variablelist role="params">
152
<varlistentry><term><parameter>ebooklistener</parameter> :</term>
153
<listitem><simpara>the object which received the signal.
154
</simpara></listitem></varlistentry>
155
<varlistentry><term><parameter>arg1</parameter> :</term>
157
</simpara></listitem></varlistentry>
158
<varlistentry><term><parameter>user_data</parameter> :</term>
159
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
160
</variablelist></refsect2>