Adium

Changeset 23382

Show
Ignore:
Timestamp:
05/09/2008 07:30:54 PM (7 months ago)
Author:
applmak
Message:

Added documentation for the new proxy-controlling applescript methods

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/Source/AIAccount.m

    r23375 r23382  
    11631163        return [[self preferenceForKey:KEY_ACCOUNT_PROXY_ENABLED group:GROUP_ACCOUNT_STATUS] boolValue]; 
    11641164} 
     1165/** 
     1166 * @brief Sets whether or not the proxy is enabled for this account. 
     1167 * This does not change the proxy setting immediately, a disconnect and reconnect is still required. 
     1168 */ 
    11651169- (void)setProxyEnabled:(BOOL)proxyEnabled 
    11661170{ 
    11671171        [self setPreference:[NSNumber numberWithBool:proxyEnabled] forKey:KEY_ACCOUNT_PROXY_ENABLED group:GROUP_ACCOUNT_STATUS]; 
    11681172} 
     1173/** 
     1174 * @brief Gets the type of the proxy (one of the defined AdiumProxyTypes) 
     1175 */ 
    11691176- (AdiumProxyType)proxyType 
    11701177{ 
    11711178        return [[self preferenceForKey:KEY_ACCOUNT_PROXY_TYPE group:GROUP_ACCOUNT_STATUS] intValue]; 
    11721179} 
     1180/** 
     1181 * @brief Sets the proxy type (one of the defined AdiumProxyTypes) 
     1182 */ 
    11731183- (void)setProxyType:(AdiumProxyType)type 
    11741184{ 
    11751185        [self setPreference:[NSNumber numberWithInt:type] forKey:KEY_ACCOUNT_PROXY_TYPE group:GROUP_ACCOUNT_STATUS]; 
    11761186} 
     1187/** 
     1188 * @brief Gets the proxy host as a string 
     1189 */ 
    11771190- (NSString *)proxyHost 
    11781191{ 
    11791192        return [self preferenceForKey:KEY_ACCOUNT_PROXY_HOST group:GROUP_ACCOUNT_STATUS]; 
    11801193} 
     1194/** 
     1195 * @brief Sets the proxy host 
     1196 */ 
    11811197- (void)setProxyHost:(NSString *)host 
    11821198{ 
    11831199        [self setPreference:host forKey:KEY_ACCOUNT_PROXY_HOST group:GROUP_ACCOUNT_STATUS]; 
    11841200} 
     1201/** 
     1202 * @brief Gets the proxy's port 
     1203 */ 
    11851204- (int)proxyPort 
    11861205{ 
    11871206        return [[self preferenceForKey:KEY_ACCOUNT_PROXY_PORT group:GROUP_ACCOUNT_STATUS] intValue]; 
    11881207} 
     1208/** 
     1209 * @brief Set the port to which we should connect when connecting to the proxy 
     1210 */ 
    11891211- (void)setProxyPort:(int)port 
    11901212{ 
    11911213        [self setPreference:[NSNumber numberWithInt:port] forKey:KEY_ACCOUNT_PROXY_PORT group:GROUP_ACCOUNT_STATUS]; 
    11921214} 
     1215/** 
     1216 * @brief Gets the username we use when connecting to the proxy 
     1217 */ 
    11931218- (NSString *)proxyUsername 
    11941219{ 
    11951220        return [self preferenceForKey:KEY_ACCOUNT_PROXY_USERNAME group:GROUP_ACCOUNT_STATUS]; 
    11961221} 
     1222/** 
     1223 * @brief Sets the username we should use when connecting to the proxy 
     1224 */ 
    11971225- (void)setProxyUsername:(NSString *)username 
    11981226{ 
    11991227        [self setPreference:username forKey:KEY_ACCOUNT_PROXY_USERNAME group:GROUP_ACCOUNT_STATUS]; 
    12001228} 
     1229/** 
     1230 * @brief Gets the password we use when connecting to the proxy 
     1231 */ 
    12011232- (NSString *)proxyPassword 
    12021233{ 
    12031234        return [self preferenceForKey:KEY_ACCOUNT_PROXY_PASSWORD group:GROUP_ACCOUNT_STATUS]; 
    12041235} 
     1236/** 
     1237 * @brief Sets the password we should use when connecting to the proxy 
     1238 */ 
    12051239- (void)setProxyPassword:(NSString *)proxyPassword 
    12061240{ 
     
    12081242} 
    12091243 
     1244/** 
     1245 * @brief Gets the proxy type for applescript (using the nice four-letter codes defined by AdiumProxyTypeApplescript) 
     1246 */ 
    12101247- (AdiumProxyTypeApplescript)scriptingProxyType 
    12111248{ 
    12121249        return [self applescriptProxyType:[self proxyType]]; 
    12131250} 
     1251/** 
     1252 * @brief Sets the proxy type to one of the defined AdiumProxyTypeApplescripts 
     1253 */ 
    12141254- (void)setScriptingProxyType:(AdiumProxyTypeApplescript)type 
    12151255{