[prev in list] [next in list] [prev in thread] [next in thread]
List: amarok-devel
Subject: Re: Review Request 110426: KWalletHelper class for services using the KWallet
From: Matěj_Laitl <matej () laitl ! cz>
Date: 2013-05-14 19:35:13
Message-ID: 20130514193513.17563.2857 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110426/#review32526
-----------------------------------------------------------
The cause is explained below. Please attach the complete patch touching all 3 \
services, we cannot accept code duplication.
src/services/KWalletHelper.h
<http://git.reviewboard.kde.org/r/110426/#comment24220>
The problem is symbol visibility, please read some documentation about it - you \
mist the AMAROK_EXPORT modifier
src/services/magnatune/CMakeLists.txt
<http://git.reviewboard.kde.org/r/110426/#comment24221>
No, this shouldn't be compiled twice.
- Matěj Laitl
On May 14, 2013, 6:13 p.m., Vedant Agarwala wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110426/
> -----------------------------------------------------------
>
> (Updated May 14, 2013, 6:13 p.m.)
>
>
> Review request for Amarok.
>
>
> Description
> -------
>
> I have created a KWalletHelper class so that services like Maganatune, Last.fm and \
> GPodder can use this rather than duplicating code. Currently the patch applies only \
> to Magnatune. The KWalletHelper class complies but it doesn't link properly to the \
> MagnatuneConfig class.
>
> Diffs
> -----
>
> src/CMakeLists.txt 4dcb316
> src/services/KWalletHelper.h e69de29
> src/services/KWalletHelper.cpp e69de29
> src/services/magnatune/CMakeLists.txt 91f24c0
> src/services/magnatune/MagnatuneConfig.h 552bcf8
> src/services/magnatune/MagnatuneConfig.cpp 5842c63
>
> Diff: http://git.reviewboard.kde.org/r/110426/diff/
>
>
> Testing
> -------
>
> The KWalletHelper.cpp complies but fails to link to ManatuneConfig.cpp. Output of \
> "make" command: http://paste.kde.org/743792/
>
> Thanks,
>
> Vedant Agarwala
>
>
[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://git.reviewboard.kde.org/r/110426/">http://git.reviewboard.kde.org/r/110426/</a>
</td>
</tr>
</table>
<br />
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">The cause is explained \
below. Please attach the complete patch touching all 3 services, we cannot accept \
code duplication.</pre> <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://git.reviewboard.kde.org/r/110426/diff/1/?file=143702#file143702line33" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/services/KWalletHelper.h</a> <span style="font-weight: normal;">
(Diff revision 1)
</span>
</th>
</tr>
</thead>
<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">33</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span \
class="n">class</span> <span class="n">KWalletHelper</span> <span class="o">:</span> \
<span class="n">public</span> <span class="n">QObject</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;">The problem \
is symbol visibility, please read some documentation about it - you mist the \
AMAROK_EXPORT modifier</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://git.reviewboard.kde.org/r/110426/diff/1/?file=143704#file143704line62" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/services/magnatune/CMakeLists.txt</a> <span style="font-weight: \
normal;">
(Diff revision 1)
</span>
</th>
</tr>
</thead>
<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">62</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="s">../KWalletHelper.cpp</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;">No, this \
shouldn't be compiled twice.</pre> </div>
<br />
<p>- Matěj</p>
<br />
<p>On May 14th, 2013, 6:13 p.m. UTC, Vedant Agarwala wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for Amarok.</div>
<div>By Vedant Agarwala.</div>
<p style="color: grey;"><i>Updated May 14, 2013, 6:13 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;">I have created a KWalletHelper class so that services like Maganatune, \
Last.fm and GPodder can use this rather than duplicating code. Currently the patch \
applies only to Magnatune. The KWalletHelper class complies but it doesn't link \
properly to the MagnatuneConfig class.</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;">The KWalletHelper.cpp complies but fails to link to ManatuneConfig.cpp. \
Output of "make" command: http://paste.kde.org/743792/</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>src/CMakeLists.txt <span style="color: grey">(4dcb316)</span></li>
<li>src/services/KWalletHelper.h <span style="color: grey">(e69de29)</span></li>
<li>src/services/KWalletHelper.cpp <span style="color: grey">(e69de29)</span></li>
<li>src/services/magnatune/CMakeLists.txt <span style="color: \
grey">(91f24c0)</span></li>
<li>src/services/magnatune/MagnatuneConfig.h <span style="color: \
grey">(552bcf8)</span></li>
<li>src/services/magnatune/MagnatuneConfig.cpp <span style="color: \
grey">(5842c63)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/110426/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic