diff options
author | Daryle Walker <dwalker07@yahoo.com> | 2015-12-29 15:31:30 -0500 |
---|---|---|
committer | Daryle Walker <dwalker07@yahoo.com> | 2015-12-29 15:31:30 -0500 |
commit | 0a06951d94e560268811c5f004574e56ba2c3e94 (patch) | |
tree | a1f7e80ae6d6657490469c477f8b71382b73f370 /src/async | |
parent | 264757704b219afff6c482954d2184b78dc311d1 (diff) |
Overload another method with extraneous group parameter.
Find another fetch-article-by-message-ID method that has an unnecessary
group parameter. Add an overload that omits that parameter. (This
method was found from attempting to compile the project.)
Diffstat (limited to 'src/async')
-rw-r--r-- | src/async/nntp/MCNNTPAsyncSession.cpp | 8 | ||||
-rw-r--r-- | src/async/nntp/MCNNTPAsyncSession.h | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/async/nntp/MCNNTPAsyncSession.cpp b/src/async/nntp/MCNNTPAsyncSession.cpp index 65fb23f6..a8c05d58 100644 --- a/src/async/nntp/MCNNTPAsyncSession.cpp +++ b/src/async/nntp/MCNNTPAsyncSession.cpp @@ -191,16 +191,20 @@ NNTPFetchArticleOperation * NNTPAsyncSession::fetchArticleOperation(String * gro return op; } -NNTPFetchArticleOperation * NNTPAsyncSession::fetchArticleByMessageIDOperation(String *groupName, String *messageID) +NNTPFetchArticleOperation * NNTPAsyncSession::fetchArticleByMessageIDOperation(String *messageID) { NNTPFetchArticleOperation * op = new NNTPFetchArticleOperation(); op->setSession(this); - op->setGroupName(groupName); op->setMessageID(messageID); op->autorelease(); return op; } +NNTPFetchArticleOperation * NNTPAsyncSession::fetchArticleByMessageIDOperation(String *groupName, String *messageID) +{ + return this->fetchArticleByMessageIDOperation(messageID); +} + NNTPFetchOverviewOperation * NNTPAsyncSession::fetchOverviewOperationWithIndexes(String * groupName, IndexSet * indexes) { NNTPFetchOverviewOperation * op = new NNTPFetchOverviewOperation(); diff --git a/src/async/nntp/MCNNTPAsyncSession.h b/src/async/nntp/MCNNTPAsyncSession.h index 8a5753d4..06133367 100644 --- a/src/async/nntp/MCNNTPAsyncSession.h +++ b/src/async/nntp/MCNNTPAsyncSession.h @@ -63,6 +63,7 @@ namespace mailcore { virtual NNTPFetchHeaderOperation * fetchHeaderOperation(String * groupName, unsigned int index); virtual NNTPFetchArticleOperation * fetchArticleOperation(String *groupName, unsigned int index); + virtual NNTPFetchArticleOperation * fetchArticleByMessageIDOperation(String * messageID); virtual NNTPFetchArticleOperation * fetchArticleByMessageIDOperation(String * groupname, String * messageID); virtual NNTPFetchOverviewOperation * fetchOverviewOperationWithIndexes(String * groupName, IndexSet * indexes); |