-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for moveMessagesOperation to java library (#1749)
- Loading branch information
Showing
6 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.libmailcore; | ||
|
||
import java.util.Map; | ||
|
||
/** Operation to move IMAP messages. */ | ||
public class IMAPMoveMessagesOperation extends IMAPOperation { | ||
/** | ||
Returns a map of the UIDs of the messages in the source folder to the UIDs of | ||
the messages in the destination folder. | ||
*/ | ||
public native Map<Long,Long> uidMapping(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/java/native/com_libmailcore_IMAPMoveMessagesOperation.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "com_libmailcore_IMAPMoveMessagesOperation.h" | ||
|
||
#include "MCBaseTypes.h" | ||
#include "JavaHandle.h" | ||
#include "TypesUtils.h" | ||
#include "MCIMAPMoveMessagesOperation.h" | ||
|
||
using namespace mailcore; | ||
|
||
#define nativeType IMAPMoveMessagesOperation | ||
#define javaType nativeType | ||
|
||
JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPMoveMessagesOperation_uidMapping | ||
(JNIEnv * env, jobject obj) | ||
{ | ||
MC_POOL_BEGIN; | ||
jobject result = MC_JAVA_BRIDGE_GET(uidMapping); | ||
MC_POOL_END; | ||
return result; | ||
} | ||
|
||
MC_JAVA_BRIDGE |
23 changes: 23 additions & 0 deletions
23
src/java/native/com_libmailcore_IMAPMoveMessagesOperation.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.