Skip to content
Snippets Groups Projects
Commit 19f5e058 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

rename libringclient to libjamiclient

Change-Id: I8c1e93e147732d61715f69cb1e6f08a30b4abe96
parent 11467bd9
Branches
Tags
No related merge requests found
Showing
with 3271 additions and 0 deletions
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class IntVect extends java.util.AbstractList<Integer> implements java.util.RandomAccess {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IntVect(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IntVect obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_IntVect(swigCPtr);
}
swigCPtr = 0;
}
}
public IntVect(int[] initialElements) {
this();
reserve(initialElements.length);
for (int element : initialElements) {
add(element);
}
}
public IntVect(Iterable<Integer> initialElements) {
this();
for (int element : initialElements) {
add(element);
}
}
public Integer get(int index) {
return doGet(index);
}
public Integer set(int index, Integer e) {
return doSet(index, e);
}
public boolean add(Integer e) {
modCount++;
doAdd(e);
return true;
}
public void add(int index, Integer e) {
modCount++;
doAdd(index, e);
}
public Integer remove(int index) {
modCount++;
return doRemove(index);
}
protected void removeRange(int fromIndex, int toIndex) {
modCount++;
doRemoveRange(fromIndex, toIndex);
}
public int size() {
return doSize();
}
public IntVect() {
this(JamiServiceJNI.new_IntVect__SWIG_0(), true);
}
public IntVect(IntVect other) {
this(JamiServiceJNI.new_IntVect__SWIG_1(IntVect.getCPtr(other), other), true);
}
public long capacity() {
return JamiServiceJNI.IntVect_capacity(swigCPtr, this);
}
public void reserve(long n) {
JamiServiceJNI.IntVect_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return JamiServiceJNI.IntVect_isEmpty(swigCPtr, this);
}
public void clear() {
JamiServiceJNI.IntVect_clear(swigCPtr, this);
}
public IntVect(int count, int value) {
this(JamiServiceJNI.new_IntVect__SWIG_2(count, value), true);
}
private int doSize() {
return JamiServiceJNI.IntVect_doSize(swigCPtr, this);
}
private void doAdd(int x) {
JamiServiceJNI.IntVect_doAdd__SWIG_0(swigCPtr, this, x);
}
private void doAdd(int index, int x) {
JamiServiceJNI.IntVect_doAdd__SWIG_1(swigCPtr, this, index, x);
}
private int doRemove(int index) {
return JamiServiceJNI.IntVect_doRemove(swigCPtr, this, index);
}
private int doGet(int index) {
return JamiServiceJNI.IntVect_doGet(swigCPtr, this, index);
}
private int doSet(int index, int val) {
return JamiServiceJNI.IntVect_doSet(swigCPtr, this, index, val);
}
private void doRemoveRange(int fromIndex, int toIndex) {
JamiServiceJNI.IntVect_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class IntegerMap extends java.util.AbstractMap<String, Integer> {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IntegerMap(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IntegerMap obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_IntegerMap(swigCPtr);
}
swigCPtr = 0;
}
}
public int size() {
return sizeImpl();
}
public boolean containsKey(java.lang.Object key) {
if (!(key instanceof String)) {
return false;
}
return containsImpl((String)key);
}
public Integer get(java.lang.Object key) {
if (!(key instanceof String)) {
return null;
}
Iterator itr = find((String) key);
if (itr.isNot(end())) {
return itr.getValue();
}
return null;
}
public Integer put(String key, Integer value) {
Iterator itr = find((String) key);
if (itr.isNot(end())) {
Integer oldValue = itr.getValue();
itr.setValue(value);
return oldValue;
} else {
putUnchecked(key, value);
return null;
}
}
public Integer remove(java.lang.Object key) {
if (!(key instanceof String)) {
return null;
}
Iterator itr = find((String) key);
if (itr.isNot(end())) {
Integer oldValue = itr.getValue();
removeUnchecked(itr);
return oldValue;
} else {
return null;
}
}
public java.util.Set<Entry<String, Integer>> entrySet() {
java.util.Set<Entry<String, Integer>> setToReturn =
new java.util.HashSet<Entry<String, Integer>>();
Iterator itr = begin();
final Iterator end = end();
while (itr.isNot(end)) {
setToReturn.add(new Entry<String, Integer>() {
private Iterator iterator;
private Entry<String, Integer> init(Iterator iterator) {
this.iterator = iterator;
return this;
}
public String getKey() {
return iterator.getKey();
}
public Integer getValue() {
return iterator.getValue();
}
public Integer setValue(Integer newValue) {
Integer oldValue = iterator.getValue();
iterator.setValue(newValue);
return oldValue;
}
}.init(itr));
itr = itr.getNextUnchecked();
}
return setToReturn;
}
public IntegerMap() {
this(JamiServiceJNI.new_IntegerMap__SWIG_0(), true);
}
public IntegerMap(IntegerMap other) {
this(JamiServiceJNI.new_IntegerMap__SWIG_1(IntegerMap.getCPtr(other), other), true);
}
static protected class Iterator {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Iterator(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Iterator obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_IntegerMap_Iterator(swigCPtr);
}
swigCPtr = 0;
}
}
private IntegerMap.Iterator getNextUnchecked() {
return new IntegerMap.Iterator(JamiServiceJNI.IntegerMap_Iterator_getNextUnchecked(swigCPtr, this), true);
}
private boolean isNot(IntegerMap.Iterator other) {
return JamiServiceJNI.IntegerMap_Iterator_isNot(swigCPtr, this, IntegerMap.Iterator.getCPtr(other), other);
}
private String getKey() {
return JamiServiceJNI.IntegerMap_Iterator_getKey(swigCPtr, this);
}
private int getValue() {
return JamiServiceJNI.IntegerMap_Iterator_getValue(swigCPtr, this);
}
private void setValue(int newValue) {
JamiServiceJNI.IntegerMap_Iterator_setValue(swigCPtr, this, newValue);
}
}
public boolean isEmpty() {
return JamiServiceJNI.IntegerMap_isEmpty(swigCPtr, this);
}
public void clear() {
JamiServiceJNI.IntegerMap_clear(swigCPtr, this);
}
private IntegerMap.Iterator find(String key) {
return new IntegerMap.Iterator(JamiServiceJNI.IntegerMap_find(swigCPtr, this, key), true);
}
private IntegerMap.Iterator begin() {
return new IntegerMap.Iterator(JamiServiceJNI.IntegerMap_begin(swigCPtr, this), true);
}
private IntegerMap.Iterator end() {
return new IntegerMap.Iterator(JamiServiceJNI.IntegerMap_end(swigCPtr, this), true);
}
private int sizeImpl() {
return JamiServiceJNI.IntegerMap_sizeImpl(swigCPtr, this);
}
private boolean containsImpl(String key) {
return JamiServiceJNI.IntegerMap_containsImpl(swigCPtr, this, key);
}
private void putUnchecked(String key, int value) {
JamiServiceJNI.IntegerMap_putUnchecked(swigCPtr, this, key, value);
}
private void removeUnchecked(IntegerMap.Iterator itr) {
JamiServiceJNI.IntegerMap_removeUnchecked(swigCPtr, this, IntegerMap.Iterator.getCPtr(itr), itr);
}
}
This diff is collapsed.
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class Message {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Message(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Message obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_Message(swigCPtr);
}
swigCPtr = 0;
}
}
public void setFrom(String value) {
JamiServiceJNI.Message_from_set(swigCPtr, this, value);
}
public String getFrom() {
return JamiServiceJNI.Message_from_get(swigCPtr, this);
}
public void setPayloads(StringMap value) {
JamiServiceJNI.Message_payloads_set(swigCPtr, this, StringMap.getCPtr(value), value);
}
public StringMap getPayloads() {
long cPtr = JamiServiceJNI.Message_payloads_get(swigCPtr, this);
return (cPtr == 0) ? null : new StringMap(cPtr, false);
}
public void setReceived(long value) {
JamiServiceJNI.Message_received_set(swigCPtr, this, value);
}
public long getReceived() {
return JamiServiceJNI.Message_received_get(swigCPtr, this);
}
public Message() {
this(JamiServiceJNI.new_Message(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class MessageVect extends java.util.AbstractList<Message> implements java.util.RandomAccess {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected MessageVect(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(MessageVect obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_MessageVect(swigCPtr);
}
swigCPtr = 0;
}
}
public MessageVect(Message[] initialElements) {
this();
reserve(initialElements.length);
for (Message element : initialElements) {
add(element);
}
}
public MessageVect(Iterable<Message> initialElements) {
this();
for (Message element : initialElements) {
add(element);
}
}
public Message get(int index) {
return doGet(index);
}
public Message set(int index, Message e) {
return doSet(index, e);
}
public boolean add(Message e) {
modCount++;
doAdd(e);
return true;
}
public void add(int index, Message e) {
modCount++;
doAdd(index, e);
}
public Message remove(int index) {
modCount++;
return doRemove(index);
}
protected void removeRange(int fromIndex, int toIndex) {
modCount++;
doRemoveRange(fromIndex, toIndex);
}
public int size() {
return doSize();
}
public MessageVect() {
this(JamiServiceJNI.new_MessageVect__SWIG_0(), true);
}
public MessageVect(MessageVect other) {
this(JamiServiceJNI.new_MessageVect__SWIG_1(MessageVect.getCPtr(other), other), true);
}
public long capacity() {
return JamiServiceJNI.MessageVect_capacity(swigCPtr, this);
}
public void reserve(long n) {
JamiServiceJNI.MessageVect_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return JamiServiceJNI.MessageVect_isEmpty(swigCPtr, this);
}
public void clear() {
JamiServiceJNI.MessageVect_clear(swigCPtr, this);
}
public MessageVect(int count, Message value) {
this(JamiServiceJNI.new_MessageVect__SWIG_2(count, Message.getCPtr(value), value), true);
}
private int doSize() {
return JamiServiceJNI.MessageVect_doSize(swigCPtr, this);
}
private void doAdd(Message x) {
JamiServiceJNI.MessageVect_doAdd__SWIG_0(swigCPtr, this, Message.getCPtr(x), x);
}
private void doAdd(int index, Message x) {
JamiServiceJNI.MessageVect_doAdd__SWIG_1(swigCPtr, this, index, Message.getCPtr(x), x);
}
private Message doRemove(int index) {
return new Message(JamiServiceJNI.MessageVect_doRemove(swigCPtr, this, index), true);
}
private Message doGet(int index) {
return new Message(JamiServiceJNI.MessageVect_doGet(swigCPtr, this, index), false);
}
private Message doSet(int index, Message val) {
return new Message(JamiServiceJNI.MessageVect_doSet(swigCPtr, this, index, Message.getCPtr(val), val), true);
}
private void doRemoveRange(int fromIndex, int toIndex) {
JamiServiceJNI.MessageVect_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class PresenceCallback {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected PresenceCallback(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(PresenceCallback obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_PresenceCallback(swigCPtr);
}
swigCPtr = 0;
}
}
protected void swigDirectorDisconnect() {
swigCMemOwn = false;
delete();
}
public void swigReleaseOwnership() {
swigCMemOwn = false;
JamiServiceJNI.PresenceCallback_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigCMemOwn = true;
JamiServiceJNI.PresenceCallback_change_ownership(this, swigCPtr, true);
}
public void newServerSubscriptionRequest(String arg0) {
if (getClass() == PresenceCallback.class) JamiServiceJNI.PresenceCallback_newServerSubscriptionRequest(swigCPtr, this, arg0); else JamiServiceJNI.PresenceCallback_newServerSubscriptionRequestSwigExplicitPresenceCallback(swigCPtr, this, arg0);
}
public void serverError(String arg0, String arg1, String arg2) {
if (getClass() == PresenceCallback.class) JamiServiceJNI.PresenceCallback_serverError(swigCPtr, this, arg0, arg1, arg2); else JamiServiceJNI.PresenceCallback_serverErrorSwigExplicitPresenceCallback(swigCPtr, this, arg0, arg1, arg2);
}
public void newBuddyNotification(String arg0, String arg1, int arg2, String arg3) {
if (getClass() == PresenceCallback.class) JamiServiceJNI.PresenceCallback_newBuddyNotification(swigCPtr, this, arg0, arg1, arg2, arg3); else JamiServiceJNI.PresenceCallback_newBuddyNotificationSwigExplicitPresenceCallback(swigCPtr, this, arg0, arg1, arg2, arg3);
}
public void nearbyPeerNotification(String arg0, String arg1, int arg2, String arg3) {
if (getClass() == PresenceCallback.class) JamiServiceJNI.PresenceCallback_nearbyPeerNotification(swigCPtr, this, arg0, arg1, arg2, arg3); else JamiServiceJNI.PresenceCallback_nearbyPeerNotificationSwigExplicitPresenceCallback(swigCPtr, this, arg0, arg1, arg2, arg3);
}
public void subscriptionStateChanged(String arg0, String arg1, int arg2) {
if (getClass() == PresenceCallback.class) JamiServiceJNI.PresenceCallback_subscriptionStateChanged(swigCPtr, this, arg0, arg1, arg2); else JamiServiceJNI.PresenceCallback_subscriptionStateChangedSwigExplicitPresenceCallback(swigCPtr, this, arg0, arg1, arg2);
}
public PresenceCallback() {
this(JamiServiceJNI.new_PresenceCallback(), true);
JamiServiceJNI.PresenceCallback_director_connect(this, swigCPtr, true, true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class StringMap extends java.util.AbstractMap<String, String> {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected StringMap(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(StringMap obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_StringMap(swigCPtr);
}
swigCPtr = 0;
}
}
public static StringMap toSwig(java.util.Map<String,String> in) {
StringMap n = new StringMap();
for (java.util.Map.Entry<String, String> entry : in.entrySet()) {
if (entry.getValue() != null) {
n.put(entry.getKey(), entry.getValue());
}
}
return n;
}
public java.util.HashMap<String,String> toNative() {
java.util.HashMap<String,String> out = new java.util.HashMap<>((int)size());
for (Entry<String, String> e : entrySet())
out.put(e.getKey(), e.getValue());
return out;
}
public java.util.HashMap<String,String> toNativeFromUtf8() {
java.util.HashMap<String,String> out = new java.util.HashMap<>((int)size());
StringVect keys = keys();
for (String s : keys) {
out.put(s, getRaw(s).toJavaString());
}
return out;
}
public int size() {
return sizeImpl();
}
public boolean containsKey(java.lang.Object key) {
if (!(key instanceof String)) {
return false;
}
return containsImpl((String)key);
}
public String get(java.lang.Object key) {
if (!(key instanceof String)) {
return null;
}
Iterator itr = find((String) key);
if (itr.isNot(end())) {
return itr.getValue();
}
return null;
}
public String put(String key, String value) {
Iterator itr = find((String) key);
if (itr.isNot(end())) {
String oldValue = itr.getValue();
itr.setValue(value);
return oldValue;
} else {
putUnchecked(key, value);
return null;
}
}
public String remove(java.lang.Object key) {
if (!(key instanceof String)) {
return null;
}
Iterator itr = find((String) key);
if (itr.isNot(end())) {
String oldValue = itr.getValue();
removeUnchecked(itr);
return oldValue;
} else {
return null;
}
}
public java.util.Set<Entry<String, String>> entrySet() {
java.util.Set<Entry<String, String>> setToReturn =
new java.util.HashSet<Entry<String, String>>();
Iterator itr = begin();
final Iterator end = end();
while (itr.isNot(end)) {
setToReturn.add(new Entry<String, String>() {
private Iterator iterator;
private Entry<String, String> init(Iterator iterator) {
this.iterator = iterator;
return this;
}
public String getKey() {
return iterator.getKey();
}
public String getValue() {
return iterator.getValue();
}
public String setValue(String newValue) {
String oldValue = iterator.getValue();
iterator.setValue(newValue);
return oldValue;
}
}.init(itr));
itr = itr.getNextUnchecked();
}
return setToReturn;
}
public StringMap() {
this(JamiServiceJNI.new_StringMap__SWIG_0(), true);
}
public StringMap(StringMap other) {
this(JamiServiceJNI.new_StringMap__SWIG_1(StringMap.getCPtr(other), other), true);
}
static protected class Iterator {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Iterator(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Iterator obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_StringMap_Iterator(swigCPtr);
}
swigCPtr = 0;
}
}
private StringMap.Iterator getNextUnchecked() {
return new StringMap.Iterator(JamiServiceJNI.StringMap_Iterator_getNextUnchecked(swigCPtr, this), true);
}
private boolean isNot(StringMap.Iterator other) {
return JamiServiceJNI.StringMap_Iterator_isNot(swigCPtr, this, StringMap.Iterator.getCPtr(other), other);
}
private String getKey() {
return JamiServiceJNI.StringMap_Iterator_getKey(swigCPtr, this);
}
private String getValue() {
return JamiServiceJNI.StringMap_Iterator_getValue(swigCPtr, this);
}
private void setValue(String newValue) {
JamiServiceJNI.StringMap_Iterator_setValue(swigCPtr, this, newValue);
}
}
public boolean isEmpty() {
return JamiServiceJNI.StringMap_isEmpty(swigCPtr, this);
}
public void clear() {
JamiServiceJNI.StringMap_clear(swigCPtr, this);
}
private StringMap.Iterator find(String key) {
return new StringMap.Iterator(JamiServiceJNI.StringMap_find(swigCPtr, this, key), true);
}
private StringMap.Iterator begin() {
return new StringMap.Iterator(JamiServiceJNI.StringMap_begin(swigCPtr, this), true);
}
private StringMap.Iterator end() {
return new StringMap.Iterator(JamiServiceJNI.StringMap_end(swigCPtr, this), true);
}
private int sizeImpl() {
return JamiServiceJNI.StringMap_sizeImpl(swigCPtr, this);
}
private boolean containsImpl(String key) {
return JamiServiceJNI.StringMap_containsImpl(swigCPtr, this, key);
}
private void putUnchecked(String key, String value) {
JamiServiceJNI.StringMap_putUnchecked(swigCPtr, this, key, value);
}
private void removeUnchecked(StringMap.Iterator itr) {
JamiServiceJNI.StringMap_removeUnchecked(swigCPtr, this, StringMap.Iterator.getCPtr(itr), itr);
}
public StringVect keys() {
return new StringVect(JamiServiceJNI.StringMap_keys(swigCPtr, this), true);
}
public void setRaw(String key, Blob value) {
JamiServiceJNI.StringMap_setRaw(swigCPtr, this, key, Blob.getCPtr(value), value);
}
public Blob getRaw(String key) {
return new Blob(JamiServiceJNI.StringMap_getRaw(swigCPtr, this, key), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class StringVect extends java.util.AbstractList<String> implements java.util.RandomAccess {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected StringVect(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(StringVect obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_StringVect(swigCPtr);
}
swigCPtr = 0;
}
}
public StringVect(String[] initialElements) {
this();
reserve(initialElements.length);
for (String element : initialElements) {
add(element);
}
}
public StringVect(Iterable<String> initialElements) {
this();
for (String element : initialElements) {
add(element);
}
}
public String get(int index) {
return doGet(index);
}
public String set(int index, String e) {
return doSet(index, e);
}
public boolean add(String e) {
modCount++;
doAdd(e);
return true;
}
public void add(int index, String e) {
modCount++;
doAdd(index, e);
}
public String remove(int index) {
modCount++;
return doRemove(index);
}
protected void removeRange(int fromIndex, int toIndex) {
modCount++;
doRemoveRange(fromIndex, toIndex);
}
public int size() {
return doSize();
}
public StringVect() {
this(JamiServiceJNI.new_StringVect__SWIG_0(), true);
}
public StringVect(StringVect other) {
this(JamiServiceJNI.new_StringVect__SWIG_1(StringVect.getCPtr(other), other), true);
}
public long capacity() {
return JamiServiceJNI.StringVect_capacity(swigCPtr, this);
}
public void reserve(long n) {
JamiServiceJNI.StringVect_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return JamiServiceJNI.StringVect_isEmpty(swigCPtr, this);
}
public void clear() {
JamiServiceJNI.StringVect_clear(swigCPtr, this);
}
public StringVect(int count, String value) {
this(JamiServiceJNI.new_StringVect__SWIG_2(count, value), true);
}
private int doSize() {
return JamiServiceJNI.StringVect_doSize(swigCPtr, this);
}
private void doAdd(String x) {
JamiServiceJNI.StringVect_doAdd__SWIG_0(swigCPtr, this, x);
}
private void doAdd(int index, String x) {
JamiServiceJNI.StringVect_doAdd__SWIG_1(swigCPtr, this, index, x);
}
private String doRemove(int index) {
return JamiServiceJNI.StringVect_doRemove(swigCPtr, this, index);
}
private String doGet(int index) {
return JamiServiceJNI.StringVect_doGet(swigCPtr, this, index);
}
private String doSet(int index, String val) {
return JamiServiceJNI.StringVect_doSet(swigCPtr, this, index, val);
}
private void doRemoveRange(int fromIndex, int toIndex) {
JamiServiceJNI.StringVect_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class UintVect extends java.util.AbstractList<Long> implements java.util.RandomAccess {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected UintVect(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(UintVect obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_UintVect(swigCPtr);
}
swigCPtr = 0;
}
}
public UintVect(long[] initialElements) {
this();
reserve(initialElements.length);
for (long element : initialElements) {
add(element);
}
}
public UintVect(Iterable<Long> initialElements) {
this();
for (long element : initialElements) {
add(element);
}
}
public Long get(int index) {
return doGet(index);
}
public Long set(int index, Long e) {
return doSet(index, e);
}
public boolean add(Long e) {
modCount++;
doAdd(e);
return true;
}
public void add(int index, Long e) {
modCount++;
doAdd(index, e);
}
public Long remove(int index) {
modCount++;
return doRemove(index);
}
protected void removeRange(int fromIndex, int toIndex) {
modCount++;
doRemoveRange(fromIndex, toIndex);
}
public int size() {
return doSize();
}
public UintVect() {
this(JamiServiceJNI.new_UintVect__SWIG_0(), true);
}
public UintVect(UintVect other) {
this(JamiServiceJNI.new_UintVect__SWIG_1(UintVect.getCPtr(other), other), true);
}
public long capacity() {
return JamiServiceJNI.UintVect_capacity(swigCPtr, this);
}
public void reserve(long n) {
JamiServiceJNI.UintVect_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return JamiServiceJNI.UintVect_isEmpty(swigCPtr, this);
}
public void clear() {
JamiServiceJNI.UintVect_clear(swigCPtr, this);
}
public UintVect(int count, long value) {
this(JamiServiceJNI.new_UintVect__SWIG_2(count, value), true);
}
private int doSize() {
return JamiServiceJNI.UintVect_doSize(swigCPtr, this);
}
private void doAdd(long x) {
JamiServiceJNI.UintVect_doAdd__SWIG_0(swigCPtr, this, x);
}
private void doAdd(int index, long x) {
JamiServiceJNI.UintVect_doAdd__SWIG_1(swigCPtr, this, index, x);
}
private long doRemove(int index) {
return JamiServiceJNI.UintVect_doRemove(swigCPtr, this, index);
}
private long doGet(int index) {
return JamiServiceJNI.UintVect_doGet(swigCPtr, this, index);
}
private long doSet(int index, long val) {
return JamiServiceJNI.UintVect_doSet(swigCPtr, this, index, val);
}
private void doRemoveRange(int fromIndex, int toIndex) {
JamiServiceJNI.UintVect_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class VectMap extends java.util.AbstractList<StringMap> implements java.util.RandomAccess {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected VectMap(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(VectMap obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_VectMap(swigCPtr);
}
swigCPtr = 0;
}
}
public java.util.ArrayList<java.util.Map<String, String>> toNative() {
java.util.ArrayList<java.util.Map<String, String>> out = new java.util.ArrayList<>(size());
for (int i = 0; i < size(); ++i) {
out.add(get(i).toNative());
}
return out;
}
public VectMap(StringMap[] initialElements) {
this();
reserve(initialElements.length);
for (StringMap element : initialElements) {
add(element);
}
}
public VectMap(Iterable<StringMap> initialElements) {
this();
for (StringMap element : initialElements) {
add(element);
}
}
public StringMap get(int index) {
return doGet(index);
}
public StringMap set(int index, StringMap e) {
return doSet(index, e);
}
public boolean add(StringMap e) {
modCount++;
doAdd(e);
return true;
}
public void add(int index, StringMap e) {
modCount++;
doAdd(index, e);
}
public StringMap remove(int index) {
modCount++;
return doRemove(index);
}
protected void removeRange(int fromIndex, int toIndex) {
modCount++;
doRemoveRange(fromIndex, toIndex);
}
public int size() {
return doSize();
}
public VectMap() {
this(JamiServiceJNI.new_VectMap__SWIG_0(), true);
}
public VectMap(VectMap other) {
this(JamiServiceJNI.new_VectMap__SWIG_1(VectMap.getCPtr(other), other), true);
}
public long capacity() {
return JamiServiceJNI.VectMap_capacity(swigCPtr, this);
}
public void reserve(long n) {
JamiServiceJNI.VectMap_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return JamiServiceJNI.VectMap_isEmpty(swigCPtr, this);
}
public void clear() {
JamiServiceJNI.VectMap_clear(swigCPtr, this);
}
public VectMap(int count, StringMap value) {
this(JamiServiceJNI.new_VectMap__SWIG_2(count, StringMap.getCPtr(value), value), true);
}
private int doSize() {
return JamiServiceJNI.VectMap_doSize(swigCPtr, this);
}
private void doAdd(StringMap x) {
JamiServiceJNI.VectMap_doAdd__SWIG_0(swigCPtr, this, StringMap.getCPtr(x), x);
}
private void doAdd(int index, StringMap x) {
JamiServiceJNI.VectMap_doAdd__SWIG_1(swigCPtr, this, index, StringMap.getCPtr(x), x);
}
private StringMap doRemove(int index) {
return new StringMap(JamiServiceJNI.VectMap_doRemove(swigCPtr, this, index), true);
}
private StringMap doGet(int index) {
return new StringMap(JamiServiceJNI.VectMap_doGet(swigCPtr, this, index), false);
}
private StringMap doSet(int index, StringMap val) {
return new StringMap(JamiServiceJNI.VectMap_doSet(swigCPtr, this, index, StringMap.getCPtr(val), val), true);
}
private void doRemoveRange(int fromIndex, int toIndex) {
JamiServiceJNI.VectMap_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package net.jami.daemon;
public class VideoCallback {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected VideoCallback(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(VideoCallback obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
JamiServiceJNI.delete_VideoCallback(swigCPtr);
}
swigCPtr = 0;
}
}
protected void swigDirectorDisconnect() {
swigCMemOwn = false;
delete();
}
public void swigReleaseOwnership() {
swigCMemOwn = false;
JamiServiceJNI.VideoCallback_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigCMemOwn = true;
JamiServiceJNI.VideoCallback_change_ownership(this, swigCPtr, true);
}
public void getCameraInfo(String device, IntVect formats, UintVect sizes, UintVect rates) {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_getCameraInfo(swigCPtr, this, device, IntVect.getCPtr(formats), formats, UintVect.getCPtr(sizes), sizes, UintVect.getCPtr(rates), rates); else JamiServiceJNI.VideoCallback_getCameraInfoSwigExplicitVideoCallback(swigCPtr, this, device, IntVect.getCPtr(formats), formats, UintVect.getCPtr(sizes), sizes, UintVect.getCPtr(rates), rates);
}
public void setParameters(String arg0, int format, int width, int height, int rate) {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_setParameters(swigCPtr, this, arg0, format, width, height, rate); else JamiServiceJNI.VideoCallback_setParametersSwigExplicitVideoCallback(swigCPtr, this, arg0, format, width, height, rate);
}
public void setBitrate(String arg0, int bitrate) {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_setBitrate(swigCPtr, this, arg0, bitrate); else JamiServiceJNI.VideoCallback_setBitrateSwigExplicitVideoCallback(swigCPtr, this, arg0, bitrate);
}
public void requestKeyFrame() {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_requestKeyFrame(swigCPtr, this); else JamiServiceJNI.VideoCallback_requestKeyFrameSwigExplicitVideoCallback(swigCPtr, this);
}
public void startCapture(String camid) {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_startCapture(swigCPtr, this, camid); else JamiServiceJNI.VideoCallback_startCaptureSwigExplicitVideoCallback(swigCPtr, this, camid);
}
public void stopCapture() {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_stopCapture(swigCPtr, this); else JamiServiceJNI.VideoCallback_stopCaptureSwigExplicitVideoCallback(swigCPtr, this);
}
public void decodingStarted(String id, String shm_path, int w, int h, boolean is_mixer) {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_decodingStarted(swigCPtr, this, id, shm_path, w, h, is_mixer); else JamiServiceJNI.VideoCallback_decodingStartedSwigExplicitVideoCallback(swigCPtr, this, id, shm_path, w, h, is_mixer);
}
public void decodingStopped(String id, String shm_path, boolean is_mixer) {
if (getClass() == VideoCallback.class) JamiServiceJNI.VideoCallback_decodingStopped(swigCPtr, this, id, shm_path, is_mixer); else JamiServiceJNI.VideoCallback_decodingStoppedSwigExplicitVideoCallback(swigCPtr, this, id, shm_path, is_mixer);
}
public VideoCallback() {
this(JamiServiceJNI.new_VideoCallback(), true);
JamiServiceJNI.VideoCallback_director_connect(this, swigCPtr, true, true);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment