Open GoogleCodeExporter opened 8 years ago
Some code examples to look at for QtMobility code for messaging:
http://doc.qt.nokia.com/qtmobility-1.2/serviceactions.html
qt-mobility-opensource-src-1.2.0/demos/serviceactions
qt-mobility-opensource-src-1.2.0/demos/serviceactions-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release
qt-mobility-opensource-src-1.2.0/demos/serviceactions-build-harmattan-Harmattan_Platform_API__Qt_SDK__Release
qt-mobility-opensource-src-1.2.0/demos/serviceactions/attachmentlistwidget.cpp
qt-mobility-opensource-src-1.2.0/demos/serviceactions/attachmentlistwidget.h
qt-mobility-opensource-src-1.2.0/demos/serviceactions/main.cpp
qt-mobility-opensource-src-1.2.0/demos/serviceactions/mainwindow.cpp
qt-mobility-opensource-src-1.2.0/demos/serviceactions/mainwindow.h
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging
qt-mobility-opensource-src-1.2.0/demos/serviceactions/serviceactions.pro
qt-mobility-opensource-src-1.2.0/demos/serviceactions/serviceactions.pro.user
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan/README
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan/changelog
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan/compat
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan/control
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan/copyright
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan/manifest.aegis
qt-mobility-opensource-src-1.2.0/demos/serviceactions/qtc_packaging/debian_harmattan/rules
qt-mobility-opensource-src-1.2.0/doc/html/serviceactions-attachmentlistwidget-cpp.html
qt-mobility-opensource-src-1.2.0/doc/html/serviceactions-attachmentlistwidget-h.html
qt-mobility-opensource-src-1.2.0/doc/html/serviceactions-main-cpp.html
qt-mobility-opensource-src-1.2.0/doc/html/serviceactions-mainwindow-cpp.html
qt-mobility-opensource-src-1.2.0/doc/html/serviceactions-mainwindow-h.html
qt-mobility-opensource-src-1.2.0/doc/html/serviceactions-serviceactions-pro.html
qt-mobility-opensource-src-1.2.0/doc/html/serviceactions.html
qt-mobility-opensource-src-1.2.0/doc/src/examples/serviceactions.qdoc
http://doc.qt.nokia.com/qtmobility-1.2/keepintouch.html
qt-mobility-opensource-src-1.2.0/examples/keepintouch
qt-mobility-opensource-src-1.2.0/examples/keepintouch/addressfinder.cpp
qt-mobility-opensource-src-1.2.0/examples/keepintouch/addressfinder.h
qt-mobility-opensource-src-1.2.0/examples/keepintouch/keepintouch.pro
qt-mobility-opensource-src-1.2.0/examples/keepintouch/main.cpp
qt-mobility-opensource-src-1.2.0/doc/html/keepintouch-addressfinder-cpp.html
qt-mobility-opensource-src-1.2.0/doc/html/keepintouch-addressfinder-h.html
qt-mobility-opensource-src-1.2.0/doc/html/keepintouch-keepintouch-pro.html
qt-mobility-opensource-src-1.2.0/doc/html/keepintouch-main-cpp.html
qt-mobility-opensource-src-1.2.0/doc/html/keepintouch.html
qt-mobility-opensource-src-1.2.0/doc/html/images/keepintouch-example.png
qt-mobility-opensource-src-1.2.0/doc/src/examples/keepintouch.qdoc
qt-mobility-opensource-src-1.2.0/doc/src/images/keepintouch-example.png
Original comment by NielsMa...@gmail.com
on 11 Nov 2011 at 4:58
See also http://www.developer.nokia.com/Community/Wiki/QML_SMShelper_Plugin
Original comment by NielsMa...@gmail.com
on 29 Nov 2011 at 6:42
Original comment by NielsMa...@gmail.com
on 16 Dec 2011 at 3:43
Use dbus to send message w/ attachments...
For example code see "Using D-Bus to launch applications" in
http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_De
veloping_for_Harmattan_Launching_another_application_from_your_application.html
This appears to be the call that needs to be accessed, not sure how the
attachment could be stored in "list of uri string" unless that means a direct
link to the audio file??
http://gitorious.org/modest/modest/blobs/master/libmodest-dbus-client/src/libmod
est-dbus-client.c#line102
/**
* libmodest_dbus_client_compose_mail:
* @osso_context: a valid #osso_context_t object.
* @to: The Recipients (From: line)
* @cc: Recipients for carbon copies
* @bcc: Recipients for blind carbon copies
* @subject: Subject line
* @body: The actual body of the mail to compose.
* @attachments: Additional list of attachments. A list of URI strings.
*
* This function will try to do a remote procedure call (rpc)
* into modest (or start it if necessary) and open a composer
* window with the supplied parameters prefilled.
*
* Return value: Whether or not the rpc call to modest
* was successfull
**/
gboolean
libmodest_dbus_client_compose_mail (osso_context_t *osso_context, const gchar
*to, const gchar *cc,
const gchar *bcc, const gchar* subject, const gchar* body, GSList *attachments)
{
osso_rpc_t retval = { 0 };
gchar *attachments_str = get_attachments_string(attachments);
const osso_return_t ret = osso_rpc_run_with_defaults(osso_context,
MODEST_DBUS_NAME,
MODEST_DBUS_METHOD_COMPOSE_MAIL, &retval,
DBUS_TYPE_STRING, to,
DBUS_TYPE_STRING, cc,
DBUS_TYPE_STRING, bcc,
DBUS_TYPE_STRING, subject,
DBUS_TYPE_STRING, body,
DBUS_TYPE_STRING, attachments_str,
DBUS_TYPE_INVALID);
g_free (attachments_str);
if (ret != OSSO_OK) {
printf("debug: %s: osso_rpc_run() failed.\n", __FUNCTION__);
return FALSE;
} else {
printf("debug: %s: osso_rpc_run() succeeded.\n", __FUNCTION__);
}
osso_rpc_free_val(&retval);
return TRUE;
}
Original comment by NielsMa...@gmail.com
on 5 Feb 2012 at 11:05
regarding above, http://gag.org.ua/category/calendarfeed/ has some good hints
on using dbus on Harmattan.
Original comment by NielsMa...@gmail.com
on 5 Feb 2012 at 11:30
Original issue reported on code.google.com by
NielsMa...@gmail.com
on 11 Nov 2011 at 3:49