[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: Review Request: Add support for mpris2 in nowlistening-plugin
From:       "Lamarque Souza" <lamarque () kde ! org>
Date:       2012-05-31 16:29:20
Message-ID: 20120531162920.30215.51842 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/6960/#review10809
-----------------------------------------------------------



/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nlmpris2.cpp
<http://svn.reviewboard.kde.org/r/6960/#comment13404>

    Hmmm we have a problem. The nowplaying plugin assume the ::update() met=
hod is synchronous, so we cannot use QDBusPendingReply here or it will caus=
e undesired side effects. I think we will have to use the old version of th=
is patch until someone fix that in the nowplaying plugin.



/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningpreferences.c=
pp
<http://svn.reviewboard.kde.org/r/6960/#comment13405>

    Send the change to klistwidget in a different review please. They will =
be applied in different commits so it will be easier if they were in differ=
ent reviews.


- Lamarque Souza


On May 31, 2012, 4:22 p.m., Cyberbeat wrote:
> =

> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/6960/
> -----------------------------------------------------------
> =

> (Updated May 31, 2012, 4:22 p.m.)
> =

> =

> Review request for Kopete.
> =

> =

> Description
> -------
> =

> Add support for mpris2 in nowlistening-plugin
> =

> =

> Diffs
> -----
> =

>   /trunk/KDE/kdenetwork/kopete/plugins/nowlistening/CMakeLists.txt 129732=
2 =

>   /trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nlmpris2.h PRE-CREATI=
ON =

>   /trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nlmpris2.cpp PRE-CREA=
TION =

>   /trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningplugin.cp=
p 1297322 =

>   /trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningpreferenc=
es.cpp 1297322 =

>   /trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningprefs.ui =
1297322 =

> =

> Diff: http://svn.reviewboard.kde.org/r/6960/diff/
> =

> =

> Testing
> -------
> =

> works for me (banshee)
> =

> =

> Thanks,
> =

> Cyberbeat
> =

>


[Attachment #5 (text/html)]

<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;">  <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://svn.reviewboard.kde.org/r/6960/">http://svn.reviewboard.kde.org/r/6960/</a>
  </td>
    </tr>
   </table>
   <br />









<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;">  <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;">  <a \
href="http://svn.reviewboard.kde.org/r/6960/diff/2/?file=48039#file48039line94" \
style="color: black; font-weight: bold; text-decoration: \
underline;">/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nlmpris2.cpp</a>  <span \
style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; \
"></pre></td>  <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: \
0; ">void NLmpris2::update()</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th>  <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>  <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">94</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span \
class="tb">	</span><span class="n">QDBusPendingCall</span> <span \
class="n">mprisStatus</span> <span class="o">=</span> <span \
class="n">m_client</span><span class="o">-&gt;</span><span \
class="n">asyncCall</span><span class="p">(</span> <span \
class="s">&quot;Get&quot;</span><span class="p">,</span> <span \
class="s">&quot;org.mpris.MediaPlayer2.Player&quot;</span><span class="p">,</span> \
<span class="s">&quot;PlaybackStatus&quot;</span> <span \
class="p">);</span></pre></td>  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Hmmm we \
have a problem. The nowplaying plugin assume the ::update() method is synchronous, so \
we cannot use QDBusPendingReply here or it will cause undesired side effects. I think \
we will have to use the old version of this patch until someone fix that in the \
nowplaying plugin.</pre> </div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;">  <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;">  <a \
href="http://svn.reviewboard.kde.org/r/6960/diff/2/?file=48041#file48041line27" \
style="color: black; font-weight: bold; text-decoration: \
underline;">/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningpreferences.cpp</a>
  <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; \
"></pre></td>

  </tr>
 </tbody>



 
 




 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">27</font></th>  <td bgcolor="#fdfebc" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include \
&lt;k<span class="hl">3</span>list<span class="hl">box</span>.h&gt;</span></pre></td> \
<th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">27</font></th>  <td bgcolor="#fdfebc" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span \
class="cp">#include &lt;klist<span class="hl">widget</span>.h&gt;</span></pre></td>  \
</tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Send the \
change to klistwidget in a different review please. They will be applied in different \
commits so it will be easier if they were in different reviews.</pre> </div>
<br />



<p>- Lamarque</p>


<br />
<p>On May 31st, 2012, 4:22 p.m., Cyberbeat wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://svn.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for Kopete.</div>
<div>By Cyberbeat.</div>


<p style="color: grey;"><i>Updated May 31, 2012, 4:22 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Add support for mpris2 in nowlistening-plugin</pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">works for me (banshee)</pre>  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/CMakeLists.txt <span \
style="color: grey">(1297322)</span></li>

 <li>/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nlmpris2.h <span style="color: \
grey">(PRE-CREATION)</span></li>

 <li>/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nlmpris2.cpp <span \
style="color: grey">(PRE-CREATION)</span></li>

 <li>/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningplugin.cpp <span \
style="color: grey">(1297322)</span></li>

 <li>/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningpreferences.cpp \
<span style="color: grey">(1297322)</span></li>

 <li>/trunk/KDE/kdenetwork/kopete/plugins/nowlistening/nowlisteningprefs.ui <span \
style="color: grey">(1297322)</span></li>

</ul>

<p><a href="http://svn.reviewboard.kde.org/r/6960/diff/" style="margin-left: \
3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>



_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic