aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc
diff options
context:
space:
mode:
authorGravatar Daryle Walker <dwalker07@yahoo.com>2016-02-25 15:10:40 -0500
committerGravatar Daryle Walker <dwalker07@yahoo.com>2016-02-25 15:10:40 -0500
commit38cae4a0a329da2618c212f545d3d8e10417af72 (patch)
treed2afc5513347158512a2a53159a922ed619f65c0 /src/objc
parent627cd1cfbde93e2edda6ffe5f37226ea278b0019 (diff)
Replace NNTP "send" with "post".
Diffstat (limited to 'src/objc')
-rw-r--r--src/objc/nntp/MCONNTP.h2
-rw-r--r--src/objc/nntp/MCONNTPPostOperation.h (renamed from src/objc/nntp/MCONNTPSendOperation.h)8
-rw-r--r--src/objc/nntp/MCONNTPPostOperation.mm (renamed from src/objc/nntp/MCONNTPSendOperation.mm)22
-rw-r--r--src/objc/nntp/MCONNTPSession.h14
-rw-r--r--src/objc/nntp/MCONNTPSession.mm10
5 files changed, 28 insertions, 28 deletions
diff --git a/src/objc/nntp/MCONNTP.h b/src/objc/nntp/MCONNTP.h
index 213384c4..62442c2a 100644
--- a/src/objc/nntp/MCONNTP.h
+++ b/src/objc/nntp/MCONNTP.h
@@ -18,7 +18,7 @@
#include <MailCore/MCONNTPListNewsgroupsOperation.h>
#include <MailCore/MCONNTPFetchOverviewOperation.h>
#include <MailCore/MCONNTPFetchServerTimeOperation.h>
-#include <MailCore/MCONNTPSendOperation.h>
+#include <MailCore/MCONNTPPostOperation.h>
#include <MailCore/MCONNTPGroupInfo.h>
#endif
diff --git a/src/objc/nntp/MCONNTPSendOperation.h b/src/objc/nntp/MCONNTPPostOperation.h
index 711e44a5..a2447e70 100644
--- a/src/objc/nntp/MCONNTPSendOperation.h
+++ b/src/objc/nntp/MCONNTPPostOperation.h
@@ -1,20 +1,20 @@
//
-// MCONNTPSendOperation.h
+// MCONNTPPostOperation.h
// mailcore2
//
// Created by Daryle Walker on 2/21/16.
// Copyright © 2016 MailCore. All rights reserved.
//
-#ifndef MAILCORE_MCONNTPSENDOPERATION_H
+#ifndef MAILCORE_MCONNTPPOSTOPERATION_H
-#define MAILCORE_MCONNTPSENDOPERATION_H
+#define MAILCORE_MCONNTPPOSTOPERATION_H
#import <Foundation/Foundation.h>
#import <MailCore/MCONNTPOperation.h>
NS_ASSUME_NONNULL_BEGIN
-@interface MCONNTPSendOperation : MCONNTPOperation
+@interface MCONNTPPostOperation : MCONNTPOperation
/** This block will be called as data is downloaded from the network */
@property (nonatomic, copy) MCONNTPOperationProgressBlock progress;
diff --git a/src/objc/nntp/MCONNTPSendOperation.mm b/src/objc/nntp/MCONNTPPostOperation.mm
index db1277af..f5009afa 100644
--- a/src/objc/nntp/MCONNTPSendOperation.mm
+++ b/src/objc/nntp/MCONNTPPostOperation.mm
@@ -1,35 +1,35 @@
//
-// MCONNTPSendOperation.mm
+// MCONNTPPostOperation.mm
// mailcore2
//
// Created by Daryle Walker on 2/21/16.
// Copyright © 2016 MailCore. All rights reserved.
//
-#import "MCONNTPSendOperation.h"
+#import "MCONNTPPostOperation.h"
#import "MCAsyncNNTP.h"
#import "MCOUtils.h"
#import "MCOOperation+Private.h"
-#define nativeType mailcore::NNTPSendOperation
+#define nativeType mailcore::NNTPPostOperation
typedef void (^CompletionType)(NSError *error);
-@interface MCONNTPSendOperation ()
+@interface MCONNTPPostOperation ()
- (void) bodyProgress:(unsigned int)current maximum:(unsigned int)maximum;
@end
-class MCONNTPSendOperationCallback : public mailcore::NNTPOperationCallback {
+class MCONNTPPostOperationCallback : public mailcore::NNTPOperationCallback {
public:
- MCONNTPSendOperationCallback(MCONNTPSendOperation * op)
+ MCONNTPPostOperationCallback(MCONNTPPostOperation * op)
{
mOperation = op;
}
- virtual ~MCONNTPSendOperationCallback()
+ virtual ~MCONNTPPostOperationCallback()
{
}
@@ -38,12 +38,12 @@ public:
}
private:
- MCONNTPSendOperation * mOperation;
+ MCONNTPPostOperation * mOperation;
};
-@implementation MCONNTPSendOperation {
+@implementation MCONNTPPostOperation {
CompletionType _completionBlock;
- MCONNTPSendOperationCallback * _popCallback;
+ MCONNTPPostOperationCallback * _popCallback;
MCONNTPOperationProgressBlock _progress;
}
@@ -64,7 +64,7 @@ private:
{
self = [super initWithMCOperation:op];
- _popCallback = new MCONNTPSendOperationCallback(self);
+ _popCallback = new MCONNTPPostOperationCallback(self);
((mailcore::NNTPOperation *) op)->setNNTPCallback(_popCallback);
return self;
diff --git a/src/objc/nntp/MCONNTPSession.h b/src/objc/nntp/MCONNTPSession.h
index 84b1c5e7..19fe5ff4 100644
--- a/src/objc/nntp/MCONNTPSession.h
+++ b/src/objc/nntp/MCONNTPSession.h
@@ -20,7 +20,7 @@
@class MCONNTPListNewsgroupsOperation;
@class MCONNTPFetchOverviewOperation;
@class MCONNTPFetchServerTimeOperation;
-@class MCONNTPSendOperation;
+@class MCONNTPPostOperation;
@class MCONNTPOperation;
@class MCOIndexSet;
@@ -183,30 +183,30 @@ NS_ASSUME_NONNULL_BEGIN
- (MCONNTPListNewsgroupsOperation *) listDefaultNewsgroupsOperation;
/**
- Returns an operation that will send the given message through NNTP.
+ Returns an operation that will post the given message through NNTP.
It will use the newsgroups set in the message data.
It will also filter out Bcc from the content of the message.
Generate RFC 822 data using MCOMessageBuilder
- MCONNTPOperation * op = [session sendOperationWithData:rfc822Data];
+ MCONNTPOperation * op = [session postOperationWithData:rfc822Data];
[op start:^(NSError * __nullable error) {
...
}];
*/
-- (MCONNTPSendOperation *) sendOperationWithData:(NSData *)messageData;
+- (MCONNTPPostOperation *) postOperationWithData:(NSData *)messageData;
/**
- Returns an operation that will send the message from the given file through NNTP.
+ Returns an operation that will post the message from the given file through NNTP.
It will use the newsgroups set in the message data.
It will also filter out Bcc from the content of the message.
- MCONNTPOperation * op = [session sendOperationWithContentsOfFile:rfc822DataFilename];
+ MCONNTPOperation * op = [session postOperationWithContentsOfFile:rfc822DataFilename];
[op start:^(NSError * __nullable error) {
...
}];
*/
-- (MCONNTPSendOperation *) sendOperationWithContentsOfFile:(NSString *)path;
+- (MCONNTPPostOperation *) postOperationWithContentsOfFile:(NSString *)path;
/**
Returns an operation that will disconnect the session.
diff --git a/src/objc/nntp/MCONNTPSession.mm b/src/objc/nntp/MCONNTPSession.mm
index 4a6e0c9a..f873cff9 100644
--- a/src/objc/nntp/MCONNTPSession.mm
+++ b/src/objc/nntp/MCONNTPSession.mm
@@ -14,7 +14,7 @@
#import "MCONNTPOperation.h"
#import "MCOOperation+Private.h"
#import "MCONNTPFetchAllArticlesOperation.h"
-#import "MCONNTPSendOperation.h"
+#import "MCONNTPPostOperation.h"
#import "MCONNTPOperation+Private.h"
#include "MCOperationQueueCallback.h"
@@ -206,14 +206,14 @@ MCO_OBJC_SYNTHESIZE_SCALAR(dispatch_queue_t, dispatch_queue_t, setDispatchQueue,
return MCO_TO_OBJC_OP(coreOp);
}
-- (MCONNTPSendOperation *) sendOperationWithData:(NSData *)messageData {
- mailcore::NNTPSendOperation * coreOp = MCO_NATIVE_INSTANCE->sendMessageOperation(MCO_FROM_OBJC(mailcore::Data, messageData));
+- (MCONNTPPostOperation *) postOperationWithData:(NSData *)messageData {
+ mailcore::NNTPPostOperation * coreOp = MCO_NATIVE_INSTANCE->postMessageOperation(MCO_FROM_OBJC(mailcore::Data, messageData));
return MCO_TO_OBJC_OP(coreOp);
}
-- (MCONNTPSendOperation *) sendOperationWithContentsOfFile:(NSString *)path
+- (MCONNTPPostOperation *) postOperationWithContentsOfFile:(NSString *)path
{
- mailcore::NNTPSendOperation * coreOp = MCO_NATIVE_INSTANCE->sendMessageOperation(MCO_FROM_OBJC(mailcore::String, path));
+ mailcore::NNTPPostOperation * coreOp = MCO_NATIVE_INSTANCE->postMessageOperation(MCO_FROM_OBJC(mailcore::String, path));
return MCO_TO_OBJC_OP(coreOp);
}