summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/foundation/NSHost.inc
blob: c099c1cbbf7c80acc6f8189195bef05b763a9aad (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
{ Parsed from Foundation.framework NSHost.h }
{ Version: 2.1.4 - Sun Jan 2 15:08:57 CET 2011 }


{$ifdef TYPES}
{$ifndef NSHOST_PAS_T}
{$define NSHOST_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSHOST_PAS_R}
{$define NSHOST_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSHOST_PAS_F}
{$define NSHOST_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSHOST_PAS_S}
{$define NSHOST_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSHost = objcclass;
  NSHostPointer = ^NSHost;
  NSHostPtr = NSHostPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSHOST_PAS_C}
{$define NSHOST_PAS_C}

{ NSHost }
  NSHost = objcclass external (NSObject)
  private
    _names: NSArray;
    _addresses: NSArray;
    reserved: Pointer;
    
  public
    class function currentHost: NSHost; message 'currentHost';
    class function hostWithName(name_: NSString): NSHost; message 'hostWithName:';
    class function hostWithAddress(address_: NSString): NSHost; message 'hostWithAddress:';
    class procedure setHostCacheEnabled(flag: Boolean); message 'setHostCacheEnabled:';
    class function isHostCacheEnabled: Boolean; message 'isHostCacheEnabled';
    class procedure flushHostCache; message 'flushHostCache';
    function isEqualToHost(aHost: NSHost): Boolean; message 'isEqualToHost:';
    function name: NSString; message 'name';
    function names: NSArray; message 'names';
    function address: NSString; message 'address';
    function addresses: NSArray; message 'addresses';
    function localizedName: NSString; message 'localizedName';
  end;

{$endif}
{$endif}