summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/foundation/NSCompoundPredicate.inc
blob: 5c889b45ff8feba00c2b842ce532995b048bcfa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{ Parsed from Foundation.framework NSCompoundPredicate.h }

{$ifdef TYPES}
{$ifndef NSCOMPOUNDPREDICATE_PAS_T}
{$define NSCOMPOUNDPREDICATE_PAS_T}

{ Constants }

const
  NSNotPredicateType = 0;
  NSAndPredicateType = 1;
  NSOrPredicateType = 2;

{ Types }
type
  NSCompoundPredicateType = NSUInteger;
  NSCompoundPredicateTypePtr = ^NSCompoundPredicateType;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSCOMPOUNDPREDICATE_PAS_R}
{$define NSCOMPOUNDPREDICATE_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSCOMPOUNDPREDICATE_PAS_F}
{$define NSCOMPOUNDPREDICATE_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSCOMPOUNDPREDICATE_PAS_S}
{$define NSCOMPOUNDPREDICATE_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSCompoundPredicate = objcclass;
  NSCompoundPredicatePointer = ^NSCompoundPredicate;
  NSCompoundPredicatePtr = NSCompoundPredicatePointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSCOMPOUNDPREDICATE_PAS_C}
{$define NSCOMPOUNDPREDICATE_PAS_C}

{ NSCompoundPredicate }
  NSCompoundPredicate = objcclass external (NSPredicate)
  private
    _reserved2: Pointer;
    _type: NSUInteger;
    _subpredicates: NSArray;
    
  public
    function initWithType_subpredicates(type_: NSCompoundPredicateType; subpredicates_: NSArray): id; message 'initWithType:subpredicates:';
    function compoundPredicateType: NSCompoundPredicateType; message 'compoundPredicateType';
    function subpredicates: NSArray; message 'subpredicates';
    class function andPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'andPredicateWithSubpredicates:';
    class function orPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'orPredicateWithSubpredicates:';
    class function notPredicateWithSubpredicate(predicate: NSPredicate): NSPredicate; message 'notPredicateWithSubpredicate:';
  end;

{$endif}
{$endif}