[Evolution-hackers] Problems with camel

Not Zed notzed@ximian.com
Wed, 02 Mar 2005 09:38:19 +0800


--=-gscvcWwdh2VzT9hup+Es
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

On Tue, 2005-03-01 at 14:32 +0100, Søren Hansen wrote:

> tir, 01 03 2005 kl. 08:49 +0800, skrev Not Zed:
> > And that means actually subclassing it, you can't just create it and
> > override the virtual methods manually.
> 
> Ok, this might be more of a GObject question, but why? I realize now
> that I'm not *supposed* to instantiate it, but I don't understand that
> it fails.

It has nothing to do with GObject.  It is unclear what failed, I presume
it just crashed because you didn't build a concrete class.

Your iniialisation code is incorrect too, camel_type_init() isn't
required.

> How could I have found out myself that CamelSession is an abstract
> class?

notzed@lostzed:~/gnome2/head/evolution-data-server> head -2 camel/camel-session.h

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*/
/* camel-session.h : Abstract class for an email session */

(probably one of the few files which has an accurate description)

Well, you must also remember camel is just an internal library, it has
incomplete documentation for external use, and neither is the api
guaranteed to be stable yet.


--=-gscvcWwdh2VzT9hup+Es
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.5.5">
</HEAD>
<BODY>
On Tue, 2005-03-01 at 14:32 +0100, S&#248;ren Hansen wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">tir, 01 03 2005 kl. 08:49 +0800, skrev Not Zed:</FONT>
<FONT COLOR="#000000">&gt; And that means actually subclassing it, you can't just create it and</FONT>
<FONT COLOR="#000000">&gt; override the virtual methods manually.</FONT>

<FONT COLOR="#000000">Ok, this might be more of a GObject question, but why? I realize now</FONT>
<FONT COLOR="#000000">that I'm not *supposed* to instantiate it, but I don't understand that</FONT>
<FONT COLOR="#000000">it fails.</FONT>
</PRE>
</BLOCKQUOTE>
It has nothing to do with GObject.&nbsp; It is unclear what failed, I presume it just crashed because you didn't build a concrete class.<BR>
<BR>
Your iniialisation code is incorrect too, camel_type_init() isn't required.
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">How could I have found out myself that CamelSession is an abstract</FONT>
<FONT COLOR="#000000">class?</FONT>
</PRE>
</BLOCKQUOTE>
<PRE>
notzed@lostzed:~/gnome2/head/evolution-data-server&gt; <TT>head -2 camel/camel-session.h</TT>
</PRE>
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */<BR>
/* camel-session.h : <B>Abstract class for an email session</B> */<BR>
<BR>
(probably one of the few files which has an accurate description)<BR>
<BR>
Well, you must also remember camel is just an internal library, it has incomplete documentation for external use, and neither is the api guaranteed to be stable yet.<BR>
<BR>
</BODY>
</HTML>

--=-gscvcWwdh2VzT9hup+Es--