Skip to content

Commit

Permalink
add QMailElement to example
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm authored and escoz committed Aug 16, 2013
1 parent f2bbef3 commit aa9c63a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sample/SampleDataBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,21 @@ + (QElement *)createSelectRoot
return root;
}

+ (QRootElement *)createMailRoot {
QRootElement *root = [[QRootElement alloc] init];
root.title = @"Mail";

QMailElement *element1 = [[QMailElement alloc] initWithTitle:@"Contact escoz" subject:@"Hello Escoz" messageBody:@"Dear Escoz" toRecipients:@[@"[email protected]"] ccRecipients:nil bccRecipients:nil];
QMailElement *element2 = [[QMailElement alloc] initWithTitle:@"Contact flyerhzm" subject:@"Hello Richard" messageBody:@"Dear Richard" toRecipients:@[@"[email protected]"] ccRecipients:nil bccRecipients:nil];

QSection *section = [[QSection alloc] init];
[section addElement:element1];
[section addElement:element2];

[root addSection:section];
return root;
}

+ (QRootElement *)createWebAndMapRoot {
QRootElement *root = [[QRootElement alloc] init];
root.controllerName = @"ExampleViewController";
Expand Down Expand Up @@ -720,6 +735,7 @@ + (QRootElement *)create {
[sectionElements addElement:[[QRootElement alloc] initWithJSONFile:@"navigation"]];
[sectionElements addElement:[self createPickerRoot]];
[sectionElements addElement:[self createSelectRoot]];
[sectionElements addElement:[self createMailRoot]];
[sectionElements addElement:[self createWebAndMapRoot]];
[sectionElements addElement:[self createTextRoot]];
[sectionElements addElement:[self createDateTimeRoot]];
Expand Down

0 comments on commit aa9c63a

Please sign in to comment.