<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    works for me:<br>
    <br>
    <tt>QDBusConnection::sessionBus().connect("com.jolla.jollastore",
      "/StoreClient", "com.jolla.jollastore", "packageStatusChanged",
      this, SIGNAL(onPackageStatusChanged(QString,int)));</tt><tt><br>
    </tt><tt><br>
    </tt><tt>void TestApp::onPackageStatusChanged(const QString
      &package, int status)</tt><tt><br>
    </tt><tt>{</tt><tt><br>
    </tt><tt>    qDebug() << "packageStatusChanged" <<
      package << status;</tt><tt><br>
    </tt><tt>}</tt><br>
    <br>
    <div class="moz-cite-prefix">12.06.2014 22:34, Kimmo Lindholm пишет:<br>
    </div>
    <blockquote
      cite="mid:F90A6B1B16626D4082FE8CBFCE5E4790327ADF5B@exchange.eke.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Ubuntu;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.Shkpostityyli18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">does
            QDBusConnection::sessionBus().lastError().message() give any
            details on error?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
                  lang="FI">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
                lang="FI"> <a class="moz-txt-link-abbreviated" href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:devel-bounces@lists.sailfishos.org">mailto:devel-bounces@lists.sailfishos.org</a>]
                <b>On Behalf Of </b>Mikael Hermansson<br>
                <b>Sent:</b> Thursday, June 12, 2014 10:25 AM<br>
                <b>To:</b> sailfish-devel<br>
                <b>Subject:</b> [SailfishDevel] rpminstall signal
                packageStatusChanged<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p style="margin:0cm;margin-bottom:.0001pt"><span
            style="font-size:9.0pt;font-family:"Ubuntu","serif"">I
            want to connect to the signal packageStatusChanged from the
            harbour FAQ I read this:<o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:10.0pt;font-family:"Ubuntu","serif";color:#333333;background:whitesmoke">signal
            path=/StoreClient; interface=com.jolla.jollastore;
            member=packageStatusChanged</span><span
            style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;background:whitesmoke;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:10.0pt;font-family:"Ubuntu","serif";color:#333333;background:whitesmoke">string
            "filename.rpm"</span><span
            style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:7.5pt;margin-left:0cm;background:whitesmoke;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:10.0pt;font-family:"Ubuntu","serif";color:#333333;background:whitesmoke">int32
            0 (not installed?), 1 (installed?) and 2 (progressing?)</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif"">But
            I have problem getting the receive the signal from
            jollastore in my app I connect to the store using QDBus API
            :<o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">result
            =
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:purple">QDBusConnection</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">::sessionBus().connect(</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:green">"com.jolla.jollastore"</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">,</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:green">"/StoreClient"</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">,</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:green">"com.jolla.jollastore"</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">,</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:green">"packageStatusChanged"</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">,</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:olive">this</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">,</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:olive">SLOT</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">(</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif"">onPackageStatusChanged<span
              style="color:black">(</span><span style="color:purple">QString</span><span
              style="color:black">,</span><span style="color:olive">int</span><span
              style="color:black">)));</span><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:navy">qDebug</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">()</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black"><<</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:green">"DBUSconnect==</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:green">"</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:silver">
          </span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black"><<
            result;</span><span
            style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">However
            the signal seems not connect since it returns:</span><span
            style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">[D]
            RpmInstall::RpmInstall:19 - DBUSconnect== false
          </span><span
            style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">the
            signal is not emited... Any idea what I do wrong?</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">Regards</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif";color:black">Mikael</span><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""><o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif"">--
            <o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif"">"Put
            mankind back on earth"<o:p></o:p></span></p>
        <p
style="margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0"><span
style="font-size:9.0pt;font-family:"Ubuntu","serif""> <o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>