Plugins/Purple Service/ESIRCService.m
changeset 2743 df2c24e3844c
parent 1408 0cbddb6a4b8d
child 2839 ecb36859abb9
     1.1 --- a/Plugins/Purple Service/ESIRCService.m	Sun Mar 29 19:21:28 2009 +0000
     1.2 +++ b/Plugins/Purple Service/ESIRCService.m	Sat Oct 17 17:35:57 2009 -0400
     1.3 @@ -111,4 +111,21 @@
     1.4  	return baseImage;
     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 nil; //xxx add small IRC icon
    1.19 +	} else {
    1.20 +		return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"irc"];		
    1.21 +	}
    1.22 +}
    1.23 +
    1.24  @end