mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 03:49:58 +02:00
adapt to new api
This commit is contained in:
parent
a0b7d41a7a
commit
96c4fd6835
2 changed files with 0 additions and 19 deletions
|
@ -1036,12 +1036,6 @@ JNIEXPORT jstring Java_com_b44t_messenger_DcMsg_getFilename(JNIEnv *env, jobject
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
JNIEXPORT jlong Java_com_b44t_messenger_DcMsg_getMediainfoCPtr(JNIEnv *env, jobject obj)
|
|
||||||
{
|
|
||||||
return (jlong)dc_msg_get_mediainfo(get_dc_msg(env, obj));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
JNIEXPORT jboolean Java_com_b44t_messenger_DcMsg_isForwarded(JNIEnv *env, jobject obj)
|
JNIEXPORT jboolean Java_com_b44t_messenger_DcMsg_isForwarded(JNIEnv *env, jobject obj)
|
||||||
{
|
{
|
||||||
return dc_msg_is_forwarded(get_dc_msg(env, obj))!=0;
|
return dc_msg_is_forwarded(get_dc_msg(env, obj))!=0;
|
||||||
|
@ -1105,16 +1099,6 @@ JNIEXPORT void Java_com_b44t_messenger_DcMsg_setDuration(JNIEnv *env, jobject ob
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
JNIEXPORT void Java_com_b44t_messenger_DcMsg_setMediainfo(JNIEnv *env, jobject obj, jstring author, jstring trackname)
|
|
||||||
{
|
|
||||||
CHAR_REF(author);
|
|
||||||
CHAR_REF(trackname);
|
|
||||||
dc_msg_set_mediainfo(get_dc_msg(env, obj), authorPtr, tracknamePtr);
|
|
||||||
CHAR_UNREF(trackname);
|
|
||||||
CHAR_UNREF(author);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* DcContact
|
* DcContact
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
|
@ -97,7 +97,6 @@ public class DcMsg {
|
||||||
public @NonNull DcLot getSummary (DcChat chat) { return new DcLot(getSummaryCPtr(chat.getChatCPtr())); }
|
public @NonNull DcLot getSummary (DcChat chat) { return new DcLot(getSummaryCPtr(chat.getChatCPtr())); }
|
||||||
public native String getSummarytext (int approx_characters);
|
public native String getSummarytext (int approx_characters);
|
||||||
public native int showPadlock ();
|
public native int showPadlock ();
|
||||||
public @NonNull DcLot getMediainfo () { return new DcLot(getMediainfoCPtr()); }
|
|
||||||
public boolean hasFile () { String file = getFile(); return file!=null && !file.isEmpty(); }
|
public boolean hasFile () { String file = getFile(); return file!=null && !file.isEmpty(); }
|
||||||
public native String getFile ();
|
public native String getFile ();
|
||||||
public native String getFilemime ();
|
public native String getFilemime ();
|
||||||
|
@ -111,7 +110,6 @@ public class DcMsg {
|
||||||
public native void setFile (String file, String filemime);
|
public native void setFile (String file, String filemime);
|
||||||
public native void setDimension (int width, int height);
|
public native void setDimension (int width, int height);
|
||||||
public native void setDuration (int duration);
|
public native void setDuration (int duration);
|
||||||
public native void setMediainfo (String author, String trackname);
|
|
||||||
|
|
||||||
// aliases and higher-level tools
|
// aliases and higher-level tools
|
||||||
public static int[] msgSetToIds(final Set<DcMsg> dcMsgs) {
|
public static int[] msgSetToIds(final Set<DcMsg> dcMsgs) {
|
||||||
|
@ -199,5 +197,4 @@ public class DcMsg {
|
||||||
private long msgCPtr; // CAVE: the name is referenced in the JNI
|
private long msgCPtr; // CAVE: the name is referenced in the JNI
|
||||||
private native void unrefMsgCPtr ();
|
private native void unrefMsgCPtr ();
|
||||||
private native long getSummaryCPtr (long chatCPtr);
|
private native long getSummaryCPtr (long chatCPtr);
|
||||||
private native long getMediainfoCPtr();
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue