×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Can you test SMS message interception on emulator?

    I have this code and I would like to test SMS message interception using the emulator utility. I have this code running but the SMS messages aren't triggering my slot function for the signal.

    Is this possible to test on the emulator?

    class QtTest : public QMainWindow
    {
    Q_OBJECT
    public:
    QtTest(QWidget *parent = 0);
    ~QtTest();
    private slots:
    void messageAdded(const QtMobility::QMessageId&);
    private:
    Ui::QtTest ui;
    std::auto_ptr<QtMobility::QMessageManager> messageManager;
    };

    QtTest::QtTest(QWidget *parent) try
    : QMainWindow(parent),messageManager(new QMessageManager(this))
    {
    ui.setupUi(this);

    connect(messageManager.get(),
    SIGNAL(messageAdded(const QMessageId &, const QMessageManager::NotificationFilterIdSet&)),
    this,SLOT(messageAdded( const QMessageId &)));
    } catch(...) {

    }

    void
    QtTest::messageAdded( const QMessageId & id) { // private slot
    QMessageBox msgBox;
    msgBox.setText("New Message");
    msgBox.exec();
    }
    Last edited by jmclaurin11; 2010-04-27 at 22:31.

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Can you test SMS message interception on emulator?

    Most of Mobility API will work only on real device, messaging API is among one of them.

Similar Threads

  1. Replies: 4
    Last Post: 2007-11-01, 13:18
  2. Sending SMS to test Push with Emulator from Series 60 SDK 2.0
    By mkleijer in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-04-15, 14:26
  3. Replies: 1
    Last Post: 2001-12-06, 18:46
  4. Doubt in Nokia PC Connrctivity SDK 2.1 demo (Visual basic).
    By narumugai in forum General Messaging
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×