[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Trouble binding code with SIP
From: Gerard Vermeulen <gvermeul () grenoble ! cnrs ! fr>
Date: 2003-10-13 10:09:31
[Download RAW message or body]
On Mon, 13 Oct 2003 11:27:56 +0200
Aurélien Gâteau <aurelien@dental-on-line.fr> wrote:
> Hello list
>
> I'm experimenting trouble binding some code with SIP. The original C++ header
> code is composed of one namespace (DolSphinx) and a class
> (DolSphinxListener). Here are some interesting excerpts:
>
> --- dolsphinx.h ---
> class DolSphinxListener;
>
> namespace DolSphinx {
> enum State {Uninitialized, Initializing, Listening, Calibrating, Paused};
>
> /* Snipped some functions */
>
> DolSphinxListener* listener();
> void setListener(DolSphinxListener*);
>
> State state();
>
> State stringToState(const QString&);
> QString stateToString(State);
> }
> ---
I have encountered other problems with namespace. SIP is not as clever
as a C++ compiler in resolving namespace scopes. So for instance
void setListener(DolSphinxListener*);
has to be written as:
void setListener(DolSphinx::DolSphinxListener*);
Gerard
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic