<?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" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="EmpathyMessage">
<refmeta>
<refentrytitle role="top_of_page" id="EmpathyMessage.top_of_page">EmpathyMessage</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBEMPATHY Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>EmpathyMessage</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

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

<synopsis>
                    <link linkend="EmpathyMessage-struct">EmpathyMessage</link>;
<link linkend="EmpathyMessage">EmpathyMessage</link>*     <link linkend="empathy-message-new">empathy_message_new</link>                 (const <link linkend="gchar">gchar</link> *body);
<link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> <link linkend="empathy-message-get-tptype">empathy_message_get_tptype</link>     (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);
<link linkend="void">void</link>                <link linkend="empathy-message-set-tptype">empathy_message_set_tptype</link>          (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> type);
<link linkend="EmpathyContact">EmpathyContact</link>*     <link linkend="empathy-message-get-sender">empathy_message_get_sender</link>          (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);
<link linkend="void">void</link>                <link linkend="empathy-message-set-sender">empathy_message_set_sender</link>          (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="EmpathyContact">EmpathyContact</link> *contact);
<link linkend="EmpathyContact">EmpathyContact</link>*     <link linkend="empathy-message-get-receiver">empathy_message_get_receiver</link>        (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);
<link linkend="void">void</link>                <link linkend="empathy-message-set-receiver">empathy_message_set_receiver</link>        (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="EmpathyContact">EmpathyContact</link> *contact);
const <link linkend="gchar">gchar</link>*        <link linkend="empathy-message-get-body">empathy_message_get_body</link>            (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);
<link linkend="void">void</link>                <link linkend="empathy-message-set-body">empathy_message_set_body</link>            (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         const <link linkend="gchar">gchar</link> *body);
<link linkend="time-t">time_t</link>              <link linkend="empathy-message-get-timestamp">empathy_message_get_timestamp</link>       (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);
<link linkend="void">void</link>                <link linkend="empathy-message-set-timestamp">empathy_message_set_timestamp</link>       (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="time-t">time_t</link> timestamp);
<link linkend="GDate">GDate</link>*              <link linkend="empathy-message-get-date-and-time">empathy_message_get_date_and_time</link>   (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="time-t">time_t</link> *timestamp);
<link linkend="gboolean">gboolean</link>            <link linkend="empathy-message-should-highlight">empathy_message_should_highlight</link>    (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);
<link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> <link linkend="empathy-message-type-from-str">empathy_message_type_from_str</link>  (const <link linkend="gchar">gchar</link> *type_str);
const <link linkend="gchar">gchar</link>*        <link linkend="empathy-message-type-to-str">empathy_message_type_to_str</link>         (<link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> type);
</synopsis>
</refsynopsisdiv>

<refsect1 id="EmpathyMessage.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----EmpathyMessage
</synopsis>

</refsect1>





<refsect1 id="EmpathyMessage.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="EmpathyMessage--body">body</link>&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="EmpathyMessage--receiver">receiver</link>&quot;                 <link linkend="EmpathyContact">EmpathyContact</link>*       : Read / Write
  &quot;<link linkend="EmpathyMessage--sender">sender</link>&quot;                   <link linkend="EmpathyContact">EmpathyContact</link>*       : Read / Write
  &quot;<link linkend="EmpathyMessage--timestamp">timestamp</link>&quot;                <link linkend="glong">glong</link>                 : Read / Write
  &quot;<link linkend="EmpathyMessage--type">type</link>&quot;                     <link linkend="guint">guint</link>                 : Read / Write
</synopsis>
</refsect1>



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

</para>
</refsect1>

<refsect1 id="EmpathyMessage.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="EmpathyMessage-struct" role="struct">
<title>EmpathyMessage</title>
<indexterm zone="EmpathyMessage-struct"><primary>EmpathyMessage</primary></indexterm><programlisting>typedef struct _EmpathyMessage EmpathyMessage;</programlisting>
<para>

</para></refsect2>
<refsect2 id="empathy-message-new" role="function">
<title>empathy_message_new ()</title>
<indexterm zone="empathy-message-new"><primary>empathy_message_new</primary></indexterm><programlisting><link linkend="EmpathyMessage">EmpathyMessage</link>*     empathy_message_new                 (const <link linkend="gchar">gchar</link> *body);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>body</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-get-tptype" role="function">
<title>empathy_message_get_tptype ()</title>
<indexterm zone="empathy-message-get-tptype"><primary>empathy_message_get_tptype</primary></indexterm><programlisting><link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> empathy_message_get_tptype     (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-set-tptype" role="function">
<title>empathy_message_set_tptype ()</title>
<indexterm zone="empathy-message-set-tptype"><primary>empathy_message_set_tptype</primary></indexterm><programlisting><link linkend="void">void</link>                empathy_message_set_tptype          (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> type);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>type</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-get-sender" role="function">
<title>empathy_message_get_sender ()</title>
<indexterm zone="empathy-message-get-sender"><primary>empathy_message_get_sender</primary></indexterm><programlisting><link linkend="EmpathyContact">EmpathyContact</link>*     empathy_message_get_sender          (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-set-sender" role="function">
<title>empathy_message_set_sender ()</title>
<indexterm zone="empathy-message-set-sender"><primary>empathy_message_set_sender</primary></indexterm><programlisting><link linkend="void">void</link>                empathy_message_set_sender          (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="EmpathyContact">EmpathyContact</link> *contact);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>contact</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-get-receiver" role="function">
<title>empathy_message_get_receiver ()</title>
<indexterm zone="empathy-message-get-receiver"><primary>empathy_message_get_receiver</primary></indexterm><programlisting><link linkend="EmpathyContact">EmpathyContact</link>*     empathy_message_get_receiver        (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-set-receiver" role="function">
<title>empathy_message_set_receiver ()</title>
<indexterm zone="empathy-message-set-receiver"><primary>empathy_message_set_receiver</primary></indexterm><programlisting><link linkend="void">void</link>                empathy_message_set_receiver        (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="EmpathyContact">EmpathyContact</link> *contact);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>contact</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-get-body" role="function">
<title>empathy_message_get_body ()</title>
<indexterm zone="empathy-message-get-body"><primary>empathy_message_get_body</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link>*        empathy_message_get_body            (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-set-body" role="function">
<title>empathy_message_set_body ()</title>
<indexterm zone="empathy-message-set-body"><primary>empathy_message_set_body</primary></indexterm><programlisting><link linkend="void">void</link>                empathy_message_set_body            (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         const <link linkend="gchar">gchar</link> *body);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>body</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-get-timestamp" role="function">
<title>empathy_message_get_timestamp ()</title>
<indexterm zone="empathy-message-get-timestamp"><primary>empathy_message_get_timestamp</primary></indexterm><programlisting><link linkend="time-t">time_t</link>              empathy_message_get_timestamp       (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-set-timestamp" role="function">
<title>empathy_message_set_timestamp ()</title>
<indexterm zone="empathy-message-set-timestamp"><primary>empathy_message_set_timestamp</primary></indexterm><programlisting><link linkend="void">void</link>                empathy_message_set_timestamp       (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="time-t">time_t</link> timestamp);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>timestamp</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-get-date-and-time" role="function">
<title>empathy_message_get_date_and_time ()</title>
<indexterm zone="empathy-message-get-date-and-time"><primary>empathy_message_get_date_and_time</primary></indexterm><programlisting><link linkend="GDate">GDate</link>*              empathy_message_get_date_and_time   (<link linkend="EmpathyMessage">EmpathyMessage</link> *message,
                                                         <link linkend="time-t">time_t</link> *timestamp);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>timestamp</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-should-highlight" role="function">
<title>empathy_message_should_highlight ()</title>
<indexterm zone="empathy-message-should-highlight"><primary>empathy_message_should_highlight</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            empathy_message_should_highlight    (<link linkend="EmpathyMessage">EmpathyMessage</link> *message);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-type-from-str" role="function">
<title>empathy_message_type_from_str ()</title>
<indexterm zone="empathy-message-type-from-str"><primary>empathy_message_type_from_str</primary></indexterm><programlisting><link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> empathy_message_type_from_str  (const <link linkend="gchar">gchar</link> *type_str);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>type_str</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="empathy-message-type-to-str" role="function">
<title>empathy_message_type_to_str ()</title>
<indexterm zone="empathy-message-type-to-str"><primary>empathy_message_type_to_str</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link>*        empathy_message_type_to_str         (<link linkend="TpChannelTextMessageType">TpChannelTextMessageType</link> type);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="EmpathyMessage.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="EmpathyMessage--body"><title>The <literal>&quot;body&quot;</literal> property</title>
<indexterm zone="EmpathyMessage--body"><primary>EmpathyMessage:body</primary></indexterm><programlisting>  &quot;body&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>The content of the message.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="EmpathyMessage--receiver"><title>The <literal>&quot;receiver&quot;</literal> property</title>
<indexterm zone="EmpathyMessage--receiver"><primary>EmpathyMessage:receiver</primary></indexterm><programlisting>  &quot;receiver&quot;                 <link linkend="EmpathyContact">EmpathyContact</link>*       : Read / Write</programlisting>
<para>The receiver of the message.</para></refsect2>
<refsect2 id="EmpathyMessage--sender"><title>The <literal>&quot;sender&quot;</literal> property</title>
<indexterm zone="EmpathyMessage--sender"><primary>EmpathyMessage:sender</primary></indexterm><programlisting>  &quot;sender&quot;                   <link linkend="EmpathyContact">EmpathyContact</link>*       : Read / Write</programlisting>
<para>The sender of the message.</para></refsect2>
<refsect2 id="EmpathyMessage--timestamp"><title>The <literal>&quot;timestamp&quot;</literal> property</title>
<indexterm zone="EmpathyMessage--timestamp"><primary>EmpathyMessage:timestamp</primary></indexterm><programlisting>  &quot;timestamp&quot;                <link linkend="glong">glong</link>                 : Read / Write</programlisting>
<para>timestamp.</para><para>Allowed values: &gt;= -1</para>
<para>Default value: -1</para>
</refsect2>
<refsect2 id="EmpathyMessage--type"><title>The <literal>&quot;type&quot;</literal> property</title>
<indexterm zone="EmpathyMessage--type"><primary>EmpathyMessage:type</primary></indexterm><programlisting>  &quot;type&quot;                     <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>The type of message.</para><para>Allowed values: &lt;= 3</para>
<para>Default value: 0</para>
</refsect2>

</refsect1>




</refentry>
