distribution_ = [[NSString stringWithUTF8String:index->GetDist().c_str()] retain];
type_ = [[NSString stringWithUTF8String:index->GetType()] retain];
- description_ = nil;
- label_ = nil;
- origin_ = nil;
- version_ = nil;
- defaultIcon_ = nil;
-
debReleaseIndex *dindex(dynamic_cast<debReleaseIndex *>(index));
if (dindex != NULL) {
std::ifstream release(dindex->MetaIndexFile("Release").c_str());
NSString *tagline_;
NSString *icon_;
NSString *homepage_;
+ NSString *depiction_;
Address *sponsor_;
Address *author_;
NSArray *tags_;
- (NSString *) tagline;
- (NSString *) icon;
- (NSString *) homepage;
+- (NSString *) depiction;
- (Address *) author;
- (NSArray *) relationships;
[icon_ release];
if (homepage_ != nil)
[homepage_ release];
+ if (depiction_ != nil)
+ [depiction_ release];
if (sponsor_ != nil)
[sponsor_ release];
if (author_ != nil)
}
+ (NSArray *) _attributeKeys {
- return [NSArray arrayWithObjects:@"author", @"description", @"essential", @"homepage", @"icon", @"id", @"installed", @"latest", @"maintainer", @"name", @"section", @"size", @"source", @"sponsor", @"tagline", nil];
+ return [NSArray arrayWithObjects:@"author", @"depiction", @"description", @"essential", @"homepage", @"icon", @"id", @"installed", @"latest", @"maintainer", @"name", @"section", @"size", @"source", @"sponsor", @"tagline", nil];
}
- (NSArray *) attributeKeys {
homepage_ = Scour("Website", begin, end);
if (homepage_ != nil)
homepage_ = [homepage_ retain];
+ depiction_ = Scour("Depiction", begin, end);
+ if (depiction_ != nil)
+ depiction_ = [depiction_ retain];
NSString *sponsor = Scour("Sponsor", begin, end);
if (sponsor != nil)
sponsor_ = [[Address addressWithString:sponsor] retain];
return homepage_;
}
+- (NSString *) depiction {
+ return depiction_;
+}
+
- (Address *) sponsor {
return sponsor_;
}
}
- (void) webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame {
+ if ([frame parentFrame] != nil)
+ return;
+
title_ = [title retain];
[self setTitle:title];
}