* qt/Makfile.am:
[platform/upstream/dbus.git] / mono / MethodReturn.cs
1 namespace DBus
2 {
3   using System;
4   using System.Runtime.InteropServices;
5   using System.Diagnostics;
6   
7   public class MethodReturn : Message
8   {
9     private MethodReturn() : base(MessageType.MethodReturn)
10     {
11     }    
12
13     internal MethodReturn(IntPtr rawMessage, Service service) : base(rawMessage, service)
14     {
15     }
16     
17     public MethodReturn(MethodCall methodCall)
18     {
19       this.service = methodCall.Service;
20       
21       RawMessage = dbus_message_new_method_return(methodCall.RawMessage);
22       
23       if (RawMessage == IntPtr.Zero) {
24         throw new OutOfMemoryException();
25       }
26       
27       dbus_message_unref(RawMessage);
28     }
29     
30     public new string PathName
31     {
32       get
33         {
34           return base.PathName;
35         }
36     }
37
38     public new string InterfaceName
39     {
40       get
41         {
42           return base.InterfaceName;
43         }
44     }
45
46     public new string Name
47     {
48       get
49         {
50           return base.Name;
51         }
52     }
53     
54     [DllImport("dbus-1")]
55     private extern static IntPtr dbus_message_new_method_return(IntPtr rawMessage);
56   }
57 }