Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on BlackBerry and QNX
  4. Sms messages (in-out). What functions do I need?

Sms messages (in-out). What functions do I need?

Scheduled Pinned Locked Moved Qt on BlackBerry and QNX
1 Posts 1 Posters 1.8k Views
  • 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.
  • N Offline
    N Offline
    nfrfab
    wrote on last edited by
    #1

    Hi, I have this problem:
    I need my app detects incoming sms, process the sms, and finally responds (automatically).

    I do not know what functions need (I do not understand the information in https://developer.blackberry.com/cascades/reference).
    To send sms:

    • use the class SmsTransport
      @
      ...
      m_smsTransport = new SmsTransport(this);
      connect(m_smsTransport, SIGNAL(messageReceived(unsigned int, const Message &)), SLOT(messageReceived(unsigned int, const Message &)));
      connect(m_smsTransport, SIGNAL(messageSendResultReceived(bb::pim::message::MessageKey)), SLOT(messageSendResultReceived(bb::pim::message::MessageKey)));
      m_smsTransport->registerPort(1);
      ...

    void MainWidget::messageReceived(unsigned int puerto, const Message & mensaje)
    {

    }

    void MainWidget::messageSendResultReceived(bb::pim::message::MessageKey messageid)
    {
    //check status

    }

    @
    when I need to send a sms I use
    @
    void MainWidget::enviarmensajesms(unsigned int puerto, const Message & mensaje)
    {
    m_smsTransport->send(puerto, mensaje);
    }
    @

    I have not a real device, I can not test the code. Need anything else? How register ports for incoming messages? Thanks for help.

    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