Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

PhotoVersion.cs

/*
 * PhotoStore.cs
 *
 * Author(s):
 *    Ettore Perazzoli <ettore@perazzoli.org>
 *    Larry Ewing <lewing@gnome.org>
 *    Stephane Delcroix <stephane@delcroix.org>
 * 
 * This is free software. See COPYING for details.
 */

namespace FSpot
{
      public class PhotoVersion : FSpot.IBrowsableItem
      {
            Photo photo;
            uint version_id;
            System.Uri uri;
            string name;
            bool is_protected;
      
            public System.DateTime Time {
                  get { return photo.Time; }
            }
      
            public Tag [] Tags {
                  get { return photo.Tags; }
            }
      
            public System.Uri DefaultVersionUri {
                  get { return uri; }
            }
      
            public string Description {
                  get { return photo.Description; }
            }
      
            public string Name {
                  get { return name; }
                  set { name = value; }
            }
      
            public Photo Photo {
                  get { return photo; }
            }
      
            public System.Uri Uri {
                  get { return uri; }
                  set { 
                        if (value == null)
                              throw new System.ArgumentNullException ("uri");
                        uri = value;
                  }
            }
      
            public uint VersionId {
                  get { return version_id; }
            }
      
            public bool IsProtected {
                  get { return is_protected; }
            }
      
            public uint Rating {
                  get { return photo.Rating; }
            }
      
            public PhotoVersion (Photo photo, uint version_id, System.Uri uri, string name, bool is_protected)
            {
                  this.photo = photo;
                  this.version_id = version_id;
                  this.uri = uri;
                  this.name = name;
                  this.is_protected = is_protected;
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index