diff options
author | Robert Widmann <devteam.codafi@gmail.com> | 2014-10-22 17:56:20 -0600 |
---|---|---|
committer | Robert Widmann <devteam.codafi@gmail.com> | 2014-10-22 17:56:20 -0600 |
commit | a921472d7c3ba501fb4163bfce8e178ac64f9511 (patch) | |
tree | 991641e1dc9cd867180c118fa38c7841a54ea425 /src/objc/nntp | |
parent | f3561cc84b9c0a9efd82501ef8243660c7da84e9 (diff) |
Renaming and Fix Typos
Diffstat (limited to 'src/objc/nntp')
-rw-r--r-- | src/objc/nntp/MCONNTPSession.h | 16 | ||||
-rw-r--r-- | src/objc/nntp/MCONNTPSession.mm | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/objc/nntp/MCONNTPSession.h b/src/objc/nntp/MCONNTPSession.h index 63e7467b..566756a1 100644 --- a/src/objc/nntp/MCONNTPSession.h +++ b/src/objc/nntp/MCONNTPSession.h @@ -71,7 +71,7 @@ /** Returns an operation that will fetch the list of article numbers. - MCONNTPFetchArticlesOperation * op = [session fetchAllArticlesOperation]; + MCONNTPFetchArticlesOperation * op = [session fetchAllArticlesOperation:@"comp.lang.c"]; [op start:^(NSError * error, MCOIndexSet * articles) { }]; */ @@ -80,7 +80,7 @@ /** Returns an operation that will fetch the header of the given message. - MCONNTPFetchHeaderOperation * op = [session fetchHeaderOperationWithIndex:idx inGroup:@"Group"]; + MCONNTPFetchHeaderOperation * op = [session fetchHeaderOperationWithIndex:idx inGroup:@"comp.lang.c"]; [op start:^(NSError * error, MCOMessageHeader * header) { // header is the parsed header of the message. }]; @@ -90,7 +90,7 @@ /** Returns an operation that will fetch an overview (headers) for a set of messages. - MCONNTPFetchHeaderOperation * op = [session fetchOverviewOperationWithIndexes:indexes inGroup:@"Group"]; + MCONNTPFetchHeaderOperation * op = [session fetchOverviewOperationWithIndexes:indexes inGroup:@"comp.lang.c"]; [op start:^(NSError * error, NSArray * headers) { // headers are the parsed headers of each part of the overview. }]; @@ -100,7 +100,7 @@ /** Returns an operation that will fetch the content of the given message. - MCONNTPFetchArticleOperation * op = [session fetchArticleOperationWithIndex:idx inGroup:@"Group"]; + MCONNTPFetchArticleOperation * op = [session fetchArticleOperationWithIndex:idx inGroup:@"comp.lang.c"]; [op start:^(NSError * error, NSData * messageData) { // messageData is the RFC 822 formatted message data. }]; @@ -110,7 +110,7 @@ /** Returns an operation that will fetch the content of a message with the given messageID. - MCONNTPFetchArticleOperation * op = [session fetchArticleOperationWithMessageID:@"<26>" inGroup:@"Group"]; + MCONNTPFetchArticleOperation * op = [session fetchArticleOperationWithMessageID:@"<MessageID123@mail.google.com>" inGroup:@"comp.lang.c"]; [op start:^(NSError * error, NSData * messageData) { // messageData is the RFC 822 formatted message data. }]; @@ -120,11 +120,11 @@ /** Returns an operation that will fetch the server's date and time. - MCONNTPFetchArticleOperation * op = [session fetchServerTimeOperation]; - [op start:^(NSError * error, NSDate * serverTime) { + MCONNTPFetchArticleOperation * op = [session fetchServerDateOperation]; + [op start:^(NSError * error, NSDate * serverDate) { }]; */ -- (MCONNTPFetchServerTimeOperation *) fetchServerTimeOperation; +- (MCONNTPFetchServerTimeOperation *) fetchServerDateOperation; /** Returns an operation that will list all available newsgroups. diff --git a/src/objc/nntp/MCONNTPSession.mm b/src/objc/nntp/MCONNTPSession.mm index b9d3573c..10011e6e 100644 --- a/src/objc/nntp/MCONNTPSession.mm +++ b/src/objc/nntp/MCONNTPSession.mm @@ -150,8 +150,8 @@ MCO_OBJC_SYNTHESIZE_SCALAR(dispatch_queue_t, dispatch_queue_t, setDispatchQueue, return MCO_TO_OBJC_OP(coreOp); } -- (MCONNTPFetchServerTimeOperation *) fetchServerTimeOperation { - mailcore::NNTPFetchServerTimeOperation * coreOp = MCO_NATIVE_INSTANCE->fetchServerTimeOperation(); +- (MCONNTPFetchServerTimeOperation *) fetchServerDateOperation { + mailcore::NNTPFetchServerTimeOperation * coreOp = MCO_NATIVE_INSTANCE->fetchServerDateOperation(); return MCO_TO_OBJC_OP(coreOp); } |