1
I Use This!
Activity Not Available

News

Posted over 11 years ago by mandel
In the ubuntu download manager we are using the new connection style syntax so that if there are errors in the signal connections we will be notified at compile time. However, in recent versions of udm we have noticed that the udm tests that ensure that the qt signals are emitted correctly have started failing [...]
Posted over 11 years ago by mandel
This is a small tip for those thos want to use QTest and Google Mock. To ensure that the expectations are check at the end of the execution of the test function and that errors are correctly reported you have to check the expectaions manually and pass the results to a QVERIFY macro. The following [...]
Posted over 11 years ago by mandel
You might have had the following error in your dbus daemon at some point and said to yoursefl WTF??? process 1288: arguments to dbus_message_set_error_name() were incorrect, assertion "error_name == NULL || _dbus_check_is_valid_error_name ... [More] (error_name)" failed in file dbus-message.c line 2900. Well, you are not the only one and I might be able to point you to [...] [Less]
Posted almost 12 years ago by mandel
Ok, imaging that you are working with Qt 5 and using the new way to connect signals, lets for example say we are working with QNetworkReply and we want to have a slot for the QNetworkReply::error signals that takes a QNetworkReply::NetworkError, the way to do it is the following: 1 2 3 4   connect(_reply, [...]
Posted almost 12 years ago by mandel
I the last few months I have been working on the Ubuntu Download Manager, one of The Big Rocks of August. The u-d-m provide a dbus service that allows applications to request downloads to be performed, to such download requests it adds some nice features that a user on a mobile phone, and probably a [...]
Posted almost 12 years ago by mandel
I have not updating this page lately for a very simple reason: TO MUCH TO CODE. After a crazy amount of work to push the Ubuntu Download Manager to be the centralized daemon used to perform downloads in Ubuntu Touch I have some more time to write. In the following weeks I’m going to be [...]
Posted over 12 years ago by mandel
One of the funniest videos I have seen so far Tommy Sparks “She’s Got Me Dancing” from Eric Wareheim on Vimeo.
Posted over 12 years ago by mandel
When defining structure in Qt that you want to send via DBus you need to define the operator> to a QDBusArgument, but how do you test it? The problem is that the QDBusArument constructor creates a no writable argument so that you cannot do: 1 2 3 4 5 6 7 MyStructure structure = MyStructure("first [...]
Posted over 12 years ago by mandel
I have recently been doing some work with Qt and DBus and I got stuck a little on how to correctly send a {sv} over DBus. Either my google-fu is terrible or there are not many examples on how to do this, therefore here is a small static method that will return a {sv} that [...]
Posted over 12 years ago by mandel
When I started this blog I did not have the time to research for which host company I should used, I simply picked godaddy because I had a coupon from the long dead diggnation… One of the propositions for this year was to move away from godaddy for several reasons: It is expensive, specially for [...]