Plugins/Purple Service/AIMobileMeService.m
changeset 2743 df2c24e3844c
parent 2103 89a96983d1b7
     1.1 --- a/Plugins/Purple Service/AIMobileMeService.m	Wed May 06 17:21:36 2009 -0700
     1.2 +++ b/Plugins/Purple Service/AIMobileMeService.m	Sat Oct 17 17:35:57 2009 -0400
     1.3 @@ -75,4 +75,21 @@
     1.4  					  forClass:[self class] loadLazily:YES];
     1.5  }
     1.6  
     1.7 +/*!
     1.8 + * @brief Path for default icon
     1.9 + *
    1.10 + * For use in message views, this is the path to a default icon as described above.
    1.11 + *
    1.12 + * @param iconType The AIServiceIconType of the icon to return.
    1.13 + * @return The path to the image, otherwise nil.
    1.14 + */
    1.15 +- (NSString *)pathForDefaultServiceIconOfType:(AIServiceIconType)iconType
    1.16 +{
    1.17 +	if ((iconType == AIServiceIconSmall) || (iconType == AIServiceIconList)) {
    1.18 +		return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"MobileMe-small"];
    1.19 +	} else {
    1.20 +		return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"MobileMe-large"];		
    1.21 +	}
    1.22 +}
    1.23 +
    1.24  @end