Plugins/Twitter Plugin/AILaconicaService.m
changeset 2632 4e544bf1b994
parent 2611 e58681b42944
     1.1 --- a/Plugins/Twitter Plugin/AILaconicaService.m	Fri Oct 16 09:56:21 2009 -0400
     1.2 +++ b/Plugins/Twitter Plugin/AILaconicaService.m	Sat Oct 17 17:35:57 2009 -0400
     1.3 @@ -102,5 +102,21 @@
     1.4  	}
     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:@"laconica-small"];
    1.19 +	} else {
    1.20 +		return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"laconica"];		
    1.21 +	}
    1.22 +}
    1.23  
    1.24  @end