<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="libedata-cal-ECalBackendFactory">
<refmeta>
<refentrytitle role="top_of_page">ECalBackendFactory</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBEDATA-CAL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>ECalBackendFactory</refname>
<refpurpose>Factory for creating backends.</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>



            <link linkend="ECalBackendFactoryPrivate">ECalBackendFactoryPrivate</link>;
<link linkend="icalcomponent-kind">icalcomponent_kind</link> <link linkend="e-cal-backend-factory-get-kind">e_cal_backend_factory_get_kind</link>
                                            (<link linkend="ECalBackendFactory">ECalBackendFactory</link> *factory);
const <link linkend="char">char</link>* <link linkend="e-cal-backend-factory-get-protocol">e_cal_backend_factory_get_protocol</link>
                                            (<link linkend="ECalBackendFactory">ECalBackendFactory</link> *factory);
<link linkend="ECalBackend">ECalBackend</link>* <link linkend="e-cal-backend-factory-new-backend">e_cal_backend_factory_new_backend</link>
                                            (<link linkend="ECalBackendFactory">ECalBackendFactory</link> *factory,
                                             <link linkend="ESource">ESource</link> *source);

</synopsis>
</refsynopsisdiv>









<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="ECalBackendFactoryPrivate" role="struct"/>ECalBackendFactoryPrivate</title>
<indexterm><primary>ECalBackendFactoryPrivate</primary></indexterm><programlisting>typedef struct _ECalBackendFactoryPrivate ECalBackendFactoryPrivate;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="e-cal-backend-factory-get-kind" role="function"/>e_cal_backend_factory_get_kind ()</title>
<indexterm><primary>e_cal_backend_factory_get_kind</primary></indexterm><programlisting><link linkend="icalcomponent-kind">icalcomponent_kind</link> e_cal_backend_factory_get_kind
                                            (<link linkend="ECalBackendFactory">ECalBackendFactory</link> *factory);</programlisting>
<para>
Gets the component type of the factory.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>factory</parameter>&nbsp;:</term>
<listitem><simpara> An <link linkend="ECalBackendFactory"><type>ECalBackendFactory</type></link> object.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The kind of factory.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-cal-backend-factory-get-protocol" role="function"/>e_cal_backend_factory_get_protocol ()</title>
<indexterm><primary>e_cal_backend_factory_get_protocol</primary></indexterm><programlisting>const <link linkend="char">char</link>* e_cal_backend_factory_get_protocol
                                            (<link linkend="ECalBackendFactory">ECalBackendFactory</link> *factory);</programlisting>
<para>
Gets the protocol used by the factory.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>factory</parameter>&nbsp;:</term>
<listitem><simpara> An <link linkend="ECalBackendFactory"><type>ECalBackendFactory</type></link> object.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The protocol.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-cal-backend-factory-new-backend" role="function"/>e_cal_backend_factory_new_backend ()</title>
<indexterm><primary>e_cal_backend_factory_new_backend</primary></indexterm><programlisting><link linkend="ECalBackend">ECalBackend</link>* e_cal_backend_factory_new_backend
                                            (<link linkend="ECalBackendFactory">ECalBackendFactory</link> *factory,
                                             <link linkend="ESource">ESource</link> *source);</programlisting>
<para>
Creates a new backend for the given <parameter>source</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>factory</parameter>&nbsp;:</term>
<listitem><simpara> An <link linkend="ECalBackendFactory"><type>ECalBackendFactory</type></link> object.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>source</parameter>&nbsp;:</term>
<listitem><simpara> An <link linkend="ESource"><type>ESource</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The newly created backend, or NULL if there was an error.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
