efl_player: Add playable property
authorVitor Sousa <vitorsousasilva@gmail.com>
Tue, 16 Jun 2015 12:53:06 +0000 (13:53 +0100)
committerTom Hacohen <tom@stosb.com>
Tue, 16 Jun 2015 12:53:06 +0000 (13:53 +0100)
Summary:
Add "playable" property to Efl.Player.
It should be used to check if the currently loaded data can be
played.

Reviewers: tasn, felipealmeida, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2704

src/lib/efl/interfaces/efl_player.eo

index 213eee2..f2f70a3 100644 (file)
@@ -1,6 +1,16 @@
 interface Efl.Player {
    legacy_prefix: null;
    methods {
+        @property playable {
+             /*@
+              * @brief Whether or not the object data can be played.
+              */
+             get {
+             }
+             values {
+                  play: bool; /*@ true if the object have playable data, false otherwise */
+             }
+        }
         @property play {
              set {
                   /*@