Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Auto-generated from generator.cs, do not edit
- //
- // We keep references to objects, so warning 414 is expected
- #pragma warning disable 414
- using System;
- using System.Drawing;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- using System.Diagnostics;
- using System.ComponentModel;
- using MonoMac.CoreFoundation;
- using MonoMac.Foundation;
- using MonoMac.ObjCRuntime;
- using MonoMac.CoreGraphics;
- using MonoMac.CoreAnimation;
- using MonoMac.CoreLocation;
- using MonoMac.QTKit;
- using MonoMac.CoreVideo;
- using MonoMac.CoreMedia;
- using MonoMac.OpenGL;
- namespace MonoMac.Foundation {
- [Register("NSUserNotification", true)]
- public unsafe partial class NSUserNotification : NSObject {
- [CompilerGenerated]
- static readonly IntPtr selTitle = Selector.GetHandle ("title");
- [CompilerGenerated]
- static readonly IntPtr selSetTitle_ = Selector.GetHandle ("setTitle:");
- [CompilerGenerated]
- static readonly IntPtr selSubtitle = Selector.GetHandle ("subtitle");
- [CompilerGenerated]
- static readonly IntPtr selSetSubtitle_ = Selector.GetHandle ("setSubtitle:");
- [CompilerGenerated]
- static readonly IntPtr selInformativeText = Selector.GetHandle ("informativeText");
- [CompilerGenerated]
- static readonly IntPtr selSetInformativeText_ = Selector.GetHandle ("setInformativeText:");
- [CompilerGenerated]
- static readonly IntPtr selActionButtonTitle = Selector.GetHandle ("actionButtonTitle");
- [CompilerGenerated]
- static readonly IntPtr selSetActionButtonTitle_ = Selector.GetHandle ("setActionButtonTitle:");
- [CompilerGenerated]
- static readonly IntPtr selUserInfo = Selector.GetHandle ("userInfo");
- [CompilerGenerated]
- static readonly IntPtr selSetUserInfo_ = Selector.GetHandle ("setUserInfo:");
- [CompilerGenerated]
- static readonly IntPtr selDeliveryDate = Selector.GetHandle ("deliveryDate");
- [CompilerGenerated]
- static readonly IntPtr selSetDeliveryDate_ = Selector.GetHandle ("setDeliveryDate:");
- [CompilerGenerated]
- static readonly IntPtr selDeliveryTimeZone = Selector.GetHandle ("deliveryTimeZone");
- [CompilerGenerated]
- static readonly IntPtr selSetDeliveryTimeZone_ = Selector.GetHandle ("setDeliveryTimeZone:");
- [CompilerGenerated]
- static readonly IntPtr selDeliveryRepeatInterval = Selector.GetHandle ("deliveryRepeatInterval");
- [CompilerGenerated]
- static readonly IntPtr selSetDeliveryRepeatInterval_ = Selector.GetHandle ("setDeliveryRepeatInterval:");
- [CompilerGenerated]
- static readonly IntPtr selActualDeliveryDate = Selector.GetHandle ("actualDeliveryDate");
- [CompilerGenerated]
- static readonly IntPtr selIsPresented = Selector.GetHandle ("isPresented");
- [CompilerGenerated]
- static readonly IntPtr selIsRemote = Selector.GetHandle ("isRemote");
- [CompilerGenerated]
- static readonly IntPtr selSoundName = Selector.GetHandle ("soundName");
- [CompilerGenerated]
- static readonly IntPtr selSetSoundName_ = Selector.GetHandle ("setSoundName:");
- [CompilerGenerated]
- static readonly IntPtr selHasActionButton = Selector.GetHandle ("hasActionButton");
- [CompilerGenerated]
- static readonly IntPtr selSetHasActionButton_ = Selector.GetHandle ("setHasActionButton:");
- [CompilerGenerated]
- static readonly IntPtr selActivationType = Selector.GetHandle ("activationType");
- [CompilerGenerated]
- static readonly IntPtr selOtherButtonTitle = Selector.GetHandle ("otherButtonTitle");
- [CompilerGenerated]
- static readonly IntPtr selSetOtherButtonTitle_ = Selector.GetHandle ("setOtherButtonTitle:");
- [CompilerGenerated]
- static readonly IntPtr class_ptr = Class.GetHandle ("NSUserNotification");
- public override IntPtr ClassHandle { get { return class_ptr; } }
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("init")]
- public NSUserNotification () : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
- } else {
- Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
- }
- }
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public NSUserNotification (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle);
- } else {
- Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle);
- }
- }
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- public NSUserNotification (NSObjectFlag t) : base (t) {}
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- public NSUserNotification (IntPtr handle) : base (handle) {}
- public virtual string Title {
- [Export ("title")]
- get {
- if (IsDirectBinding) {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selTitle));
- } else {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selTitle));
- }
- }
- [Export ("setTitle:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- var nsvalue = NSString.CreateNative (value);
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetTitle_, nsvalue);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetTitle_, nsvalue);
- }
- NSString.ReleaseNative (nsvalue);
- }
- }
- public virtual string Subtitle {
- [Export ("subtitle")]
- get {
- if (IsDirectBinding) {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSubtitle));
- } else {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSubtitle));
- }
- }
- [Export ("setSubtitle:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- var nsvalue = NSString.CreateNative (value);
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSubtitle_, nsvalue);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSubtitle_, nsvalue);
- }
- NSString.ReleaseNative (nsvalue);
- }
- }
- public virtual string InformativeText {
- [Export ("informativeText")]
- get {
- if (IsDirectBinding) {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selInformativeText));
- } else {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selInformativeText));
- }
- }
- [Export ("setInformativeText:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- var nsvalue = NSString.CreateNative (value);
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetInformativeText_, nsvalue);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetInformativeText_, nsvalue);
- }
- NSString.ReleaseNative (nsvalue);
- }
- }
- public virtual string ActionButtonTitle {
- [Export ("actionButtonTitle")]
- get {
- if (IsDirectBinding) {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selActionButtonTitle));
- } else {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selActionButtonTitle));
- }
- }
- [Export ("setActionButtonTitle:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- var nsvalue = NSString.CreateNative (value);
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetActionButtonTitle_, nsvalue);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetActionButtonTitle_, nsvalue);
- }
- NSString.ReleaseNative (nsvalue);
- }
- }
- [CompilerGenerated]
- object __mt_UserInfo_var;
- public virtual NSDictionary UserInfo {
- [Export ("userInfo")]
- get {
- NSDictionary ret;
- if (IsDirectBinding) {
- ret = (NSDictionary) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selUserInfo));
- } else {
- ret = (NSDictionary) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selUserInfo));
- }
- __mt_UserInfo_var = ret;
- return ret;
- }
- [Export ("setUserInfo:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetUserInfo_, value.Handle);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetUserInfo_, value.Handle);
- }
- __mt_UserInfo_var = value;
- }
- }
- [CompilerGenerated]
- object __mt_DeliveryDate_var;
- public virtual NSDate DeliveryDate {
- [Export ("deliveryDate")]
- get {
- NSDate ret;
- if (IsDirectBinding) {
- ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeliveryDate));
- } else {
- ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeliveryDate));
- }
- __mt_DeliveryDate_var = ret;
- return ret;
- }
- [Export ("setDeliveryDate:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDeliveryDate_, value.Handle);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDeliveryDate_, value.Handle);
- }
- __mt_DeliveryDate_var = value;
- }
- }
- [CompilerGenerated]
- object __mt_DeliveryTimeZone_var;
- public virtual NSTimeZone DeliveryTimeZone {
- [Export ("deliveryTimeZone")]
- get {
- NSTimeZone ret;
- if (IsDirectBinding) {
- ret = (NSTimeZone) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeliveryTimeZone));
- } else {
- ret = (NSTimeZone) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeliveryTimeZone));
- }
- __mt_DeliveryTimeZone_var = ret;
- return ret;
- }
- [Export ("setDeliveryTimeZone:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDeliveryTimeZone_, value.Handle);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDeliveryTimeZone_, value.Handle);
- }
- __mt_DeliveryTimeZone_var = value;
- }
- }
- [CompilerGenerated]
- object __mt_DeliveryRepeatInterval_var;
- public virtual NSDateComponents DeliveryRepeatInterval {
- [Export ("deliveryRepeatInterval")]
- get {
- NSDateComponents ret;
- if (IsDirectBinding) {
- ret = (NSDateComponents) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeliveryRepeatInterval));
- } else {
- ret = (NSDateComponents) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeliveryRepeatInterval));
- }
- __mt_DeliveryRepeatInterval_var = ret;
- return ret;
- }
- [Export ("setDeliveryRepeatInterval:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDeliveryRepeatInterval_, value.Handle);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDeliveryRepeatInterval_, value.Handle);
- }
- __mt_DeliveryRepeatInterval_var = value;
- }
- }
- [CompilerGenerated]
- object __mt_ActualDeliveryDate_var;
- public virtual NSDate ActualDeliveryDate {
- [Export ("actualDeliveryDate")]
- get {
- NSDate ret;
- if (IsDirectBinding) {
- ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selActualDeliveryDate));
- } else {
- ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selActualDeliveryDate));
- }
- __mt_ActualDeliveryDate_var = ret;
- return ret;
- }
- }
- public virtual bool Presented {
- [Export ("isPresented")]
- get {
- if (IsDirectBinding) {
- return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selIsPresented);
- } else {
- return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selIsPresented);
- }
- }
- }
- public virtual bool Remote {
- [Export ("isRemote")]
- get {
- if (IsDirectBinding) {
- return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selIsRemote);
- } else {
- return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selIsRemote);
- }
- }
- }
- public virtual string SoundName {
- [Export ("soundName")]
- get {
- if (IsDirectBinding) {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSoundName));
- } else {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSoundName));
- }
- }
- [Export ("setSoundName:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- var nsvalue = NSString.CreateNative (value);
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSoundName_, nsvalue);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSoundName_, nsvalue);
- }
- NSString.ReleaseNative (nsvalue);
- }
- }
- public virtual bool HasActionButton {
- [Export ("hasActionButton")]
- get {
- if (IsDirectBinding) {
- return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selHasActionButton);
- } else {
- return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selHasActionButton);
- }
- }
- [Export ("setHasActionButton:")]
- set {
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_bool (this.Handle, selSetHasActionButton_, value);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_bool (this.SuperHandle, selSetHasActionButton_, value);
- }
- }
- }
- public virtual NSUserNotificationActivationType ActivationType {
- [Export ("activationType")]
- get {
- if (IsDirectBinding) {
- return (NSUserNotificationActivationType) MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selActivationType);
- } else {
- return (NSUserNotificationActivationType) MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selActivationType);
- }
- }
- }
- public virtual string OtherButtonTitle {
- [Export ("otherButtonTitle")]
- get {
- if (IsDirectBinding) {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selOtherButtonTitle));
- } else {
- return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selOtherButtonTitle));
- }
- }
- [Export ("setOtherButtonTitle:")]
- set {
- if (value == null)
- throw new ArgumentNullException ("value");
- var nsvalue = NSString.CreateNative (value);
- if (IsDirectBinding) {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetOtherButtonTitle_, nsvalue);
- } else {
- MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetOtherButtonTitle_, nsvalue);
- }
- NSString.ReleaseNative (nsvalue);
- }
- }
- [CompilerGenerated]
- static readonly IntPtr Foundation_libraryHandle = Dlfcn.dlopen (Constants.FoundationLibrary, 0);
- [CompilerGenerated]
- static NSString _NSUserNotificationDefaultSoundName;
- public static NSString NSUserNotificationDefaultSoundName {
- get {
- if (_NSUserNotificationDefaultSoundName == null)
- _NSUserNotificationDefaultSoundName = Dlfcn.GetStringConstant (Foundation_libraryHandle, "NSUserNotificationDefaultSoundName");
- return _NSUserNotificationDefaultSoundName;
- }
- }
- protected override void Dispose (bool disposing)
- {
- __mt_UserInfo_var = null;
- __mt_DeliveryDate_var = null;
- __mt_DeliveryTimeZone_var = null;
- __mt_DeliveryRepeatInterval_var = null;
- __mt_ActualDeliveryDate_var = null;
- base.Dispose (disposing);
- }
- } /* class NSUserNotification */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement