Advertisement
baulig

NSUserNotification.g.cs

Nov 21st, 2012
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.57 KB | None | 0 0
  1. //
  2. // Auto-generated from generator.cs, do not edit
  3. //
  4. // We keep references to objects, so warning 414 is expected
  5.  
  6. #pragma warning disable 414
  7.  
  8. using System;
  9. using System.Drawing;
  10. using System.Runtime.CompilerServices;
  11. using System.Runtime.InteropServices;
  12. using System.Diagnostics;
  13. using System.ComponentModel;
  14. using MonoMac.CoreFoundation;
  15. using MonoMac.Foundation;
  16. using MonoMac.ObjCRuntime;
  17. using MonoMac.CoreGraphics;
  18. using MonoMac.CoreAnimation;
  19. using MonoMac.CoreLocation;
  20. using MonoMac.QTKit;
  21. using MonoMac.CoreVideo;
  22. using MonoMac.CoreMedia;
  23. using MonoMac.OpenGL;
  24.  
  25. namespace MonoMac.Foundation {
  26. [Register("NSUserNotification", true)]
  27. public unsafe partial class NSUserNotification : NSObject {
  28. [CompilerGenerated]
  29. static readonly IntPtr selTitle = Selector.GetHandle ("title");
  30. [CompilerGenerated]
  31. static readonly IntPtr selSetTitle_ = Selector.GetHandle ("setTitle:");
  32. [CompilerGenerated]
  33. static readonly IntPtr selSubtitle = Selector.GetHandle ("subtitle");
  34. [CompilerGenerated]
  35. static readonly IntPtr selSetSubtitle_ = Selector.GetHandle ("setSubtitle:");
  36. [CompilerGenerated]
  37. static readonly IntPtr selInformativeText = Selector.GetHandle ("informativeText");
  38. [CompilerGenerated]
  39. static readonly IntPtr selSetInformativeText_ = Selector.GetHandle ("setInformativeText:");
  40. [CompilerGenerated]
  41. static readonly IntPtr selActionButtonTitle = Selector.GetHandle ("actionButtonTitle");
  42. [CompilerGenerated]
  43. static readonly IntPtr selSetActionButtonTitle_ = Selector.GetHandle ("setActionButtonTitle:");
  44. [CompilerGenerated]
  45. static readonly IntPtr selUserInfo = Selector.GetHandle ("userInfo");
  46. [CompilerGenerated]
  47. static readonly IntPtr selSetUserInfo_ = Selector.GetHandle ("setUserInfo:");
  48. [CompilerGenerated]
  49. static readonly IntPtr selDeliveryDate = Selector.GetHandle ("deliveryDate");
  50. [CompilerGenerated]
  51. static readonly IntPtr selSetDeliveryDate_ = Selector.GetHandle ("setDeliveryDate:");
  52. [CompilerGenerated]
  53. static readonly IntPtr selDeliveryTimeZone = Selector.GetHandle ("deliveryTimeZone");
  54. [CompilerGenerated]
  55. static readonly IntPtr selSetDeliveryTimeZone_ = Selector.GetHandle ("setDeliveryTimeZone:");
  56. [CompilerGenerated]
  57. static readonly IntPtr selDeliveryRepeatInterval = Selector.GetHandle ("deliveryRepeatInterval");
  58. [CompilerGenerated]
  59. static readonly IntPtr selSetDeliveryRepeatInterval_ = Selector.GetHandle ("setDeliveryRepeatInterval:");
  60. [CompilerGenerated]
  61. static readonly IntPtr selActualDeliveryDate = Selector.GetHandle ("actualDeliveryDate");
  62. [CompilerGenerated]
  63. static readonly IntPtr selIsPresented = Selector.GetHandle ("isPresented");
  64. [CompilerGenerated]
  65. static readonly IntPtr selIsRemote = Selector.GetHandle ("isRemote");
  66. [CompilerGenerated]
  67. static readonly IntPtr selSoundName = Selector.GetHandle ("soundName");
  68. [CompilerGenerated]
  69. static readonly IntPtr selSetSoundName_ = Selector.GetHandle ("setSoundName:");
  70. [CompilerGenerated]
  71. static readonly IntPtr selHasActionButton = Selector.GetHandle ("hasActionButton");
  72. [CompilerGenerated]
  73. static readonly IntPtr selSetHasActionButton_ = Selector.GetHandle ("setHasActionButton:");
  74. [CompilerGenerated]
  75. static readonly IntPtr selActivationType = Selector.GetHandle ("activationType");
  76. [CompilerGenerated]
  77. static readonly IntPtr selOtherButtonTitle = Selector.GetHandle ("otherButtonTitle");
  78. [CompilerGenerated]
  79. static readonly IntPtr selSetOtherButtonTitle_ = Selector.GetHandle ("setOtherButtonTitle:");
  80.  
  81. [CompilerGenerated]
  82. static readonly IntPtr class_ptr = Class.GetHandle ("NSUserNotification");
  83.  
  84. public override IntPtr ClassHandle { get { return class_ptr; } }
  85.  
  86. [EditorBrowsable (EditorBrowsableState.Advanced)]
  87.  
  88. [Export ("init")]
  89. public NSUserNotification () : base (NSObjectFlag.Empty)
  90. {
  91. if (IsDirectBinding) {
  92. Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
  93. } else {
  94. Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
  95. }
  96. }
  97.  
  98. [EditorBrowsable (EditorBrowsableState.Advanced)]
  99.  
  100. [Export ("initWithCoder:")]
  101. public NSUserNotification (NSCoder coder) : base (NSObjectFlag.Empty)
  102. {
  103. if (IsDirectBinding) {
  104. Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle);
  105. } else {
  106. Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle);
  107. }
  108. }
  109.  
  110. [EditorBrowsable (EditorBrowsableState.Advanced)]
  111.  
  112. public NSUserNotification (NSObjectFlag t) : base (t) {}
  113.  
  114. [EditorBrowsable (EditorBrowsableState.Advanced)]
  115.  
  116. public NSUserNotification (IntPtr handle) : base (handle) {}
  117.  
  118. public virtual string Title {
  119. [Export ("title")]
  120. get {
  121. if (IsDirectBinding) {
  122. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selTitle));
  123. } else {
  124. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selTitle));
  125. }
  126. }
  127.  
  128. [Export ("setTitle:")]
  129. set {
  130. if (value == null)
  131. throw new ArgumentNullException ("value");
  132. var nsvalue = NSString.CreateNative (value);
  133.  
  134. if (IsDirectBinding) {
  135. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetTitle_, nsvalue);
  136. } else {
  137. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetTitle_, nsvalue);
  138. }
  139. NSString.ReleaseNative (nsvalue);
  140.  
  141. }
  142. }
  143.  
  144. public virtual string Subtitle {
  145. [Export ("subtitle")]
  146. get {
  147. if (IsDirectBinding) {
  148. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSubtitle));
  149. } else {
  150. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSubtitle));
  151. }
  152. }
  153.  
  154. [Export ("setSubtitle:")]
  155. set {
  156. if (value == null)
  157. throw new ArgumentNullException ("value");
  158. var nsvalue = NSString.CreateNative (value);
  159.  
  160. if (IsDirectBinding) {
  161. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSubtitle_, nsvalue);
  162. } else {
  163. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSubtitle_, nsvalue);
  164. }
  165. NSString.ReleaseNative (nsvalue);
  166.  
  167. }
  168. }
  169.  
  170. public virtual string InformativeText {
  171. [Export ("informativeText")]
  172. get {
  173. if (IsDirectBinding) {
  174. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selInformativeText));
  175. } else {
  176. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selInformativeText));
  177. }
  178. }
  179.  
  180. [Export ("setInformativeText:")]
  181. set {
  182. if (value == null)
  183. throw new ArgumentNullException ("value");
  184. var nsvalue = NSString.CreateNative (value);
  185.  
  186. if (IsDirectBinding) {
  187. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetInformativeText_, nsvalue);
  188. } else {
  189. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetInformativeText_, nsvalue);
  190. }
  191. NSString.ReleaseNative (nsvalue);
  192.  
  193. }
  194. }
  195.  
  196. public virtual string ActionButtonTitle {
  197. [Export ("actionButtonTitle")]
  198. get {
  199. if (IsDirectBinding) {
  200. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selActionButtonTitle));
  201. } else {
  202. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selActionButtonTitle));
  203. }
  204. }
  205.  
  206. [Export ("setActionButtonTitle:")]
  207. set {
  208. if (value == null)
  209. throw new ArgumentNullException ("value");
  210. var nsvalue = NSString.CreateNative (value);
  211.  
  212. if (IsDirectBinding) {
  213. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetActionButtonTitle_, nsvalue);
  214. } else {
  215. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetActionButtonTitle_, nsvalue);
  216. }
  217. NSString.ReleaseNative (nsvalue);
  218.  
  219. }
  220. }
  221.  
  222. [CompilerGenerated]
  223. object __mt_UserInfo_var;
  224. public virtual NSDictionary UserInfo {
  225. [Export ("userInfo")]
  226. get {
  227. NSDictionary ret;
  228. if (IsDirectBinding) {
  229. ret = (NSDictionary) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selUserInfo));
  230. } else {
  231. ret = (NSDictionary) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selUserInfo));
  232. }
  233. __mt_UserInfo_var = ret;
  234. return ret;
  235. }
  236.  
  237. [Export ("setUserInfo:")]
  238. set {
  239. if (value == null)
  240. throw new ArgumentNullException ("value");
  241. if (IsDirectBinding) {
  242. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetUserInfo_, value.Handle);
  243. } else {
  244. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetUserInfo_, value.Handle);
  245. }
  246. __mt_UserInfo_var = value;
  247. }
  248. }
  249.  
  250. [CompilerGenerated]
  251. object __mt_DeliveryDate_var;
  252. public virtual NSDate DeliveryDate {
  253. [Export ("deliveryDate")]
  254. get {
  255. NSDate ret;
  256. if (IsDirectBinding) {
  257. ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeliveryDate));
  258. } else {
  259. ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeliveryDate));
  260. }
  261. __mt_DeliveryDate_var = ret;
  262. return ret;
  263. }
  264.  
  265. [Export ("setDeliveryDate:")]
  266. set {
  267. if (value == null)
  268. throw new ArgumentNullException ("value");
  269. if (IsDirectBinding) {
  270. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDeliveryDate_, value.Handle);
  271. } else {
  272. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDeliveryDate_, value.Handle);
  273. }
  274. __mt_DeliveryDate_var = value;
  275. }
  276. }
  277.  
  278. [CompilerGenerated]
  279. object __mt_DeliveryTimeZone_var;
  280. public virtual NSTimeZone DeliveryTimeZone {
  281. [Export ("deliveryTimeZone")]
  282. get {
  283. NSTimeZone ret;
  284. if (IsDirectBinding) {
  285. ret = (NSTimeZone) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeliveryTimeZone));
  286. } else {
  287. ret = (NSTimeZone) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeliveryTimeZone));
  288. }
  289. __mt_DeliveryTimeZone_var = ret;
  290. return ret;
  291. }
  292.  
  293. [Export ("setDeliveryTimeZone:")]
  294. set {
  295. if (value == null)
  296. throw new ArgumentNullException ("value");
  297. if (IsDirectBinding) {
  298. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDeliveryTimeZone_, value.Handle);
  299. } else {
  300. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDeliveryTimeZone_, value.Handle);
  301. }
  302. __mt_DeliveryTimeZone_var = value;
  303. }
  304. }
  305.  
  306. [CompilerGenerated]
  307. object __mt_DeliveryRepeatInterval_var;
  308. public virtual NSDateComponents DeliveryRepeatInterval {
  309. [Export ("deliveryRepeatInterval")]
  310. get {
  311. NSDateComponents ret;
  312. if (IsDirectBinding) {
  313. ret = (NSDateComponents) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDeliveryRepeatInterval));
  314. } else {
  315. ret = (NSDateComponents) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDeliveryRepeatInterval));
  316. }
  317. __mt_DeliveryRepeatInterval_var = ret;
  318. return ret;
  319. }
  320.  
  321. [Export ("setDeliveryRepeatInterval:")]
  322. set {
  323. if (value == null)
  324. throw new ArgumentNullException ("value");
  325. if (IsDirectBinding) {
  326. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetDeliveryRepeatInterval_, value.Handle);
  327. } else {
  328. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetDeliveryRepeatInterval_, value.Handle);
  329. }
  330. __mt_DeliveryRepeatInterval_var = value;
  331. }
  332. }
  333.  
  334. [CompilerGenerated]
  335. object __mt_ActualDeliveryDate_var;
  336. public virtual NSDate ActualDeliveryDate {
  337. [Export ("actualDeliveryDate")]
  338. get {
  339. NSDate ret;
  340. if (IsDirectBinding) {
  341. ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selActualDeliveryDate));
  342. } else {
  343. ret = (NSDate) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selActualDeliveryDate));
  344. }
  345. __mt_ActualDeliveryDate_var = ret;
  346. return ret;
  347. }
  348.  
  349. }
  350.  
  351. public virtual bool Presented {
  352. [Export ("isPresented")]
  353. get {
  354. if (IsDirectBinding) {
  355. return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selIsPresented);
  356. } else {
  357. return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selIsPresented);
  358. }
  359. }
  360.  
  361. }
  362.  
  363. public virtual bool Remote {
  364. [Export ("isRemote")]
  365. get {
  366. if (IsDirectBinding) {
  367. return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selIsRemote);
  368. } else {
  369. return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selIsRemote);
  370. }
  371. }
  372.  
  373. }
  374.  
  375. public virtual string SoundName {
  376. [Export ("soundName")]
  377. get {
  378. if (IsDirectBinding) {
  379. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSoundName));
  380. } else {
  381. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSoundName));
  382. }
  383. }
  384.  
  385. [Export ("setSoundName:")]
  386. set {
  387. if (value == null)
  388. throw new ArgumentNullException ("value");
  389. var nsvalue = NSString.CreateNative (value);
  390.  
  391. if (IsDirectBinding) {
  392. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSoundName_, nsvalue);
  393. } else {
  394. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSoundName_, nsvalue);
  395. }
  396. NSString.ReleaseNative (nsvalue);
  397.  
  398. }
  399. }
  400.  
  401. public virtual bool HasActionButton {
  402. [Export ("hasActionButton")]
  403. get {
  404. if (IsDirectBinding) {
  405. return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selHasActionButton);
  406. } else {
  407. return MonoMac.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selHasActionButton);
  408. }
  409. }
  410.  
  411. [Export ("setHasActionButton:")]
  412. set {
  413. if (IsDirectBinding) {
  414. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_bool (this.Handle, selSetHasActionButton_, value);
  415. } else {
  416. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_bool (this.SuperHandle, selSetHasActionButton_, value);
  417. }
  418. }
  419. }
  420.  
  421. public virtual NSUserNotificationActivationType ActivationType {
  422. [Export ("activationType")]
  423. get {
  424. if (IsDirectBinding) {
  425. return (NSUserNotificationActivationType) MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selActivationType);
  426. } else {
  427. return (NSUserNotificationActivationType) MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selActivationType);
  428. }
  429. }
  430.  
  431. }
  432.  
  433. public virtual string OtherButtonTitle {
  434. [Export ("otherButtonTitle")]
  435. get {
  436. if (IsDirectBinding) {
  437. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selOtherButtonTitle));
  438. } else {
  439. return NSString.FromHandle (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selOtherButtonTitle));
  440. }
  441. }
  442.  
  443. [Export ("setOtherButtonTitle:")]
  444. set {
  445. if (value == null)
  446. throw new ArgumentNullException ("value");
  447. var nsvalue = NSString.CreateNative (value);
  448.  
  449. if (IsDirectBinding) {
  450. MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetOtherButtonTitle_, nsvalue);
  451. } else {
  452. MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetOtherButtonTitle_, nsvalue);
  453. }
  454. NSString.ReleaseNative (nsvalue);
  455.  
  456. }
  457. }
  458.  
  459. [CompilerGenerated]
  460. static readonly IntPtr Foundation_libraryHandle = Dlfcn.dlopen (Constants.FoundationLibrary, 0);
  461. [CompilerGenerated]
  462. static NSString _NSUserNotificationDefaultSoundName;
  463. public static NSString NSUserNotificationDefaultSoundName {
  464. get {
  465. if (_NSUserNotificationDefaultSoundName == null)
  466. _NSUserNotificationDefaultSoundName = Dlfcn.GetStringConstant (Foundation_libraryHandle, "NSUserNotificationDefaultSoundName");
  467. return _NSUserNotificationDefaultSoundName;
  468. }
  469. }
  470. protected override void Dispose (bool disposing)
  471. {
  472. __mt_UserInfo_var = null;
  473. __mt_DeliveryDate_var = null;
  474. __mt_DeliveryTimeZone_var = null;
  475. __mt_DeliveryRepeatInterval_var = null;
  476. __mt_ActualDeliveryDate_var = null;
  477. base.Dispose (disposing);
  478. }
  479. } /* class NSUserNotification */
  480. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement