Changeset View
Changeset View
Standalone View
Standalone View
src/amarokurls/ContextUrlGenerator.cpp
Show All 12 Lines | |||||
13 | * You should have received a copy of the GNU General Public License along with * | 13 | * You should have received a copy of the GNU General Public License along with * | ||
14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | 14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | ||
15 | ****************************************************************************************/ | 15 | ****************************************************************************************/ | ||
16 | 16 | | |||
17 | #include "ContextUrlGenerator.h" | 17 | #include "ContextUrlGenerator.h" | ||
18 | 18 | | |||
19 | #include "AmarokUrl.h" | 19 | #include "AmarokUrl.h" | ||
20 | #include "AmarokUrlHandler.h" | 20 | #include "AmarokUrlHandler.h" | ||
21 | #include "context/ContextView.h" | ||||
21 | 22 | | |||
22 | #include <KLocalizedString> | 23 | #include <KLocalizedString> | ||
23 | 24 | | |||
24 | 25 | | |||
25 | ContextUrlGenerator * ContextUrlGenerator::s_instance = 0; | 26 | ContextUrlGenerator * ContextUrlGenerator::s_instance = 0; | ||
26 | 27 | | |||
27 | ContextUrlGenerator * ContextUrlGenerator::instance() | 28 | ContextUrlGenerator * ContextUrlGenerator::instance() | ||
28 | { | 29 | { | ||
Show All 10 Lines | |||||
39 | ContextUrlGenerator::~ContextUrlGenerator() | 40 | ContextUrlGenerator::~ContextUrlGenerator() | ||
40 | { | 41 | { | ||
41 | The::amarokUrlHandler()->unRegisterGenerator( this ); | 42 | The::amarokUrlHandler()->unRegisterGenerator( this ); | ||
42 | } | 43 | } | ||
43 | 44 | | |||
44 | AmarokUrl | 45 | AmarokUrl | ||
45 | ContextUrlGenerator::createContextBookmark() | 46 | ContextUrlGenerator::createContextBookmark() | ||
46 | { | 47 | { | ||
47 | /* FIXME: disabled temporarily for KF5 porting | | |||
48 | QStringList pluginNames = Context::ContextView::self()->currentApplets(); | 48 | QStringList pluginNames = Context::ContextView::self()->currentApplets(); | ||
49 | QStringList appletNames = Context::ContextView::self()->currentAppletNames(); | 49 | QStringList appletNames = Context::ContextView::self()->currentAppletNames(); | ||
50 | */ | | |||
51 | AmarokUrl url; | 50 | AmarokUrl url; | ||
52 | 51 | | |||
53 | url.setCommand( "context" ); | 52 | url.setCommand( "context" ); | ||
54 | /* FIXME: disabled temporarily for KF5 porting | | |||
55 | url.setArg( "applets", pluginNames.join( "," ) ); | 53 | url.setArg( "applets", pluginNames.join( "," ) ); | ||
56 | 54 | | |||
57 | url.setName( i18n( "Context: %1", appletNames.join( "," ) ) ); | 55 | url.setName( i18n( "Context: %1", appletNames.join( "," ) ) ); | ||
58 | */ | | |||
59 | return url; | 56 | return url; | ||
60 | } | 57 | } | ||
61 | 58 | | |||
62 | 59 | | |||
63 | QString | 60 | QString | ||
64 | ContextUrlGenerator::description() | 61 | ContextUrlGenerator::description() | ||
65 | { | 62 | { | ||
66 | return i18n( "Bookmark Context View Applets" ); | 63 | return i18n( "Bookmark Context View Applets" ); | ||
Show All 12 Lines |