Czech translation update (via transifex.net)
[cinaest] / src / movie.vala
index cf970cc..e5212cb 100644 (file)
  */
 
 public class Poster : Object {
-       public Gdk.Pixbuf pixbuf;
-       public Gdk.Pixbuf thumbnail;
+       public const int SMALL_WIDTH = (800 - 2*Hildon.MARGIN_DOUBLE - 4*Hildon.MARGIN_HALF)/5;
+       public const int SMALL_HEIGHT = (420 - Hildon.MARGIN_HALF)/2;
+       public const int ICON_WIDTH = 46;
+       public const int ICON_HEIGHT = 64;
+
+       public Gdk.Pixbuf large;
+       public Gdk.Pixbuf small;
+       public Gdk.Pixbuf icon;
 }
 
 public class Movie : Object {
        public string title { get; set; }
+       public string secondary { get; set; }
        public int year { get; set; }
        public int rating { get; set; }
-       public int genres { get; set; }
+       public uint julian_date { get; set; }
+       public Genres genres;
        public Poster poster { get; set; }
 
        construct {
                rating = -1;
+               julian_date = 0;
+       }
+
+       public virtual string get_plot () {
+               print ("get_plot (%s)\n", title);
+               return "";
+       }
+
+       public virtual List<Role> get_cast () {
+               print ("get_cast (%s)\n", title);
+               return null;
        }
 }
 
+public class Role {
+       public string actor_name;
+       public string character;
+}