Merge lp://staging/~bidossessi-sodonon/synapse-project/mpc-plugin into lp://staging/synapse-project
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~bidossessi-sodonon/synapse-project/mpc-plugin |
Merge into: | lp://staging/synapse-project |
Diff against target: |
667 lines (+641/-0) 3 files modified
src/plugins/Makefile.am (+1/-0) src/plugins/mpc-plugin.vala (+639/-0) src/ui/synapse-main.vala (+1/-0) |
To merge this branch: | bzr merge lp://staging/~bidossessi-sodonon/synapse-project/mpc-plugin |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bidossessi Sodonon (community) | Needs Resubmitting | ||
Alberto Aldegheri | Needs Fixing | ||
Michal Hruby | Needs Fixing | ||
Review via email: mp+62308@code.staging.launchpad.net |
This proposal supersedes a proposal from 2011-05-25.
Description of the change
Changed MpcEngine's methods to static to avoid unnecessary instantiation.
Unmerged revisions
- 451. By Bidossessi Sodonon
-
Reverted pot file and hybrid-
search- plugin to rev 440. - 450. By Bidossessi Sodonon
-
Don't try to play files that are not in MPD's music root (since it will fail anyway).
- 449. By Bidossessi Sodonon
-
* reverted hybrid-
search- plugin to previous code
* stopped catching errors in public methods in mpc-plugin (no real need)
* updated synapse.pot to - 448. By Bidossessi Sodonon
-
Updated the pot file.
- 447. By Bidossessi Sodonon
-
Fixed the location for this file.
- 446. By Bidossessi Sodonon
-
Feature-complete code, as compared to banshee-plugin
- 445. By Bidossessi Sodonon
-
Fixed unreachable catch issues
- 444. By Bidossessi Sodonon
-
Forgot some strings to make Stop appear
- 443. By Bidossessi Sodonon
-
Forgot to add the "stop" command
- 442. By Bidossessi Sodonon
-
Turned MpcEngine instance method to class methods (static)
First of all, thank you for your contribution! :)
Some comments:
1)
MpcEngine class is instantiated each time I execute an action.
But MpcEngine doesn't have "attributes" that needs to be instantiated.
So I suggest to turn each method and attribute of MpcEnginge into a static one.
In example:
private static string bin = "mpc"; //this can be also "const"
public static void play_pause ()...
In this way you can call directly: play_pause ();
MpcEngine.
2) what's the meaning of
>>search the database for a "type" and turn results to uris on the fly<< ?
3) Synapse's configuration capabilities will come asap (mhr3 and I are very busy in this moment)