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

List:       kde-commits
Subject:    [nepomuk-web-extractor] bc1f127: Set a nice user readable description
From:       Sebastian Trueg <trueg () kde ! org>
Date:       2010-11-21 13:03:51
Message-ID: 20101121130351.44C17A60B1 () git ! kde ! org
[Download RAW message or body]

commit bc1f127eb403b32f2b1bf5457b5d7026d39bc525
branch console
Author: Sebastian Trueg <trueg@kde.org>
Date:   Sun Nov 21 12:34:44 2010 +0100

    Set a nice user readable description on the decisions.

diff --git a/runtime/service/plugins/tvdb/tvdbdatappreply.cpp \
b/runtime/service/plugins/tvdb/tvdbdatappreply.cpp index a9f39cf..a4e16c0 100644
--- a/runtime/service/plugins/tvdb/tvdbdatappreply.cpp
+++ b/runtime/service/plugins/tvdb/tvdbdatappreply.cpp
@@ -30,6 +30,8 @@
 
 #include <Nepomuk/Resource>
 #include <KDebug>
+#include <KLocale>
+
 
 Nepomuk::TvdbReply::TvdbReply( TvdbDataPP* parent,
                                const WebExtractor::DecisionFactory* factory,
@@ -90,7 +92,15 @@ void Nepomuk::TvdbReply::slotRequestDone( int id, const \
QList<Tvdb::Series>& res  // 5. calculate the probability of the match the dumb way
             d.setRank( TvdbPlugin::calculateRankTheDumbWay( m_name, series.name() ) \
);  
-            // 6. add the decision to the pool of applicable ones
+            // 6. Set a user readable desciption
+            d.setDescription(i18nc("@info %1 is a file name, %2 and %3 are numbers, \
%4 is the name of a TV show", +                                   "%1 is episode %2 \
from season %3 of %4", +                                   resource().genericLabel(),
+                                   m_episode,
+                                   m_season,
+                                   series.name()));
+
+            // 7. add the decision to the pool of applicable ones
             addDecision( d );
         }
 


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

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