~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/maccore/src/Foundation/Enum.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// Enums.cs: enumeration definitions for Foundation
3
3
//
4
4
// Copyright 2009-2010, Novell, Inc.
 
5
// Copyright 2011, 2012 Xamarin Inc
5
6
//
6
7
// Permission is hereby granted, free of charge, to any person obtaining
7
8
// a copy of this software and associated documentation files (the
78
79
                Binary = 200
79
80
        }
80
81
 
 
82
        public enum NSPropertyListMutabilityOptions {
 
83
                Immutable = 0,
 
84
                MutableContainers = 1,
 
85
                MutableContainersAndLeaves = 2
 
86
        }
 
87
 
 
88
        // Should mirror NSPropertyListMutabilityOptions
 
89
        public enum NSPropertyListWriteOptions {
 
90
                Immutable = 0,
 
91
                MutableContainers = 1,
 
92
                MutableContainersAndLeaves = 2
 
93
        }
 
94
 
 
95
        // Should mirror NSPropertyListMutabilityOptions, but currently
 
96
        // not implemented (always use Immutable/0)
 
97
        public enum NSPropertyListReadOptions {
 
98
                Immutable = 0,
 
99
                MutableContainers = 1,
 
100
                MutableContainersAndLeaves = 2
 
101
        }
 
102
 
81
103
        public enum NSNetServicesStatus {
82
104
                UnknownError = -72000,
83
105
                CollisionError = -72001,
151
173
        public enum NSDataWritingOptions : uint {
152
174
                Atomic = 1,
153
175
 
154
 
                [Since (5,0)]
 
176
                WithoutOverwriting  = 2,
 
177
                        
 
178
                [Obsolete ("No longer available")]
155
179
                Coordinated = 1 << 2,
156
180
                        
157
181
                [Since (4,0)]
318
342
 
319
343
        [Flags]
320
344
        public enum NSComparisonPredicateOptions {
 
345
                None=0x00,
321
346
                CaseInsensitive=0x01,
322
347
                DiacriticInsensitive=0x02
323
348
        }       
377
402
                PrinterDescriptionDirectory = 20,
378
403
                SharedPublicDirectory = 21,
379
404
                PreferencePanesDirectory = 22,
 
405
                ApplicationScriptsDirectory = 23,
380
406
                ItemReplacementDirectory = 99,
381
407
                AllApplicationsDirectory = 100,
382
 
                AllLibrariesDirectory = 101
 
408
                AllLibrariesDirectory = 101,
 
409
                TrashDirectory = 102,
383
410
        }
384
411
 
385
412
        [Flags]
450
477
        public enum NSFileCoordinatorWritingOptions {
451
478
                ForDeleting = 1,
452
479
                ForMoving = 2,
453
 
                ForMerging = 4
 
480
                ForMerging = 4,
 
481
                ForReplacing = 8
454
482
        }
455
483
 
456
484
        [Flags]
463
491
        }
464
492
 
465
493
        public enum NSUbiquitousKeyValueStoreChangeReason {
466
 
                ServerChange, InitialSyncChange, QuotaViolationChange
 
494
                ServerChange, InitialSyncChange, QuotaViolationChange, AccountChange
467
495
        }
468
496
 
469
497
        [Flags]
523
551
                Atomic = 1 << 0,
524
552
                WithNameUpdating = 1 << 1
525
553
        }
 
554
 
 
555
        [Flags]
 
556
        public enum NSAttributedStringEnumeration {
 
557
                None = 0,
 
558
                Reverse = 1 << 1,
 
559
                LongestEffectiveRangeNotRequired = 1 << 20
 
560
        }
 
561
 
 
562
#if !MONOMAC
 
563
        // MonoMac AppKit redefines this with more values
 
564
        public enum NSUnderlineStyle {
 
565
                None, Single
 
566
        }
 
567
#endif
 
568
 
 
569
        public enum NSWritingDirection {
 
570
                Natural = -1, LeftToRight = 0, RightToLeft = -1
 
571
        }
 
572
 
 
573
        [Flags]
 
574
        public enum NSByteCountFormatterUnits {
 
575
                UseDefault      = 0,
 
576
                UseBytes        = 1 << 0,
 
577
                UseKB           = 1 << 1,
 
578
                UseMB           = 1 << 2,
 
579
                UseGB           = 1 << 3,
 
580
                UseTB           = 1 << 4,
 
581
                UsePB           = 1 << 5,
 
582
                UseEB           = 1 << 6,
 
583
                UseZB           = 1 << 7,
 
584
                UseYBOrHigher   = 0x0FF << 8,
 
585
                UseAll          = 0x0FFFF
 
586
        }
 
587
 
 
588
        public enum NSByteCountFormatterCountStyle {
 
589
                File, Memory, Decimal, Binary
 
590
        }
 
591
 
 
592
        [Flags]
 
593
        public enum NSUrlBookmarkCreationOptions {
 
594
                PreferFileIDResolution = 1 << 8,
 
595
                MinimalBookmark = 1 << 9,
 
596
                SuitableForBookmarkFile = 1 << 10,
 
597
                WithSecurityScope = 1 << 11,
 
598
                SecurityScopeAllowOnlyReadAccess = 1 << 12
 
599
        }
 
600
 
 
601
        [Flags]
 
602
        public enum NSUrlBookmarkResolutionOptions {
 
603
                WithoutUI = 1 << 8,
 
604
                WithoutMounting = 1 << 9,
 
605
                WithSecurityScope = 1 << 10,
 
606
        }
 
607
 
 
608
        public enum NSLigatureType {
 
609
                None, Default, All 
 
610
        }
 
611
        
 
612
        public enum NSDateComponentsWrappingBehavior {
 
613
                None = 0,
 
614
                WrapCalendarComponents = 1 << 0,
 
615
        }
 
616
 
 
617
        public enum NSUrlRequestNetworkServiceType {
 
618
                Default,
 
619
                VoIP,
 
620
                Video,
 
621
                Background,
 
622
                Voice
 
623
        }
526
624
}