Thread: mbarcode
View Single Post
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#321
No, there seems to be some problem with the way hildonmime works atm.

In the GTK+ version of mBarcode I called abook functions directly to add the vCard, but getting the abook header to work in a C++ program was throwing up errors.

I therefore decided to write the vCard to a vcf file and open it using the mime handlers (which works in the filemanager for example), however, if I try to call uri_open directly it just does nothing, and if I use the QDesktopServices:penURL() function then it just opens the vCard in the browser as text (even though the implementation and docs look as though it should open the file with the correct handler app).

Any help/ideas gratefully accepted.

P.S. As long as mbarcode is left open, the .vcf file will be left in ~/.mbarcode/temp/
 

The Following 2 Users Say Thank You to lardman For This Useful Post: