From: Jehan Monnier Date: Mon, 22 Nov 2010 13:58:12 +0000 (+0100) Subject: Merge branch 'master' of git.linphone.org:linphone-private X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=1a6849c10192ea39dd025524ca4e8d071246f3cd Merge branch 'master' of git.linphone.org:linphone-private --- 1a6849c10192ea39dd025524ca4e8d071246f3cd diff --cc java/common/org/linphone/core/LinphoneCallLog.java index 0e459f81,6c492387..ccfdc763 --- a/java/common/org/linphone/core/LinphoneCallLog.java +++ b/java/common/org/linphone/core/LinphoneCallLog.java @@@ -17,65 -17,25 +17,78 @@@ along with this program; if not, write Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package org.linphone.core; - + /** + * Call data records object + * + */ +import java.util.Vector; + + + public interface LinphoneCallLog { + /** + * Represents call status + * + */ + static class CallStatus { + static private Vector values = new Vector(); + private final int mValue; + private final String mStringValue; + /** + * Call success. + */ + public final static CallStatus Sucess = new CallStatus(0,"Sucess"); + /** + * Call aborted. + */ + public final static CallStatus Aborted = new CallStatus(1,"Aborted"); + /** + * missed incoming call. + */ + public final static CallStatus Missed = new CallStatus(2,"Missed"); + /** + * remote call declined. + */ + public final static CallStatus Declined = new CallStatus(3,"Declined"); + private CallStatus(int value,String stringValue) { + mValue = value; + values.addElement(this); + mStringValue=stringValue; + } + public static CallStatus fromInt(int value) { + for (int i=0; i