QtMobility Messaging Module



  • I tried to use the messaging module of mobility, but somehow the compiler for symbian^3 devices won't find the headers.
    On the simulator all works fine.

    my pro file contains:
    @# Allow network access on Symbian
    symbian:TARGET.CAPABILITY += NetworkServices
    WriteUserData
    ReadUserData
    WriteDeviceData
    ReadDeviceData
    LocalServices
    UserEnvironment

    CONFIG += mobility
    MOBILITY += contacts messaging@

    and i include:
    @#include <QtMessaging/qmessage.h>
    #include <QtMessaging/qmessageaddress.h>
    #include <QtMessaging/qmessagemanager.h>@

    which leads to a compiler error. What headers should i include?

    By the way:
    @#include <qtmessaging.h>@
    which is used by some examples doesn't work either, still "no such file or directory".

    Edit:

    Ok, sorry that was stupid, on symbian its only:
    @#include <qmessage.h>
    #include <qmessageaddress.h>
    #include <qmessagemanager.h>@

    But why the difference?



  • I think the difference is because ..

    1. In your Simulator, the below path is included for header file searching..
      "QtSDK\Simulator\QtMobility\mingw\include", so you need to do #include <QtMessaging/qmessage.h> to get to the header file. QtMessaging is a folder in "QtSDK\Simulator\QtMobility\mingw\include" which has all required header files.
    2. In Symbian, below path is included for searching header files. "QtSDK\Symbian\SDKs\Symbian3Qt473\epoc32\include\mw", which is flat and has all header files required.

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.