[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KFile plugin problem !!
From:       Michael Pyne <pynm0001 () comcast ! net>
Date:       2004-07-12 12:54:03
Message-ID: 200407120854.09253.pynm0001 () comcast ! net
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 12 July 2004 08:43, Mario wrote:
> Ok I have problems wiht my Kfile plugin for displaying Meta-Info for
> FreeBSD *.tbz packages, it behaves strange when I open a dir containing 2
> or more packages. I do a right click on packag1.tbz and view  the Meta-Info

>         connect( proc, SIGNAL(readyReadStdout()),
>                 this, SLOT(readfrom_pkginfo()) );
>       proc->start();

Your KFile plugin is probably beating the pkg_info command in execution time.  
You must find a way to wait until readyReadStdout() has been called before 
appending the info.  QThread might be helpful for that.

Just as an aside, you might want to do the information reading from within 
your plugin to avoid the dependency on pkg_info, that way all KDE systems can 
benefit from being able to read FreeBSD package meta-info. :-)

Regards,
 - Michael Pyne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA8onvqjQYp5Omm0oRAnlnAKCsmPPQTpW4q9lo6aYut4P8NCE+SgCglwIz
umdAXplrvFpEjBYh5IF6M2w=
=JQJM
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic