It looks like TpSession have some bugs. TpSession can print some infomation but qt mobilty not emit out.
Code:
ModestEngine::ModestEngine Starting to initialize
ModestEngine::ModestEngine Connecting to Modest DBus Interface
ModestEngine::ModestEngine Connected to Modest DBus Interface
ModestEngine::ModestEngine Connecting to Qt Mobility Modest Plugin DBus Interface
ModestEngine::ModestEngine Connected to Qt Mobility Modest Plugin DBus Interface
ModestEngine::ModestEngine Initialized successfully
TpSessionAccount::onNewChannels
channelType: "org.freedesktop.Telepathy.Channel.Type.Text" requested : false targetId "18924704680"
TpSessionAccount::onNewChannels path= path "/org/freedesktop/Telepathy/Connection/ring/tel/ring/text29"
TpSessionChannel::TpSessionChannel path "/org/freedesktop/Telepathy/Connection/ring/tel/ring/text29"
TpSessionChannel::onChannelReady type= "org.freedesktop.Telepathy.Channel.Type.Text" path "/org/freedesktop/Telepathy/Connection/ring/tel/ring/text29" initiatorContact= "18924704680"
received "123"
TpSessionAccount::onMessageReceived "123"
TestProg::onMessageReceived "123" from "18924704680"