Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtMobility Messaging Module
Qt 6.11 is out! See what's new in the release blog

QtMobility Messaging Module

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrBlueSky125
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thisisbhaskar
      wrote on last edited by
      #2

      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.
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved