root/Trunk/AIUtilities.framework/Versions/A/Headers/AISystemNetworkDefaults.h @ 2

Revision 2, 1.5 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1/*
2 * @file AISystemNetworkDefaults.h
3 */
4
5//
6//  AISystemNetworkDefaults.h
7//  Adium
8//
9//  Created by Evan Schoenberg on Fri Jun 25 2004.
10//  Copyright (c) 2004-2005 The Adium Team. All rights reserved.
11//
12
13/*
14 * Proxy types for <tt>AISystemNetworkDefaults</tt>
15 */
16typedef enum
17{
18        Proxy_None              = 0, /**< No proxy */
19        Proxy_HTTP              = 1, /**< HTTP proxy */
20        Proxy_HTTPS             = 2, /**< HTTPS proxy */
21        Proxy_SOCKS4    = 3, /**< SOCKS4 proxy */
22        Proxy_SOCKS5    = 4, /**< SOCKS5 proxy */
23        Proxy_FTP               = 5, /**< FTP proxy */
24        Proxy_RTSP              = 6  /**< RTSP proxy */
25} ProxyType;
26
27/*!
28 * @class AISystemNetworkDefaults
29 * @brief Class to provide easy access to the systemwide network proxy settings of each type
30*/
31@interface AISystemNetworkDefaults : NSObject {
32
33}
34
35/*!
36 * @brief Retrieve systemwide proxy settings for a type of proxy
37 *
38 * Retrieve systemwide proxy settings for <b>proxyType</b>.
39 * @param proxyType The type of proxy for which to retrieve settings.  ProxyType should be one of Proxy_None, Proxy_HTTP, Proxy_HTTPS, Proxy_SOCKS4, Proxy_SOCKS5, Proxy_FTP, Proxy_RTSP, or Proxy_Gopher.
40 * @result An <tt>NSDictionary</tt> containing the settings for that proxy type, or nil if no proxy is configured for that type.  The dictionary has the host as an NSString in the key @"Host", the port as an NSNumber in the key @"Port", and, if they are present, the username and password as NSStrings in @"Username" and @"Password" respectively.
41*/
42+ (NSDictionary *)systemProxySettingsDictionaryForType:(ProxyType)proxyType;
43
44@end
Note: See TracBrowser for help on using the browser.