Commit Graph

116 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri 74ca53a96f enjoy: single instance using DBus name org.enlightenment.enjoy
Also provide minor Control interface, later to be extended with DB
management.



SVN revision: 63180
2011-09-04 23:27:15 +00:00
Gustavo Sverzut Barbieri 862f5dd781 enjoy: do some pending stuff, more events are supported.
SVN revision: 63165
2011-09-04 19:20:01 +00:00
Gustavo Sverzut Barbieri cdc69191ba enjoy: improved plugin infrastructure.
Plugins can now be disabled and enabled (at least in infrastructure
terms, no UI or code to filter out enabled plugins).

Two new signals will be emitted to main loop:
  - ENJOY_EVENT_STARTED
  - ENJOY_EVENT_QUIT

Plugins will be enabled on start, disabled on quit. Quit will also
preserve the main loop until everything is done using it. It is
required for stuff like FSO that needs to talk to DBus to re-enable
the CPU policy.



SVN revision: 63163
2011-09-04 18:37:05 +00:00
Gustavo Sverzut Barbieri 416b55125d remove legacy cruft.
SVN revision: 63156
2011-09-04 16:00:01 +00:00
Gustavo Sverzut Barbieri 5a1a5421b9 enjoy: version ABI.
SVN revision: 63155
2011-09-04 15:58:50 +00:00
Rui Seabra 0ba924dee0 Adjust spec to current status and add missing header files, fixing the build.
SVN revision: 63153
2011-09-04 14:50:11 +00:00
Gustavo Sverzut Barbieri 88289dd448 enjoy: simplify events and isolate mpris bit more.
Keep mpris stuff into mpris itself. Things like status and
capabilities will go into a structure that is easier to use.

Events were simplified, couple of them do not carry arguments anymore,
removing the need of "no_free" and hacks like alocating an integer to
later free it.

The point of event data is when you must use that value, in that exact
sequence. When you have things that just the latest version matters,
like the capabilities or the current song you'll inform MPRIS, then
it's simpler to just query before using. Remember that events are
asynchronous and may run after timers, fd-handlers (mouse, kbd) and
even other events.

I've also fixed the behavior of setting repeat (loop), reflect the
UI. Shuffle also were not updating toolbar, etc.

As a bonus I've added a missing MPRIS TrackList.GetLength :-)

Last but not least... watch out things like giving Edje a MSG_INT
where the given pointer is Eina_Bool (1 byte), it may cause problems
depending on the sibling values :-/




SVN revision: 63145
2011-09-04 03:40:14 +00:00
Gustavo Sverzut Barbieri 5d2e467aa0 enjoy needs no enjoy_event_id_get()
no need for enum + function, just use "EAPI extern int" as other EFL



SVN revision: 63143
2011-09-04 01:42:40 +00:00
Gustavo Sverzut Barbieri 41d8c6e5d1 enjoy: improve plugins build and installation.
- enjoy.m4 (similar to lightmediascanner/m4/ac-plugins.m4)
 - optional build of modules
 - each module in their own directory
 - install modules to $(libdir)/enjoy/
 - load module from multiple "standard" places, such as
   - $(libdir)/enjoy/
   - ~/.enjoy
   - ${ENJOY_LIB_DIR}/enjoy
   - $ENJOY_MODULES_DIR
 - each module have its own log stuff



SVN revision: 63142
2011-09-04 01:33:10 +00:00
Cedric BAIL baf145dd8a enjoy: fix double declaration.
SVN revision: 62972
2011-08-29 21:34:38 +00:00
Leandro Pereira 56c89d36a3 enjoy: Add note about capabilities/player status values
SVN revision: 62966
2011-08-29 19:54:41 +00:00
Leandro Pereira be41285277 enjoy: Move player status to a structure.
SVN revision: 62965
2011-08-29 19:54:38 +00:00
Leandro Pereira 08c86b1bf1 enjoy: Move FSO and MPRIS to plugins.
Still need to install the plugins in a proper directory (probably
$PREFIX/lib/enjoy/plugins) instead of looking for some known filename
prefix.  I don't know autofoo enough to do this.

Also needed is a way to load/unload plugins, preferably from the UI.

SVN revision: 62964
2011-08-29 19:54:34 +00:00
Leandro Pereira 38269abd59 enjoy: Call fso_{request,release}_resource() in fso_{shutdown,init}().
Preparation to move stuff to plugins.

SVN revision: 62882
2011-08-26 20:44:35 +00:00
Leandro Pereira dda7959442 enjoy: Misc cleanups.
SVN revision: 62877
2011-08-26 19:24:08 +00:00
Leandro Pereira 14a6b10ede enjoy: Move track list/player events to Ecore_Event.
This is to prepare to move MPRIS stuff to a plugin later.

SVN revision: 62876
2011-08-26 19:24:05 +00:00
Leandro Pereira 549e8f1cdb enjoy: 'msg' paramter is used in mpris.c::_cb_dbus_request_name.
SVN revision: 62860
2011-08-26 14:44:15 +00:00
Leandro Pereira f6bb4a8aaa enjoy: Plug memory leak when downloading a cover art that already existed on the cache directory
SVN revision: 62841
2011-08-25 22:35:33 +00:00
Leandro Pereira 7862272a4a enjoy: Simplify coverart-lastfm.c::_remove_disc_info()
SVN revision: 62840
2011-08-25 22:35:29 +00:00
Leandro Pereira 8eb1c3a475 enjoy: elm_genlist_horizontal_mode_set() is deprecated.
SVN revision: 62839
2011-08-25 22:13:29 +00:00
Leandro Pereira 9cdf10da20 enjoy: Load only the first failback image when cover loading fails
SVN revision: 62838
2011-08-25 22:10:22 +00:00
Leandro Pereira 70c40537b8 enjoy: db_albums_get() should return only albums which files haven't been marked as deleted by lms
SVN revision: 62837
2011-08-25 22:10:20 +00:00
Leandro Pereira 7fc987f071 [enjoy] Simplify _cover_with_exact_size() a little bit
SVN revision: 62836
2011-08-25 22:10:15 +00:00
Gustavo Sverzut Barbieri 15957b61a2 enjoy: fix minor annoyances with toolbar.
TODO: fix elm_toolbar that is resizing the item when the state change
to a large text (Library <-> Now Playing). Right now it was worked
around with a shorter label (Now Playing -> Playing)



SVN revision: 62774
2011-08-25 03:23:43 +00:00
Gustavo Sverzut Barbieri 46aa435c7f enjoy now will try to use theme-provided layouts.
SVN revision: 62772
2011-08-25 03:08:40 +00:00
Gustavo Sverzut Barbieri a99603bb29 enjoy: better page switch effect, remove cruft.
SVN revision: 62767
2011-08-25 00:55:39 +00:00
Carsten Haitzler 21dadcc1b0 ecore_con_url_get needs no args.
SVN revision: 56338
2011-01-28 02:24:24 +00:00
Leandro Pereira 6e40c97ca8 [enjoy] Add fso support, to request CPU resource at startup so mobile doesn't suspend while listening to music
Patch by pespin.



SVN revision: 56308
2011-01-26 18:15:47 +00:00
Carsten Haitzler 6376c2d168 ok rafael/rui - i've deprecated send and made a get and post call that
will explicitly do a get or a post. send is still there (deprecated)
and it just does what it did before - it guesses effectively. please
comment. :)



SVN revision: 55926
2011-01-06 06:33:25 +00:00
Vincent Torri 7b637aadfa missing file for the ql binary
SVN revision: 55500
2010-12-11 17:20:47 +00:00
Otávio Pontes a9f4da614e Using different layouts to improve now playing transition.
SVN revision: 55417
2010-12-09 15:30:52 +00:00
Bruno Dilly 0ada0c5d19 Fixes for make distcheck on enjoy
Add mpris.h coverart-lastfm.h on makefile



SVN revision: 55024
2010-11-26 19:31:57 +00:00
Leandro Pereira c2c6ed8f2c [enjoy] Unref the DBUS interfaces before shutting down e_dbus
SVN revision: 54947
2010-11-24 19:03:15 +00:00
Leandro Pereira 262fe3a570 [enjoy] Use superfast hash instead of djb2 on _cover_album_local_find()
SVN revision: 54946
2010-11-24 18:32:22 +00:00
Leandro Pereira 2a72a19dd6 [enjoy] Generate thumbnails with a higher quality
SVN revision: 54945
2010-11-24 18:32:20 +00:00
Leandro Pereira bfbfdccb45 [enjoy] Always create resized covers in cache directory
SVN revision: 54944
2010-11-24 18:32:17 +00:00
Leandro Pereira d1d86624c2 [enjoy] Only remove old covers from the cache directory
SVN revision: 54943
2010-11-24 18:32:15 +00:00
Leandro Pereira 0e404f1d6f [enjoy] Use higher quality cover art when upscaling
SVN revision: 54942
2010-11-24 18:32:12 +00:00
Otávio Pontes e5dd0359f1 Getting icon_size from theme correctly.
SVN revision: 54936
2010-11-24 16:41:35 +00:00
Leandro Pereira 07f7096926 [enjoy] Small optimization in _cover_album_local_find()
Use a hash table instead of a list to know which directories were already scanned.

SVN revision: 54904
2010-11-23 20:26:45 +00:00
Leandro Pereira f1db327355 [enjoy] Fix possible crash on small filenames
SVN revision: 54890
2010-11-23 16:35:42 +00:00
Leandro Pereira b0e90c5f84 [enjoy] Do not depend on efreet to determine cover art file types
Determining the mime type of a file based on its content is pretty
expensive, specially if there isn't any kind of hints to narrow Efreet's
magic table: searching only for "image/*" file types would be a lot better
than the current approach of matching with each and every type known to man
just to discard them if they're not images.  Enjoy being a music player,
most files on each album directory will be music files, making local cover
art searching pretty slow.

Since there is now code to obtain the cover art from the network, it is
safer to assume the cover art files will either have a .{jpe?g,png}
extension, or will be obtained from the network.

SVN revision: 54889
2010-11-23 15:38:13 +00:00
Otávio Pontes b95e73e1bc Letting emotion object invisible.
When displaying emotion, a black rectangle appeared in the screen when
playing a song.

SVN revision: 54881
2010-11-23 12:58:54 +00:00
Otávio Pontes 38a9fc8fff Using back and playing buttons from layout/toolbar-content-back-next.
Also simplifies the pages themes in enjoy.

SVN revision: 54880
2010-11-23 12:58:51 +00:00
Otávio Pontes b24a7a478c Using all-songs and no-cover icons from theme.
SVN revision: 54879
2010-11-23 12:58:48 +00:00
Otávio Pontes 6893d00463 Removing genlist theme from enjoy
SVN revision: 54876
2010-11-23 12:58:40 +00:00
Leandro Pereira e153083733 [enjoy] Cache pre-resized cover art
(Should ethumb be used instead?)

SVN revision: 54725
2010-11-19 19:54:45 +00:00
Leandro Pereira f67a4647bf [enjoy] Only download higher-resolution cover artwork.
Lower resolution ones will be resized (and cached) locally to the exact size needed by the UI.

SVN revision: 54724
2010-11-19 19:54:42 +00:00
Leandro Pereira fc2a489c0c [enjoy] Add some code to clean up the database
SVN revision: 54723
2010-11-19 19:54:40 +00:00
Leandro Pereira f947dfc994 [enjoy] Add enjoy_cache_dir_get()
SVN revision: 54722
2010-11-19 19:54:37 +00:00