the very simple test app that calls the ZXingWidget
[zxing.git] / iphone / Classes / TextParsedResult.m
index edf789a..1572456 100644 (file)
  */
 
 #import "TextParsedResult.h"
+#import "EmailAction.h"
 
 
 @implementation TextParsedResult
 
 @synthesize text;
 
-- initWithString:(NSString *)s {
+- (id)initWithString:(NSString *)s {
   if ((self  = [super init]) != nil) {
     self.text = s;
   }
   return self;
 }
 
-+ parsedResultForString:(NSString *)s {
-  return [[[self alloc] initWithString:s] autorelease];
++ (NSString *)typeName {
+  return NSLocalizedString(@"TextParsedResult type name", @"Text");
 }
 
-+ (NSString *)typeName {
-  return @"TEXT";
+- (UIImage *)icon {
+  return [UIImage imageNamed:@"text.png"];
 }
 
 - (NSString *)stringForDisplay {
@@ -46,6 +47,7 @@
 }
 
 - (void) populateActions {
+  //[actions addObject:[EmailAction actionWithRecipient:@"recipient@domain" subject:@"QR Code Contents" body:text]];
 }
 
 - (void)dealloc {