Re: [fpc-pascal] dbus in Pascal

2012-02-23 Thread michael . vancanneyt



On Thu, 23 Feb 2012, Felipe Monteiro de Carvalho wrote:


On Thu, Feb 23, 2012 at 8:42 AM, Michael Van Canneyt
mich...@freepascal.org wrote:

I have written dbus classes/components. I never committed them, but they
work, and if you want I can send them to you.
If you think they're good enough, we can include them in FPC.


Yes, I am very interrested in seeing this


Sent in a private mail.



How do you get messages with this library? You need to call something
periodically? I always thought that dbus needs integration with the
application loop.


It does. You can make do with the OnIdle event, but for true lazarus
integration one needs support for such things in TApplication.

It's time to revive the fpasync package by Sebastian Guenther.
At the time it was written, I didn't think much of it, but 
over time I've come to see that it is in fact very much needed.

I talked to Mattias once, but didn't get around to a working implementation
yet. (Item 548987 on my todo list)

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] dbus in Pascal

2012-02-23 Thread Jorge Aldo G. de F. Junior
i need dbus too...

i was going to do with plain tcp sockets, but dbus would be nice to
integrate

2012/2/23  michael.vancann...@wisa.be:


 On Thu, 23 Feb 2012, Felipe Monteiro de Carvalho wrote:

 On Thu, Feb 23, 2012 at 8:42 AM, Michael Van Canneyt
 mich...@freepascal.org wrote:

 I have written dbus classes/components. I never committed them, but they
 work, and if you want I can send them to you.
 If you think they're good enough, we can include them in FPC.


 Yes, I am very interrested in seeing this


 Sent in a private mail.



 How do you get messages with this library? You need to call something
 periodically? I always thought that dbus needs integration with the
 application loop.


 It does. You can make do with the OnIdle event, but for true lazarus
 integration one needs support for such things in TApplication.

 It's time to revive the fpasync package by Sebastian Guenther.
 At the time it was written, I didn't think much of it, but over time I've
 come to see that it is in fact very much needed.
 I talked to Mattias once, but didn't get around to a working implementation
 yet. (Item 548987 on my todo list)

 Michael.

 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] dbus in Pascal

2012-02-22 Thread Felipe Monteiro de Carvalho
Hello,

I haven't touched in dbus in ages, so I was wondering how people are
using it. Did anyone write a wrapper around libdbus for Lazarus or is
everyone using directly libdbus or something like dbus-glib? Do we
have bindings for dbus-glib already translated?

thanks,
-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] dbus in Pascal

2012-02-22 Thread Michael Van Canneyt



On Thu, 23 Feb 2012, Felipe Monteiro de Carvalho wrote:


Hello,

I haven't touched in dbus in ages, so I was wondering how people are
using it. Did anyone write a wrapper around libdbus for Lazarus or is
everyone using directly libdbus or something like dbus-glib? Do we
have bindings for dbus-glib already translated?


I have written dbus classes/components. 
I never committed them, but they work, and if you want I can send them to you.

If you think they're good enough, we can include them in FPC.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] dbus in Pascal

2012-02-22 Thread Felipe Monteiro de Carvalho
On Thu, Feb 23, 2012 at 8:42 AM, Michael Van Canneyt
mich...@freepascal.org wrote:
 I have written dbus classes/components. I never committed them, but they
 work, and if you want I can send them to you.
 If you think they're good enough, we can include them in FPC.

Yes, I am very interrested in seeing this

How do you get messages with this library? You need to call something
periodically? I always thought that dbus needs integration with the
application loop.

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal