diff options
author | CodaFi <devteam.codafi@gmail.com> | 2014-08-16 12:11:02 -0600 |
---|---|---|
committer | CodaFi <devteam.codafi@gmail.com> | 2014-08-16 12:11:02 -0600 |
commit | 4958054e3cd65fe734e94d64d0ca1b8f8a36fe76 (patch) | |
tree | 3ea329a6b05c13400b96130f538a196e037c311f /src/objc/nntp | |
parent | a55de9f78bfdc1e93fdf98b55d61669c867232b0 (diff) |
Tests
Diffstat (limited to 'src/objc/nntp')
-rw-r--r-- | src/objc/nntp/MCONNTP.h | 2 | ||||
-rw-r--r-- | src/objc/nntp/MCONNTPArticleInfo.h (renamed from src/objc/nntp/MCONNTPMessageInfo.h) | 8 | ||||
-rw-r--r-- | src/objc/nntp/MCONNTPArticleInfo.mm (renamed from src/objc/nntp/MCONNTPMessageInfo.mm) | 16 | ||||
-rw-r--r-- | src/objc/nntp/MCONNTPFetchArticlesOperation.h | 4 | ||||
-rw-r--r-- | src/objc/nntp/MCONNTPSession.h | 2 |
5 files changed, 16 insertions, 16 deletions
diff --git a/src/objc/nntp/MCONNTP.h b/src/objc/nntp/MCONNTP.h index 20eb035b..a1328166 100644 --- a/src/objc/nntp/MCONNTP.h +++ b/src/objc/nntp/MCONNTP.h @@ -16,7 +16,7 @@ #include <MailCore/MCONNTPFetchArticleOperation.h> #include <MailCore/MCONNTPFetchArticlesOperation.h> #include <MailCore/MCONNTPListNewsgroupsOperation.h> -#include <MailCore/MCONNTPMessageInfo.h> +#include <MailCore/MCONNTPArticleInfo.h> #include <MailCore/MCONNTPGroupInfo.h> #endif diff --git a/src/objc/nntp/MCONNTPMessageInfo.h b/src/objc/nntp/MCONNTPArticleInfo.h index d4f06b04..5e2a6887 100644 --- a/src/objc/nntp/MCONNTPMessageInfo.h +++ b/src/objc/nntp/MCONNTPArticleInfo.h @@ -1,20 +1,20 @@ // -// MCONNTPMessageInfo.h +// MCONNTPArticleInfo.h // mailcore2 // // Created by Robert Widmann on 8/13/14. // Copyright (c) 2014 MailCore. All rights reserved. // -#ifndef MAILCORE_MCONNTPMESSAGEINFO_H +#ifndef MAILCORE_MCONNTPARTICLEINFO_H -#define MAILCORE_MCONNTPMESSAGEINFO_H +#define MAILCORE_MCONNTPARTICLEINFO_H #import <Foundation/Foundation.h> /** This is information of a message fetched by MCONNTPFetchArticlesOperation.*/ -@interface MCONNTPMessageInfo : NSObject <NSCopying> +@interface MCONNTPArticleInfo : NSObject <NSCopying> /** This is the index of a given message.*/ @property (nonatomic, assign) unsigned int index; diff --git a/src/objc/nntp/MCONNTPMessageInfo.mm b/src/objc/nntp/MCONNTPArticleInfo.mm index f69267ab..61f226f8 100644 --- a/src/objc/nntp/MCONNTPMessageInfo.mm +++ b/src/objc/nntp/MCONNTPArticleInfo.mm @@ -1,23 +1,23 @@ // -// MCONNTPMessageInfo.m +// MCONNTPArticleInfo.m // mailcore2 // // Created by Robert Widmann on 8/13/14. // Copyright (c) 2014 MailCore. All rights reserved. // -#import "MCONNTPMessageInfo.h" +#import "MCONNTPArticleInfo.h" #include "MCAsyncNNTP.h" #include "MCNNTP.h" #import "MCOUtils.h" -@implementation MCONNTPMessageInfo { - mailcore::NNTPMessageInfo * _nativeInfo; +@implementation MCONNTPArticleInfo { + mailcore::NNTPArticleInfo * _nativeInfo; } -#define nativeType mailcore::NNTPMessageInfo +#define nativeType mailcore::NNTPArticleInfo + (void) load { @@ -34,8 +34,8 @@ + (NSObject *) mco_objectWithMCObject:(mailcore::Object *)object { - mailcore::NNTPMessageInfo * folder = (mailcore::NNTPMessageInfo *) object; - return [[[self alloc] initWithMCNNTPMessageInfo:folder] autorelease]; + mailcore::NNTPArticleInfo * folder = (mailcore::NNTPArticleInfo *) object; + return [[[self alloc] initWithMCNNTPArticleInfo:folder] autorelease]; } - (mailcore::Object *) mco_mcObject @@ -48,7 +48,7 @@ return MCO_OBJC_BRIDGE_GET(description); } -- (id) initWithMCNNTPMessageInfo:(mailcore::NNTPMessageInfo *)info +- (id) initWithMCNNTPArticleInfo:(mailcore::NNTPArticleInfo *)info { self = [super init]; diff --git a/src/objc/nntp/MCONNTPFetchArticlesOperation.h b/src/objc/nntp/MCONNTPFetchArticlesOperation.h index bd28d99d..6d2a9dab 100644 --- a/src/objc/nntp/MCONNTPFetchArticlesOperation.h +++ b/src/objc/nntp/MCONNTPFetchArticlesOperation.h @@ -22,12 +22,12 @@ @param completionBlock Called when the operation is finished. - - On success `error` will be nil and `messages` will be an array of MCONNTPMessageInfo + - On success `error` will be nil and `messages` will be an array of MCONNTPArticleInfo - On failure, `error` will be set with `MCOErrorDomain` as domain and an error code available in MCOConstants.h, `messages` will be null */ -- (void) start:(void (^)(NSError * error, NSArray * /* MCONNTPMessageInfo */ messages))completionBlock; +- (void) start:(void (^)(NSError * error, NSArray * /* MCONNTPArticleInfo */ messages))completionBlock; @end diff --git a/src/objc/nntp/MCONNTPSession.h b/src/objc/nntp/MCONNTPSession.h index 6d6ea26f..89795087 100644 --- a/src/objc/nntp/MCONNTPSession.h +++ b/src/objc/nntp/MCONNTPSession.h @@ -70,7 +70,7 @@ MCONNTPFetchArticlesOperation * op = [session fetchMessagesOperation]; [op start:^(NSError * error, NSArray * messages) { - // messages is an array of MCONNTPMessageInfo + // messages is an array of MCONNTPArticleInfo // [info index] can be used as reference for a given message in the other operations. }]; */ |