Exemple #1
0
        private static IntPtr itdb_photodb_parse_wrapped(string mountpoint)
        {
            IntPtr gerror;
            IntPtr retval = Itdb_PhotoDB.itdb_photodb_parse(mountpoint, out gerror);

            if (gerror != IntPtr.Zero)
            {
                throw new GException(gerror);
            }
            return(retval);
        }
Exemple #2
0
        public bool Write()
        {
            IntPtr gerror;
            bool   res = Itdb_PhotoDB.itdb_photodb_write(Handle, out gerror);

            if (gerror != IntPtr.Zero)
            {
                throw new GException(gerror);
            }
            return(res);
        }
 protected override void DoUnlink(int index)
 {
     Itdb_PhotoDB.itdb_photodb_photoalbum_unlink(this[index].Handle);
 }
Exemple #4
0
 protected override void DoAdd(int index, PhotoAlbum item)
 {
     Itdb_PhotoDB.itdb_photodb_photoalbum_add(this.handle, item.Handle, index);
 }
Exemple #5
0
 protected override void Destroy()
 {
     Itdb_PhotoDB.itdb_photodb_free(Handle);
 }
Exemple #6
0
 public static PhotoDB Create(string mountpoint)
 {
     return(new PhotoDB(Itdb_PhotoDB.itdb_photodb_create(mountpoint), false));
 }