aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/native/com_libmailcore_IMAPPart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/native/com_libmailcore_IMAPPart.cpp')
-rw-r--r--src/java/native/com_libmailcore_IMAPPart.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/java/native/com_libmailcore_IMAPPart.cpp b/src/java/native/com_libmailcore_IMAPPart.cpp
new file mode 100644
index 00000000..6c5ae806
--- /dev/null
+++ b/src/java/native/com_libmailcore_IMAPPart.cpp
@@ -0,0 +1,23 @@
+#include "com_libmailcore_IMAPPart.h"
+
+#include "MCBaseTypes.h"
+#include "JavaHandle.h"
+#include "TypesUtils.h"
+#include "MCIMAPPart.h"
+
+using namespace mailcore;
+
+#define nativeType IMAPPart
+#define javaType nativeType
+
+MC_JAVA_SYNTHESIZE_STRING(setPartID, partID)
+MC_JAVA_SYNTHESIZE_SCALAR(jlong, unsigned int, setSize, size)
+MC_JAVA_SYNTHESIZE_SCALAR(jint, Encoding, setEncoding, encoding)
+
+JNIEXPORT jlong JNICALL Java_com_libmailcore_IMAPPart_decodedSize
+ (JNIEnv * env, jobject obj)
+{
+ return MC_JAVA_BRIDGE_GET_SCALAR(jlong, decodedSize);
+}
+
+MC_JAVA_BRIDGE