Intro
Downloads
Community
Development
News
TALK
Power Search
Today's Posts
Search
Register
Talk FAQ
Community
Forgot Password?
Active Topics
Camera phone competition March 2023 "Endless" (35)
to
General
by Maemish - 1 day, 21 hrs ago
TLS 1.2 for N9 is ready (28)
to
MeeGo / Harmattan
by smartblu9 - 1 day, 23 hrs ago
Maemo repository (3)
to
Community
by torsen - 2 days, 14 hrs ago
Error after installing Leste on sdcard (11)
to
Maemo 7 / Leste
by Maemish - 3 days, 12 hrs ago
Introducing ubiboot N9 (multiboot OS loader) (1,393)
to
Alternatives
by smatkovi - 4 days, 18 hrs ago
more...
maemo.org
>
Talk
>
OS / Platform
>
Development
> Start Default Application (QT4)
Community Links
Members List
Search Forums
Show Threads
Show Posts
Tag Search
Advanced Search
Find All Thanked Posts
Go to Page...
Thread Tools
oprocopio
2010-02-17 , 08:05
Posts: 61 | Thanked: 51 times | Joined on Feb 2010 @ Zurich
#
1
Hi there,
Is there a way to start the default application depending of the Mime-Type?
I would like to import a Vcard but with QDesktopService:
penUrl(file.vcf) the browser and not the addressbook starts up.
if I open the file with the filemanager then it starts correctly the addrebook.
Can I maybe use DBUS?
Thanks for any help
Orlando
Quote & Reply
|
oprocopio
View Public Profile
Send a private message to oprocopio
Find all posts by oprocopio
oprocopio
2010-02-17 , 11:09
Posts: 61 | Thanked: 51 times | Joined on Feb 2010 @ Zurich
#
2
I have found the solution with DBus
from terminal execute:
dbus-send --print-reply --type=method_call --dest=com.nokia.osso_addressbook /com/nokia/osso_addressbook com.nokia.osso_addressbook.mime_open string:'filename.vcf'
with QT:
QDBusInterface *ABook = new QDBusInterface("com.nokia.osso_addressbook", "/com/nokia/osso_addressbook", "com.nokia.osso_addressbook", dbus);
ABook->call("mime_open", file.fileName());
thanks
orlando
Quote & Reply
|
The Following 3 Users Say Thank You to oprocopio For This Useful Post:
krk969
,
pelago
,
tmsha
oprocopio
View Public Profile
Send a private message to oprocopio
Find all posts by oprocopio
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Talk
General
Brainstorm
Community
Off Topic
Software
Applications
Multimedia
Games
Themes
Design
OS / Platform
SailfishOS
NeoFremantle
MeeGo / Harmattan
Maemo 5 / Fremantle
Maemo 7 / Leste
OS2008 / Maemo 4 / Chinook - Diablo
OS2006 / Maemo 2 / Mistral - Scirocco - Gregale
Development
Alternatives
Android
FirefoxOS
Nemo Mobile
Tizen
Ubuntu
Devices
Sailfishes
Turing Phone
JollaC & Intex Aqua Fish
Jolla Tablet
Jolla1 & TOH
The Other Half
Neo900
Nokia N9 / N950
Nokia N900
Nokia N810
Nokia N800
Nokia 770
Accessories
Competitors
Buy & Sell
Old
News
Announcements
Troubleshooting
Upgrading
Newbie
Tablet 101
OS2007 / Maemo 3 / Bora
OS2005 / Maemo 1
All times are GMT. The time now is
08:21
.
-- talk.maemo.org
-- Classic Light
---- Classic Dark
-- Minimalist Light
---- Minimalist Dark
Contact Us
-
Home
-
Archive
-
Top
Is there a way to start the default application depending of the Mime-Type?
I would like to import a Vcard but with QDesktopService:
if I open the file with the filemanager then it starts correctly the addrebook.
Can I maybe use DBUS?
Thanks for any help
Orlando