https://community.kde.org/index.php?title=Amarok/Archives/DCOPFunctions&feed=atom&action=history
Amarok/Archives/DCOPFunctions - Revision history
2024-03-29T08:33:02Z
Revision history for this page on the wiki
MediaWiki 1.40.2
https://community.kde.org/index.php?title=Amarok/Archives/DCOPFunctions&diff=29000&oldid=prev
Mamarok: /* Devices */ move content
2013-01-02T19:54:35Z
<p><span dir="auto"><span class="autocomment">Devices: </span> move content</span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:54, 2 January 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l270">Line 270:</td>
<td colspan="2" class="diff-lineno">Line 270:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| QStringList showDeviceList () || Called to display the DeviceManager's current device list.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| QStringList showDeviceList () || Called to display the DeviceManager's current device list.</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|}</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">===The Mediabrowser===</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">''In other words, `dcop amarok mediabrowser`:''</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{|</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void deviceConnect () || Connect the current media device.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void deviceDisconnect () || Disconnect the current media device.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void deviceSwitch ( QString name ) || Switch the current media device</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| QStringList deviceList () || List available media devices.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void queue ( KURL url ) || Add url to the transfer queue.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void queueList ( KURL::List url ) || Add list of urls to the transfer queue.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void transfer () || Transfer items in the queue to the current device.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void transcodingFinished ( QString src, QString dest ) || Announce that transcoding of job is finished.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
Mamarok
https://community.kde.org/index.php?title=Amarok/Archives/DCOPFunctions&diff=28999&oldid=prev
Mamarok: /* The Scripts */ move content
2013-01-02T19:53:49Z
<p><span dir="auto"><span class="autocomment">The Scripts: </span> move content</span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:53, 2 January 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l256">Line 256:</td>
<td colspan="2" class="diff-lineno">Line 256:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|void removeCustomMenuItem(QString submenu, QString itemTitle) || Removes the custom menu item.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|void removeCustomMenuItem(QString submenu, QString itemTitle) || Removes the custom menu item.</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|}</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">===Devices===</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">''In other words, `dcop amarok devices`:''</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{|</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void mediumAdded () || Called when there is a mediumAdded event.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void mediumRemoved () || Called when there is a mediumRemoved event.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| void mediumChanged () || Called when there is a mediumChanged event.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| QStringList showDeviceList () || Called to display the DeviceManager's current device list.</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
Mamarok
https://community.kde.org/index.php?title=Amarok/Archives/DCOPFunctions&diff=28058&oldid=prev
Neverendingo: Text replace - "\[\[Category:.*\]\]" to ""
2012-12-14T11:00:06Z
<p>Text replace - "\[\[Category:.*\]\]" to ""</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:00, 14 December 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">[[Category:Amarok]] [[Category:Archives]]</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==The Amarok 1.4 DCOP Functions==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==The Amarok 1.4 DCOP Functions==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
Neverendingo
https://community.kde.org/index.php?title=Amarok/Archives/DCOPFunctions&diff=27769&oldid=prev
Mayankmadan: Created page with "Category:Amarok Category:Archives ==The Amarok 1.4 DCOP Functions== ===The Player=== ''In other words, `dcop amarok player`:'' {| | bool dynamicModeStatus() || Retu..."
2012-12-11T06:45:03Z
<p>Created page with "<a href="/Category:Amarok" title="Category:Amarok">Category:Amarok</a> <a href="/Category:Archives" title="Category:Archives">Category:Archives</a> ==The Amarok 1.4 DCOP Functions== ===The Player=== ''In other words, `dcop amarok player`:'' {| | bool dynamicModeStatus() || Retu..."</p>
<p><b>New page</b></p><div>[[Category:Amarok]] [[Category:Archives]]<br />
==The Amarok 1.4 DCOP Functions==<br />
<br />
===The Player===<br />
<br />
''In other words, `dcop amarok player`:''<br />
<br />
{|<br />
| bool dynamicModeStatus() || Return dynamic mode status.<br />
|-<br />
|bool equalizerEnabled() || Return the equalizer status.<br />
|-<br />
|bool isPlaying() || Return true if something is playing now.<br />
|-<br />
|bool osdEnabled() || Returns true if the Onscreen Display is enabled<br />
|-<br />
|bool randomModeStatus() || Return random mode status.<br />
|-<br />
|bool repeatPlaylistStatus() || Return repeat playlist status.<br />
|-<br />
|bool repeatTrackStatus() || Return repeat track status.<br />
|-<br />
|int getVolume() || Return volume in range 0-100%.<br />
|-<br />
|int rating() || Return rating of current song<br />
|-<br />
|int sampleRate() || Return the sample rate of the currently playing track.<br />
|-<br />
|int score() || Return the score of the currently playing track.<br />
|-<br />
|int status() || Return playback status: 0 - stopped, 1 - paused, 2 - playing. < 0 - error<br />
|-<br />
|int trackCurrentTime() || Return current play position in seconds.<br />
|-<br />
|int trackPlayCounter() || Return play counter for current song.<br />
|-<br />
|int trackTotalTime() || Return track length in seconds.<br />
|-<br />
|QString album() || Return the album of the currently playing track.<br />
|-<br />
|QString artist() || Return the artist of the currently playing track.<br />
|-<br />
|QString bitrate() || Return the bitrate of the currently playing track (XX kbps).<br />
|-<br />
|QString comment() || Return the comment of the currently playing track.<br />
|-<br />
|QString coverImage() || Return the encoded URL of the current track's cover image<br />
|-<br />
|QString currentTime() || Return the position of the currently playing track ([h:]mm:ss format).<br />
|-<br />
|QString encodedURL() || Return the encoded URL of the currently playing track.<br />
|-<br />
|QString engine() || Return the current sound engine.<br />
|-<br />
|QString genre() || Return the genre of the currently playing track.<br />
|-<br />
|QString lyrics() || Return the lyrics of the currently playing track.<br />
|-<br />
|QString lyricsByPath(QString path) || Return the lyrics of a track by path.<br />
|-<br />
|QString nowPlaying() || The title of now playing media.<br />
|-<br />
|QString path() || Return the unencoded path of the currently playing track.<br />
|-<br />
|QString setContextStyle(QString) || Set the CSS style for the context browser<br />
|-<br />
|QString title() || Return the title of the currently playing track.<br />
|-<br />
|QString totalTime() || Return the total length of the currently playing track ([h:]mm:ss format).<br />
|-<br />
|QString track() || Return the track number.<br />
|-<br />
|QString type() || Return the file type.<br />
|-<br />
|QString version() || returns version of amaroK<br />
|-<br />
|QString year() || Return the year of the currently playing track.<br />
|-<br />
|QStringList labels() || Return the labels of the currently playing track.<br />
|-<br />
|void configEqualizer() || Toggle equalizer config dialog.<br />
|-<br />
|void enableOSD(bool enable) || Switch OSD display on or off.<br />
|-<br />
|void enableRandomMode(bool enable) || Switch Random Mode on or off.<br />
|-<br />
|void enableRepeatPlaylist(bool enable) || Switch Repeat Playlist on or off.<br />
|-<br />
|void enableRepeatTrack(bool enable) || Switch Repeat Track on or off.<br />
|-<br />
|void mediaDeviceMount() || Sets the command used for mounting media device.<br />
|-<br />
|void mediaDeviceUmount() || Sets the comment used for umounting media device.<br />
|-<br />
|void mute() || Toggle mute.<br />
|-<br />
|void next() || Equivalent to pressing &quot;Next&quot; button.<br />
|-<br />
|void pause() || Equivalent to pressing &quot;Pause&quot; button.<br />
|-<br />
|void play() || Equivalent to pressing &quot;Play&quot; button.<br />
|-<br />
|void playPause() || Toggle play/pause state (good for mm keyboard users)<br />
|-<br />
|void prev() || Equivalent to pressing &quot;Prev&quot; button.<br />
|-<br />
|void queueForTransfer(KURL url) || Queue file for transfer to Media Device.<br />
|-<br />
|void seek(int s) || Seek track to seconds position.<br />
|-<br />
|void seekRelative(int s) || Seek to a position relative to the current track position.<br />
|-<br />
|void setEqualizer(int, int, int, int, int, int, int, int, int, int, int) || Set the equalizer bands<br />
|-<br />
|void setEqualizerEnabled(bool active) || Toggle equalizer.<br />
|-<br />
|void setEqualizerPreset(QString name) || Set the equalizer preset<br />
|-<br />
|void setLyricsByPath(QString url, QString lyrics) || Set the lyrics of a track by it's path.<br />
|-<br />
|void setRating(int rating) || set the rating of the currently playing track.<br />
|-<br />
|void setRatingByPath(QString url, int rating) || Set rating of a track by it's path<br />
|-<br />
|void setScore(int score) || Set the score of the currently playing track.<br />
|-<br />
|void setScoreByPath(QString url, int score) || Set the score of a track by it's path.<br />
|-<br />
|void setVolume(int volume) || Set volume in range 0-100%.<br />
|-<br />
|void setVolumeRelative(int ticks) || Set volume relative to current volume<br />
|-<br />
|void showBrowser(QString browser) || Shows browsers in the playlist window.<br />
|-<br />
|void showOSD() || Show the OSD display on the screen.<br />
|-<br />
|void stop() || Equivalent to pressing &quot;Stop&quot; button.<br />
|-<br />
|void transferDeviceFiles() || Transfer files to media device.<br />
|-<br />
|void volumeDown() || Decrease volume by a reasonable step.<br />
|-<br />
|void volumeUp() || Increase volume by a reasonable step.<br />
|}<br />
<br />
===The Playlist===<br />
''In other words, `dcop amarok playlist`:''<br />
{|<br />
|int getActiveIndex() || Return the index of the currently active track. -1 if none.<br />
|-<br />
|int getTotalTrackCount() || Return number of tracks in playlist. 0 if none.<br />
|-<br />
|QString saveCurrentPlaylist() || Saves the current playlist to current.xml and returns its path.<br />
|-<br />
|void addMedia(KURL) || Add audio media specified by the url.<br />
|-<br />
|void addMediaList(KURL::List) || Add some audio media specified by the url.<br />
|-<br />
|void clearPlaylist() || Clears the playlist.<br />
|-<br />
|void playByIndex(int) || Starts playing the track at the specified index.<br />
|-<br />
|void playMedia(KURL) || Add audio media specified by the url.<br />
|-<br />
|void popupMessage(QString) || Shows a temporary popup message.<br />
|-<br />
|void removeCurrentTrack() || Removes the current-track item from the playlist.<br />
|-<br />
|void repopulate() || Repopulate the playlist with random tracks.<br />
|-<br />
|void saveM3u(QString path, bool relativePaths) || Saves the current playlist as m3u.<br />
|-<br />
|void setStopAfterCurrent(bool) || Enables/disables the &quot;Stop After Current Track&quot; feature.<br />
|-<br />
|void shortStatusMessage(QString) || Shows a temporary message on the statusbar.<br />
|-<br />
|void shufflePlaylist() || Shuffles the playlist.<br />
|-<br />
|void togglePlaylist() || Toggle the Playlist-window.<br />
|}<br />
<br />
===The Playlist Browser===<br />
''In other words, `dcop amarok playlistbrowser`:''<br />
{|<br />
|int loadPlaylist(QString) || Load a playlist at given QString<br />
|-<br />
|void addPlaylist(QString) || Add a playlist to the playlist browser.<br />
|-<br />
|void addPodcast(QString) || Add a podcast entry to the playlist browser.<br />
|-<br />
|void scanPodcasts() || Scan all podcasts for updates.<br />
|}<br />
<br />
===The Context Browser===<br />
''In other words, `dcop amarok contextbrowser`:''<br />
{|<br />
|void showCurrentTrack() || Show the current track in the context browser.<br />
|-<br />
|void showLyrics() || Show the lyrics tab in the context browser.<br />
|-<br />
|void showLyrics(QCString lyrics) || Show lyrics at given path.<br />
|-<br />
|void showWiki() || Show the wikipedia tab in the context browser.<br />
|}<br />
<br />
===The Collection===<br />
''In other words, `dcop amarok collection`:''<br />
{|<br />
|bool isDirInCollection(QString) || Returns true if the given directory exists in collection.<br />
|-<br />
|bool movefile(QString oldURL, QString newURL) || Moves file from oldURL to newURL, preserving statistics<br />
|-<br />
|int totalAlbums() || Returns the total of albums in the collection.<br />
|-<br />
|int totalArtists() || Returns the total of artists in the collection.<br />
|-<br />
|int totalCompilations() || Returns the total of compilations in the collection.<br />
|-<br />
|int totalGenres() || Returns the total of genres in the collection.<br />
|-<br />
|int totalTracks() || Returns the total of tracks in the collection.<br />
|-<br />
|int addLabels(QString url, QStringList labels) || Add user-defined labels to the song with the given url. Returns the number of labels which were not already assigned to the track.<br />
|-<br />
|void removeLabels(QString url, QStringList oldLabels) || Remove user-defined labels from the song with the given url.<br />
|-<br />
|QStringList query(QString sql) || Queries the database via SQL.<br />
|-<br />
|QStringList similarArtists(int artists) || Return similar artists of the current tracks, limit to int artists.<br />
|-<br />
|void migrateFile(QString oldURL, QString newURL) || Move a file in the collection, keeping stats intact.<br />
|-<br />
|void newUniqueIdForFile(QString path) || Generates a new unique id for file at path.<br />
|-<br />
|void newUniqueIdForFiles(QStringList list) || Generates a new id for files in list<br />
|-<br />
|void scanCollection() || Scan the collection.<br />
|-<br />
|void scanCollectionChanges() || Scan the collection for changes only.<br />
|}<br />
<br />
===The Scripts===<br />
''In other words, `dcop amarok script`:''<br />
{|<br />
|bool runScript(QString name) || Starts the script with the given name. Returns true on success.<br />
|-<br />
|bool stopScript(QString name) || Stops the script with the given name. Returns true on success.<br />
|-<br />
|QString readConfig(QString key) || returns a AmarokConfig configuration entry value from the given key<br />
|-<br />
|QStringList listRunningScripts() || Returns a list of all currently running scripts.<br />
|-<br />
|QStringList readListConfig(QString key) || AmarokConfig lists must use this function<br />
|-<br />
|void addCustomMenuItem(QString submenu, QString itemTitle) || Enables and sets custom menu item title.<br />
|-<br />
|void removeCustomMenuItem(QString submenu, QString itemTitle) || Removes the custom menu item.<br />
<br />
|}<br />
<br />
==Tips for Using the DCOP CLI client==<br />
===Giving a QStringList argument===<br />
The ''QStringList'' class needs to be delimited from the rest of the DCOP command with delimiters of your choosing: [], (), $$, etc.<br />
<br />
''E.g.'' To add labels to a file, issue: <br />
<br />
dcop amarok collection addLabels /path/to/song.mp3 [ "Electronica" "Not Very Good" ]<br />
<br />
DCOP should return '''2''' assuming both labels were new to the song. If your formatting is incorrect, you'll likely see an error like: <br />
<br />
Not enough arguments (expected 2, got 2).<br />
<br />
Check that you have a space between the delimiter and the quotation marks.</div>
Mayankmadan