libqapt signal for detecting updateCache() completion...

Jonathan Thomas echidnaman at gmail.com
Mon Jul 15 13:28:03 UTC 2013


Hi,

One thing I forgot to tell you on IRC is that after you have the
transaction object, you have to call transaction->run() before the
transaction actually starts.
This gives you a chance to set up localization and debconf settings for the
transaction before running it.

Jonathan


On Mon, Jul 15, 2013 at 8:55 AM, Michael Stemle <themanchicken at gmail.com>wrote:

> Hey Jon T, this is mostly for you:
>
> I am connecting to these signals:
>
>    -
>    - QApt::Transaction::errorOccurred(QApt::ErrorCode)
>    - QApt::Transaction::statusChanged(QApt::TransactionStatus)
>    - QApt::Transaction::progressChanged(int)
>
> It doesn't seem like I'm getting any of my slots called for any of these
> signals, and I'm wondering if it has to do with how fast the operation is
> happening. I've tried testing Transaction->status() == QApt::FinishedStatus
> immediately following my connects but it doesn't evaluate as true.
>
> I'm at a bit of a loss as to how to detect when that updateCache() call is
> finished.
>
> Here's the code: http://paste.ubuntu.com/5877335/
>
> Much thanks.
>
> --
> ~ Michael D. Stemle, Jr.
>
> --
> kubuntu-devel mailing list
> kubuntu-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20130715/c3b3a3a5/attachment.html>


More information about the kubuntu-devel mailing list