×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    10

    Question [SOLVED]How to Send an SMS in Meego?

    Good Day!

    Guy's am having problem sending SMS in Meego... the following error messages appears in the application output whenever I attempt to send an SMS, using QMessageService..

    I've also added a manifest.aegis file to my project. Is there any other way to send SMS in Meego? or would this error be fixed in the Qt version of meego for N9? or could you point me to a tutorial on how to use and integrate telepathy framework(to my understanding this is where the messaging framework of meego is based on)

    Thank you very much!

    Sorry if my question is really noob...

    Code:
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
    QMessageStore::QMessageStore 
    QMessageStore::QMessageStore exit 
    CommHistory::QueryRunner::QueryRunner(CommHistory::TrackerIO*, QObject*) 
    CommHistory::QueryRunner::QueryRunner(CommHistory::TrackerIO*, QObject*) 
    StorageEngine::StorageEngine(QObject*) begin 
    
    virtual void CommHistory::EventModelPrivate::clearEvents() 
    bool CommHistory::EventModelPrivate::executeQuery(CommHistory::EventsQuery&) 
    QString CommHistory::EventsQuery::query() const 
    Ignored prop 31 
    Ignored prop 39 
    QList<CommHistory::Event::Property> CommHistory::EventsQuery::eventProperties() const 
    void CommHistory::QueryRunner::runEventsQuery(const QString&, const QList<CommHistory::Event::Property>&) QThread(0x1f567488) CommHistory::QueryRunner(0x1fb120d0) -> 
    void CommHistory::QueryRunner::addQueryToQueue(CommHistory::QueryType, const QSparqlQuery&, const QList<CommHistory::Event::Property>&) QThread(0x1f567488) CommHistory::QueryRunner(0x1fb120d0) -> 
    void CommHistory::QueryRunner::addQueryToQueue(CommHistory::QueryType, const QSparqlQuery&, const QList<CommHistory::Event::Property>&) QThread(0x1f567488) CommHistory::QueryRunner(0x1fb120d0) <- 
    void CommHistory::QueryRunner::nextSlot() QThread(0x1f567488) CommHistory::QueryRunner(0x1fb120d0) 
    QSparqlConnection(0x1fb12510) QThread(0x1f567488) 
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
    QTrackerDirectResult: QSparqlError(-1, "") "SELECT ?message rdf:type(?message) nmo:sentDate(?message) nmo:receivedDate(?message) nmo:isSent(?message) nmo:isDraft(?message) nmo:isRead(?message) nmo:isAnswered(?message) nmo:isEmergency(?message) nmo:deliveryStatus(?message) nie:contentSize(?message) (SELECT GROUP_CONCAT(tracker:coalesce(nco:imID(?medium), nco:phoneNumber(?medium), ?medium), "\u001e") WHERE { ?from nco:hasContactMedium ?medium . }) (SELECT GROUP_CONCAT(tracker:coalesce(nco:imID(?medium), nco:phoneNumber(?medium), ?medium), "\u001e") WHERE { ?to nco:hasContactMedium ?medium . }) (SELECT GROUP_CONCAT(fn:string-join((tracker:id(?contact), nco:nameGiven(?contact), nco:nameFamily(?contact)), "\u001f"), "\u001e") WHERE { {  ?target nco:hasIMAddress ?address .   ?contact nco:hasAffiliation [ nco:hasIMAddress ?address ] . } UNION {  ?target nco:hasPhoneNumber [ maemo:localPhoneNumber ?number ] .   ?contact nco:hasAffiliation [ nco:hasPhoneNumber [ maemo:localPhoneNumber ?number ] ] . }}) AS ?contacts  (SELECT ?nickname { ?target nco:hasIMAddress [ nco:imNickname ?nickname ] }) nmo:phoneMessageId(?message) nmo:messageSubject(?message) nie:plainTextContent(?message) nmo:communicationChannel(?message) nmo:messageId(?message) nie:contentLastModified(?message) nfo:fileName(nmo:fromVCard(?message)) rdfs:label(nmo:fromVCard(?message)) nmo:encoding(?message) nie:characterSet(?message) nie:language(?message) nmo:isDeleted(?message) nmo:reportDelivery(?message) nmo:validityPeriod(?message) nie:generator(?message) (SELECT GROUP_CONCAT(?cc, '\u001e') {?message nmo:cc ?ccContact . {?ccContact nco:hasIMAddress [nco:imID ?cc]}UNION{?ccContact nco:hasPhoneNumber [nco:phoneNumber ?cc]}}) (SELECT GROUP_CONCAT(?bcc, '\u001e') {?message nmo:bcc ?bccContact . {?bccContact nco:hasIMAddress [nco:imID ?bcc]}UNION{?bccContact nco:hasPhoneNumber [nco:phoneNumber ?bcc]}}) nmo:reportReadStatus(?message) nmo:sentWithReportRead(?message) nmo:mustAnswerReportRead(?message) nmo:mmsId(?message) (SELECT ?mmsTo {?message nmo:messageHeader [nmo:headerName "x-mms-to"; nmo:headerValue ?mmsTo]}) WHERE { SELECT ?message ?from ?to  IF (nmo:isSent(?message) = true, ?to, ?from) AS ?target  ?message WHERE {?message nmo:from ?from ; nmo:to ?to .  ?message rdf:type nmo:SMSMessage . } }" 
    void CommHistory::QueryRunner::finished() 
    "GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.232" (uid=29999 pid=6020 comm="/opt/twitmobile/bin/twitmobile ") interface="org.freedesktop.Tracker1.Steroids" member="Query" error name="(unset)" requested_reply=0 destination="org.freedesktop.Tracker1" (uid=29999 pid=1388 comm="/usr/lib/tracker/tracker-store "))" 
    virtual void CommHistory::EventModelPrivate::modelUpdatedSlot(bool) 
    void StorageEngine::onModelReady(bool) begin 
    
    void StorageEngine::onModelReady(bool) end 
    
    StorageEngine::StorageEngine(QObject*) end 
    
    TelepathyEngine::TelepathyEngine() begin 
    
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
    void TelepathyEngine::onAMReady(Tp::PendingOperation*) begin 
    
    void TelepathyEngine::onAMReady(Tp::PendingOperation*) end 
    
    void TelepathyEngine::onAccountReady(Tp::PendingOperation*) begin 
    
    void TelepathyEngine::addAccount(const Tp::AccountPtr&) begin 
    
    SMS account Id: "ring/tel/ring" cmname: "ring" protocol: "tel" servicename "tel" 
    void TelepathyEngine::addAccount(const Tp::AccountPtr&) end 
    
    void TelepathyEngine::syncDone() begin 
    
    void TelepathyEngine::syncDone() end 
    
    void TelepathyEngine::onAccountReady(Tp::PendingOperation*) end 
    
    TelepathyEngine::TelepathyEngine() end 
    
    QtMobility::QMessageAccountId TelepathyEngine::defaultAccount(QtMobility::QMessage::Type) begin 
    
    QtMobility::QMessageAccountId TelepathyEngine::defaultAccount(QtMobility::QMessage::Type) end 
    
    QtMobility::QMessageAccount TelepathyEngine::account(const QtMobility::QMessageAccountId&) begin 
    
    QtMobility::QMessageAccount TelepathyEngine::account(const QtMobility::QMessageAccountId&) end 
    
     message.type():  2  msgType:  0 
    bool TelepathyEngine::sendMessage(QtMobility::QMessage&, QtMobility::QMessageService*) begin 
    
    sendMessage accountId:  "ring/tel/ring" 
    bool TelepathyEngine::sendMessage(QtMobility::QMessage&, QtMobility::QMessageService*) end 
    
    void SendRequest::onServiceDestroyed(QObject*) 
    SendRequest::~SendRequest() 
    tp-qt4 0.6.0 WARN: Properties::GetAll(Connection) failed with "org.freedesktop.DBus.Error.AccessDenied": "Rejected send message, 2 matched rules; type="method_call", sender=":1.230" (uid=29999 pid=6020 comm="/opt/twitmobile/bin/twitmobile ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply=0 destination=":1.15" (uid=29999 pid=884 comm="/usr/lib/telepathy/telepathy-ring "))"
    tp-qt4 0.6.0 WARN: GetStatus() failed with "org.freedesktop.DBus.Error.AccessDenied": "Rejected send message, 2 matched rules; type="method_call", sender=":1.230" (uid=29999 pid=6020 comm="/opt/twitmobile/bin/twitmobile ") interface="org.freedesktop.Telepathy.Connection" member="GetStatus" error name="(unset)" requested_reply=0 destination=":1.15" (uid=29999 pid=884 comm="/usr/lib/telepathy/telepathy-ring "))"
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
    ...
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
    Meego graphics system destroyed
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
    void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError 
    ...
    QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
    virtual CommHistory::EventModelPrivate::~EventModelPrivate()
    Last edited by bernardnapoleon; 2011-09-10 at 05:00.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: How to Send an SMS in Meego?

    How does your aegis manifest look like ? http://harmattan-dev.nokia.com/docs/...st_syntax.html actually shows an example for SMS

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    10

    Re: How to Send an SMS in Meego?

    Code:
    <aegis>
        <request>
            <credential name="phone-control">
               <docstring>
                A resource which gives access to the lower level phone functionality. For example,
                see the DBus services
                <ul>
                  <li>com.nokia.phone.SMS (Phone.SMS)</li>
                  <li>com.nokia.phone.SIM (Phone.Sim, Phone.Sim.Security, Phone.Sim.Phonebook)</li>
                  <li>com.nokia.phone.net (Phone.Net)</li>
                </ul>
                </docstring>
            </credential>
            <credential name="Cellular" />
            <credential name="TrackerReadAccess" />
            <credential name="TrackerWriteAccess" />
            <for path="main_application_package::/opt/twitmobile/bin/twitmobile" />
        </request>
        <provide>
           <dbus name="com.nokia.phone.SMS" own="csd::csd">
             <node name="/">
               <interface name="Phone.SMS">
                     <annotation name="com.maemo.Aegis" value="phone-control"/>
               </interface>
             </node>
          </dbus>
        </provide>
    </aegis>
    I tried to copy some of the codes from the link you gave me.

    Still:
    Code:
    void CommHistory::QueryRunner::finished() 
    "GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.257" (uid=29999 pid=6741 comm="/opt/twitmobile/bin/twitmobile ") interface="org.freedesktop.Tracker1.Steroids" member="Query" error name="(unset)" requested_reply=0 destination="org.freedesktop.Tracker1" (uid=29999 pid=1388 comm="/usr/lib/tracker/tracker-store "))"
    Last edited by bernardnapoleon; 2011-09-09 at 15:42.

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    10

    Re: How to Send an SMS in Meego?

    My bad, the aegis file should be something like this, reading the wrong help file. made my aegis too complicated.

    Code:
    <aegis>
       <request>
          <credential name="Cellular" />
          <for path="/path/to/application" />
       </request>
    </aegis>
    Thanks @achipa for trying to help =)

Similar Threads

  1. SIP and VPN on MEEGO ?
    By cchaulvet in forum General Development Questions
    Replies: 0
    Last Post: 2011-07-10, 18:30
  2. Web App for MeeGo
    By puploo in forum Nokia Asha Web Apps
    Replies: 2
    Last Post: 2011-06-15, 16:36
  3. Will MeeGo be available on N8 ?
    By edyuy in forum General Development Questions
    Replies: 7
    Last Post: 2011-04-28, 14:02
  4. OMA DM and Meego
    By mars1376 in forum OMA DM/DS/CP
    Replies: 0
    Last Post: 2011-01-17, 15:51
  5. Replies: 2
    Last Post: 2010-10-22, 23:35

Posting Permissions

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