[Qt-interest] [QtDBUS] Getting properties
Thiago Macieira
thiago at kde.org
Tue Apr 12 17:29:22 CEST 2011
Em segunda-feira, 11 de abril de 2011, às 22:39:51, Georg Grabler escreveu:
> Hi Thiago,
>
> Sure I can, it is just a test application anyway :-). Attached my current
> test program. It has a few more functions, basically the function you want
> is void DBusUDisks::loadAvailableFileSystems() which gets called in the
> constructor...
$ tar -tzvf dbusudisks.tar.gz
drwxr-xr-x schurl/users 0 2011-04-11 22:34 dbusudisks/
-rwxr-xr-x schurl/users 573543 2011-04-11 19:45 dbusudisks/dbusudisks
-rw-r--r-- schurl/users 319 2011-04-11 08:06 dbusudisks/dbusudisks.pro
-rw-r--r-- schurl/users 12380 2011-04-11 22:37 dbusudisks/dbusudisks.pro.user
-rw-r--r-- schurl/users 8685 2011-04-11 18:26 dbusudisks/Makefile
-rw-r--r-- schurl/users 2993 2011-04-11 19:45 dbusudisks/dbusudisks.cpp
-rw-r--r-- schurl/users 622 2011-04-11 19:27 dbusudisks/dbusudisks.h
-rw-r--r-- schurl/users 178 2011-04-11 12:48 dbusudisks/main.cpp
-rw-r--r-- schurl/users 1867 2011-04-11 18:50 dbusudisks/dbusudisks.ui
Let me give you some hints when creating testcases:
1) don't distribute the binary.
2) don't distribute user-specific files. The one with a name ending in ".user"
is user-specific.
3) don't distribute generated files, like the Makefile
4) we're talking about D-Bus, so there's no need for a UI. Try to make minimal
testcases, so having a testcase without QApplication and with no UI is
preferable.
5) make it very clear where the problem is. I'm looking at dbusudisks.cpp and
it has 4 functions besides the constructor and destructor. Where should I be
looking at? What should be happening that isn't happening? A QtTest-based test
here would be a lot better.
Please find attached the one-file that I *really* wanted to receive. There's no
need for a header nor even for the .pro file. It's clear that I need
QT += testlib dbus
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 534 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110412/23b51f49/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110412/23b51f49/attachment-0001.bin
More information about the Qt-interest-old
mailing list