Changeset 23382
- Timestamp:
- 05/09/2008 07:30:54 PM (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/Adium Framework/Source/AIAccount.m
r23375 r23382 1163 1163 return [[self preferenceForKey:KEY_ACCOUNT_PROXY_ENABLED group:GROUP_ACCOUNT_STATUS] boolValue]; 1164 1164 } 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 */ 1165 1169 - (void)setProxyEnabled:(BOOL)proxyEnabled 1166 1170 { 1167 1171 [self setPreference:[NSNumber numberWithBool:proxyEnabled] forKey:KEY_ACCOUNT_PROXY_ENABLED group:GROUP_ACCOUNT_STATUS]; 1168 1172 } 1173 /** 1174 * @brief Gets the type of the proxy (one of the defined AdiumProxyTypes) 1175 */ 1169 1176 - (AdiumProxyType)proxyType 1170 1177 { 1171 1178 return [[self preferenceForKey:KEY_ACCOUNT_PROXY_TYPE group:GROUP_ACCOUNT_STATUS] intValue]; 1172 1179 } 1180 /** 1181 * @brief Sets the proxy type (one of the defined AdiumProxyTypes) 1182 */ 1173 1183 - (void)setProxyType:(AdiumProxyType)type 1174 1184 { 1175 1185 [self setPreference:[NSNumber numberWithInt:type] forKey:KEY_ACCOUNT_PROXY_TYPE group:GROUP_ACCOUNT_STATUS]; 1176 1186 } 1187 /** 1188 * @brief Gets the proxy host as a string 1189 */ 1177 1190 - (NSString *)proxyHost 1178 1191 { 1179 1192 return [self preferenceForKey:KEY_ACCOUNT_PROXY_HOST group:GROUP_ACCOUNT_STATUS]; 1180 1193 } 1194 /** 1195 * @brief Sets the proxy host 1196 */ 1181 1197 - (void)setProxyHost:(NSString *)host 1182 1198 { 1183 1199 [self setPreference:host forKey:KEY_ACCOUNT_PROXY_HOST group:GROUP_ACCOUNT_STATUS]; 1184 1200 } 1201 /** 1202 * @brief Gets the proxy's port 1203 */ 1185 1204 - (int)proxyPort 1186 1205 { 1187 1206 return [[self preferenceForKey:KEY_ACCOUNT_PROXY_PORT group:GROUP_ACCOUNT_STATUS] intValue]; 1188 1207 } 1208 /** 1209 * @brief Set the port to which we should connect when connecting to the proxy 1210 */ 1189 1211 - (void)setProxyPort:(int)port 1190 1212 { 1191 1213 [self setPreference:[NSNumber numberWithInt:port] forKey:KEY_ACCOUNT_PROXY_PORT group:GROUP_ACCOUNT_STATUS]; 1192 1214 } 1215 /** 1216 * @brief Gets the username we use when connecting to the proxy 1217 */ 1193 1218 - (NSString *)proxyUsername 1194 1219 { 1195 1220 return [self preferenceForKey:KEY_ACCOUNT_PROXY_USERNAME group:GROUP_ACCOUNT_STATUS]; 1196 1221 } 1222 /** 1223 * @brief Sets the username we should use when connecting to the proxy 1224 */ 1197 1225 - (void)setProxyUsername:(NSString *)username 1198 1226 { 1199 1227 [self setPreference:username forKey:KEY_ACCOUNT_PROXY_USERNAME group:GROUP_ACCOUNT_STATUS]; 1200 1228 } 1229 /** 1230 * @brief Gets the password we use when connecting to the proxy 1231 */ 1201 1232 - (NSString *)proxyPassword 1202 1233 { 1203 1234 return [self preferenceForKey:KEY_ACCOUNT_PROXY_PASSWORD group:GROUP_ACCOUNT_STATUS]; 1204 1235 } 1236 /** 1237 * @brief Sets the password we should use when connecting to the proxy 1238 */ 1205 1239 - (void)setProxyPassword:(NSString *)proxyPassword 1206 1240 { … … 1208 1242 } 1209 1243 1244 /** 1245 * @brief Gets the proxy type for applescript (using the nice four-letter codes defined by AdiumProxyTypeApplescript) 1246 */ 1210 1247 - (AdiumProxyTypeApplescript)scriptingProxyType 1211 1248 { 1212 1249 return [self applescriptProxyType:[self proxyType]]; 1213 1250 } 1251 /** 1252 * @brief Sets the proxy type to one of the defined AdiumProxyTypeApplescripts 1253 */ 1214 1254 - (void)setScriptingProxyType:(AdiumProxyTypeApplescript)type 1215 1255 {