コード例 #1
0
 static void LocalFileRemoved_cb(IntPtr inst, IntPtr filename)
 {
     try {
         Vfs __obj = GLib.Object.GetObject(inst, false) as Vfs;
         __obj.OnLocalFileRemoved(GLib.Marshaller.Utf8PtrToString(filename));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #2
0
 static void LocalFileMoved_cb(IntPtr inst, IntPtr source, IntPtr dest)
 {
     try {
         Vfs __obj = GLib.Object.GetObject(inst, false) as Vfs;
         __obj.OnLocalFileMoved(GLib.Marshaller.Utf8PtrToString(source), GLib.Marshaller.Utf8PtrToString(dest));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #3
0
 static void AddWritableNamespaces_cb(IntPtr inst, IntPtr list)
 {
     try {
         Vfs __obj = GLib.Object.GetObject(inst, false) as Vfs;
         __obj.OnAddWritableNamespaces(list == IntPtr.Zero ? null : (GLib.FileAttributeInfoList)GLib.Opaque.GetOpaque(list, typeof(GLib.FileAttributeInfoList), false));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
コード例 #4
0
 static void LocalFileAddInfo_cb(IntPtr inst, IntPtr filename, ulong device, IntPtr attribute_matcher, IntPtr info, IntPtr cancellable, IntPtr extra_data, out GLib.DestroyNotify free_extra_data)
 {
     try {
         Vfs __obj = GLib.Object.GetObject(inst, false) as Vfs;
         __obj.OnLocalFileAddInfo(GLib.Marshaller.Utf8PtrToString(filename), device, attribute_matcher == IntPtr.Zero ? null : (GLib.FileAttributeMatcher)GLib.Opaque.GetOpaque(attribute_matcher, typeof(GLib.FileAttributeMatcher), false), GLib.Object.GetObject(info) as GLib.FileInfo, GLib.Object.GetObject(cancellable) as GLib.Cancellable, extra_data, out free_extra_data);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #5
0
 static IntPtr DeserializeIcon_cb(IntPtr inst, IntPtr value)
 {
     try {
         Vfs        __obj = GLib.Object.GetObject(inst, false) as Vfs;
         GLib.IIcon __result;
         __result = __obj.OnDeserializeIcon(new GLib.Variant(value));
         return(__result == null ? IntPtr.Zero : ((__result is GLib.Object) ? (__result as GLib.Object).Handle : (__result as GLib.IconAdapter).Handle));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #6
0
 static bool IsActive_cb(IntPtr inst)
 {
     try {
         Vfs  __obj = GLib.Object.GetObject(inst, false) as Vfs;
         bool __result;
         __result = __obj.OnIsActive();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #7
0
 static IntPtr ParseName_cb(IntPtr inst, IntPtr parse_name)
 {
     try {
         Vfs        __obj = GLib.Object.GetObject(inst, false) as Vfs;
         GLib.IFile __result;
         __result = __obj.OnParseName(GLib.Marshaller.Utf8PtrToString(parse_name));
         return(__result == null ? IntPtr.Zero : ((__result is GLib.Object) ? (__result as GLib.Object).Handle : (__result as GLib.FileAdapter).Handle));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #8
0
        static bool LocalFileSetAttributes_cb(IntPtr inst, IntPtr filename, IntPtr info, int flags, IntPtr cancellable, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                Vfs  __obj = GLib.Object.GetObject(inst, false) as Vfs;
                bool __result;
                __result = __obj.OnLocalFileSetAttributes(GLib.Marshaller.Utf8PtrToString(filename), GLib.Object.GetObject(info) as GLib.FileInfo, (GLib.FileQueryInfoFlags)flags, GLib.Object.GetObject(cancellable) as GLib.Cancellable);
                return(__result);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }