- Update linphone
- Some work on UI for ZRTP
This commit is contained in:
parent
d3f7bb7a83
commit
d8d6017f06
7 changed files with 128 additions and 45 deletions
|
@ -23,6 +23,7 @@ import java.util.List;
|
||||||
import java.util.Timer;
|
import java.util.Timer;
|
||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
|
|
||||||
|
import org.linphone.core.CallDirection;
|
||||||
import org.linphone.core.LinphoneAddress;
|
import org.linphone.core.LinphoneAddress;
|
||||||
import org.linphone.core.LinphoneCall;
|
import org.linphone.core.LinphoneCall;
|
||||||
import org.linphone.core.LinphoneCall.State;
|
import org.linphone.core.LinphoneCall.State;
|
||||||
|
|
|
@ -137,6 +137,7 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
private boolean doNotGoToCallActivity = false;
|
private boolean doNotGoToCallActivity = false;
|
||||||
private List<String> sideMenuItems;
|
private List<String> sideMenuItems;
|
||||||
private boolean callTransfer = false;
|
private boolean callTransfer = false;
|
||||||
|
private boolean isOnBackground = false;
|
||||||
|
|
||||||
static final boolean isInstanciated() {
|
static final boolean isInstanciated() {
|
||||||
return instance != null;
|
return instance != null;
|
||||||
|
@ -1126,6 +1127,7 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
lc.removeListener(mListener);
|
lc.removeListener(mListener);
|
||||||
}
|
}
|
||||||
callTransfer = false;
|
callTransfer = false;
|
||||||
|
isOnBackground = true;
|
||||||
|
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
@ -1385,6 +1387,7 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
doNotGoToCallActivity = false;
|
doNotGoToCallActivity = false;
|
||||||
|
isOnBackground = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1463,6 +1466,10 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isOnBackground() {
|
||||||
|
return isOnBackground;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||||
if (keyCode == KeyEvent.KEYCODE_BACK) {
|
if (keyCode == KeyEvent.KEYCODE_BACK) {
|
||||||
if (currentFragment == FragmentsAvailable.DIALER
|
if (currentFragment == FragmentsAvailable.DIALER
|
||||||
|
|
|
@ -22,7 +22,6 @@ import static android.media.AudioManager.MODE_RINGTONE;
|
||||||
import static android.media.AudioManager.STREAM_RING;
|
import static android.media.AudioManager.STREAM_RING;
|
||||||
import static android.media.AudioManager.STREAM_VOICE_CALL;
|
import static android.media.AudioManager.STREAM_VOICE_CALL;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
@ -152,6 +151,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
private LinphoneAccountCreator accountCreator;
|
private LinphoneAccountCreator accountCreator;
|
||||||
private static List<LinphoneChatMessage> mPendingChatFileMessage;
|
private static List<LinphoneChatMessage> mPendingChatFileMessage;
|
||||||
private static LinphoneChatMessage mUploadPendingFileMessage;
|
private static LinphoneChatMessage mUploadPendingFileMessage;
|
||||||
|
private boolean mAreDisplayAlertMessage = false;
|
||||||
|
|
||||||
public String wizardLoginViewDomain = null;
|
public String wizardLoginViewDomain = null;
|
||||||
|
|
||||||
|
@ -1027,6 +1027,64 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void messageReceivedUnableToDecrypted(LinphoneCore lc, LinphoneChatRoom cr,
|
||||||
|
LinphoneChatMessage message) {
|
||||||
|
if (mServiceContext.getResources().getBoolean(R.bool.disable_chat)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
final LinphoneAddress from = message.getFrom();
|
||||||
|
try {
|
||||||
|
final LinphoneContact contact = ContactsManager.getInstance().findContactFromAddress(from);
|
||||||
|
if (LinphoneActivity.instance().isOnBackground()) {
|
||||||
|
if (!mServiceContext.getResources().getBoolean(R.bool.disable_chat_message_notification)) {
|
||||||
|
if (contact != null) {
|
||||||
|
LinphoneService.instance().displayMessageNotification(from.asStringUriOnly(), contact.getFullName()
|
||||||
|
, getString(R.string.message_cant_be_decrypted_notif));
|
||||||
|
} else {
|
||||||
|
LinphoneService.instance().displayMessageNotification(from.asStringUriOnly(), from.getUserName()
|
||||||
|
, getString(R.string.message_cant_be_decrypted_notif));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (!mAreDisplayAlertMessage){
|
||||||
|
mAreDisplayAlertMessage = true;
|
||||||
|
final Dialog dialog = LinphoneActivity.instance().displayDialog(
|
||||||
|
getString(R.string.message_cant_be_decrypted).replace("%s"
|
||||||
|
, (contact != null) ? contact.getFullName() : from.getUserName()));
|
||||||
|
Button delete = (Button) dialog.findViewById(R.id.delete_button);
|
||||||
|
delete.setText(getString(R.string.call));
|
||||||
|
Button cancel = (Button) dialog.findViewById(R.id.cancel);
|
||||||
|
cancel.setText(getString(R.string.ok));
|
||||||
|
|
||||||
|
delete.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
LinphoneManager.getInstance().newOutgoingCall(from.asStringUriOnly()
|
||||||
|
, (contact != null) ? contact.getFullName() : from.getUserName());
|
||||||
|
dialog.dismiss();
|
||||||
|
LinphoneManager.getInstance().setAreDisplayAlertMessage(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
cancel.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
dialog.dismiss();
|
||||||
|
LinphoneManager.getInstance().setAreDisplayAlertMessage(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
dialog.show();
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAreDisplayAlertMessage(boolean b) {
|
||||||
|
mAreDisplayAlertMessage = b;
|
||||||
|
}
|
||||||
|
|
||||||
public String getLastLcStatusMessage() {
|
public String getLastLcStatusMessage() {
|
||||||
return lastLcStatusMessage;
|
return lastLcStatusMessage;
|
||||||
}
|
}
|
||||||
|
|
|
@ -958,6 +958,7 @@ public class SettingsFragment extends PreferencesListFragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setEncryptionZrtp() {
|
private void setEncryptionZrtp() {
|
||||||
|
LinphoneUtils.displayErrorAlert(getString(R.string.lime_encryption_enable_zrtp), LinphoneActivity.instance());
|
||||||
mPrefs.setMediaEncryption(MediaEncryption.ZRTP);
|
mPrefs.setMediaEncryption(MediaEncryption.ZRTP);
|
||||||
findPreference(getString(R.string.pref_media_encryption_key)).setSummary(mPrefs.getMediaEncryption().toString());
|
findPreference(getString(R.string.pref_media_encryption_key)).setSummary(mPrefs.getMediaEncryption().toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
import org.linphone.assistant.AssistantActivity;
|
import org.linphone.assistant.AssistantActivity;
|
||||||
|
import org.linphone.core.CallDirection;
|
||||||
import org.linphone.core.LinphoneCall;
|
import org.linphone.core.LinphoneCall;
|
||||||
import org.linphone.core.LinphoneContent;
|
import org.linphone.core.LinphoneContent;
|
||||||
import org.linphone.core.LinphoneCore;
|
import org.linphone.core.LinphoneCore;
|
||||||
|
@ -393,9 +394,19 @@ public class StatusFragment extends Fragment {
|
||||||
ZRTPdialog.setContentView(R.layout.dialog);
|
ZRTPdialog.setContentView(R.layout.dialog);
|
||||||
ZRTPdialog.getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
|
ZRTPdialog.getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
|
||||||
ZRTPdialog.getWindow().setBackgroundDrawable(d);
|
ZRTPdialog.getWindow().setBackgroundDrawable(d);
|
||||||
|
String zrtpToRead, zrtpToListen;
|
||||||
|
|
||||||
|
if (call.getDirection().equals(CallDirection.Incoming)) {
|
||||||
|
zrtpToRead = call.getAuthenticationToken().substring(0,2);
|
||||||
|
zrtpToListen = call.getAuthenticationToken().substring(2);
|
||||||
|
} else {
|
||||||
|
zrtpToListen = call.getAuthenticationToken().substring(0,2);
|
||||||
|
zrtpToRead = call.getAuthenticationToken().substring(2);
|
||||||
|
}
|
||||||
|
|
||||||
TextView customText = (TextView) ZRTPdialog.findViewById(R.id.customText);
|
TextView customText = (TextView) ZRTPdialog.findViewById(R.id.customText);
|
||||||
String newText = getString(R.string.zrtp_dialog).replace("%s", call.getAuthenticationToken());
|
String newText = getString(R.string.zrtp_dialog1).replace("%s", zrtpToRead)
|
||||||
|
+ getString(R.string.zrtp_dialog2).replace("%s", zrtpToListen);
|
||||||
customText.setText(newText);
|
customText.setText(newText);
|
||||||
Button delete = (Button) ZRTPdialog.findViewById(R.id.delete_button);
|
Button delete = (Button) ZRTPdialog.findViewById(R.id.delete_button);
|
||||||
delete.setText(R.string.accept);
|
delete.setText(R.string.accept);
|
||||||
|
|
|
@ -48,21 +48,21 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
private TextView logs;
|
private TextView logs;
|
||||||
|
|
||||||
private Timer timer;
|
private Timer timer;
|
||||||
|
|
||||||
private LinphoneCore lc;
|
private LinphoneCore lc;
|
||||||
private LinphoneFriendList lfl;
|
private LinphoneFriendList lfl;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.tuto_carddav);
|
setContentView(R.layout.tuto_carddav);
|
||||||
|
|
||||||
username = (EditText) findViewById(R.id.carddav_username);
|
username = (EditText) findViewById(R.id.carddav_username);
|
||||||
password = (EditText) findViewById(R.id.carddav_pwd);
|
password = (EditText) findViewById(R.id.carddav_pwd);
|
||||||
ha1 = (EditText) findViewById(R.id.carddav_ha1);
|
ha1 = (EditText) findViewById(R.id.carddav_ha1);
|
||||||
server = (EditText) findViewById(R.id.carddav_server);
|
server = (EditText) findViewById(R.id.carddav_server);
|
||||||
logs = (TextView) findViewById(R.id.carddav_events);
|
logs = (TextView) findViewById(R.id.carddav_events);
|
||||||
|
|
||||||
synchronize = (Button) findViewById(R.id.carddav_synchronize);
|
synchronize = (Button) findViewById(R.id.carddav_synchronize);
|
||||||
synchronize.setOnClickListener(this);
|
synchronize.setOnClickListener(this);
|
||||||
|
|
||||||
|
@ -84,10 +84,10 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
};
|
};
|
||||||
timer = new Timer("Linphone scheduler");
|
timer = new Timer("Linphone scheduler");
|
||||||
timer.schedule(lTask, 0, 20);
|
timer.schedule(lTask, 0, 20);
|
||||||
|
|
||||||
lfl = lc.createLinphoneFriendList();
|
lfl = lc.createLinphoneFriendList();
|
||||||
lc.addFriendList(lfl);
|
lc.addFriendList(lfl);
|
||||||
|
|
||||||
LinphoneFriend lf = lc.createFriendWithAddress("sip:ghislain@sip.linphone.org");
|
LinphoneFriend lf = lc.createFriendWithAddress("sip:ghislain@sip.linphone.org");
|
||||||
lf.setName("Ghislain");
|
lf.setName("Ghislain");
|
||||||
lfl.addLocalFriend(lf); // This is a local friend, it won't be sent to the CardDAV server and will be removed at the next synchronization
|
lfl.addLocalFriend(lf); // This is a local friend, it won't be sent to the CardDAV server and will be removed at the next synchronization
|
||||||
|
@ -95,7 +95,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
Log.e(e);
|
Log.e(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
try {
|
try {
|
||||||
|
@ -114,13 +114,13 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
String serverDomain = serverUrl.replace("http://", "").replace("https://", "").split("/")[0]; // We just want the domain name
|
String serverDomain = serverUrl.replace("http://", "").replace("https://", "").split("/")[0]; // We just want the domain name
|
||||||
LinphoneAuthInfo authInfo = LinphoneCoreFactory.instance().createAuthInfo(username.getText().toString(), null, password.getText().toString(), ha1.getText().toString(), "SabreDAV", serverDomain);
|
LinphoneAuthInfo authInfo = LinphoneCoreFactory.instance().createAuthInfo(username.getText().toString(), null, password.getText().toString(), ha1.getText().toString(), "SabreDAV", serverDomain);
|
||||||
lc.addAuthInfo(authInfo);
|
lc.addAuthInfo(authInfo);
|
||||||
|
|
||||||
lfl.setUri(serverUrl);
|
lfl.setUri(serverUrl);
|
||||||
lfl.setListener(this);
|
lfl.setListener(this);
|
||||||
synchronize.setEnabled(false);
|
synchronize.setEnabled(false);
|
||||||
lfl.synchronizeFriendsFromServer();
|
lfl.synchronizeFriendsFromServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void myLog(String msg) {
|
private void myLog(String msg) {
|
||||||
Log.d(msg);
|
Log.d(msg);
|
||||||
logs.setText(logs.getText().toString() + "\r\n" + msg);
|
logs.setText(logs.getText().toString() + "\r\n" + msg);
|
||||||
|
@ -132,7 +132,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
String msg = "Friend created " + lf.getAddress();
|
String msg = "Friend created " + lf.getAddress();
|
||||||
myLog(msg);
|
myLog(msg);
|
||||||
|
|
||||||
LinphoneFriend[] friends = list.getFriendList();
|
LinphoneFriend[] friends = list.getFriendList();
|
||||||
String msg2 = "There are " + friends.length + (friends.length > 1 ? " friends" : " friend") + " in the list";
|
String msg2 = "There are " + friends.length + (friends.length > 1 ? " friends" : " friend") + " in the list";
|
||||||
myLog(msg2);
|
myLog(msg2);
|
||||||
|
@ -144,7 +144,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
String msg = "Friend updated " + newFriend.getAddress();
|
String msg = "Friend updated " + newFriend.getAddress();
|
||||||
myLog(msg);
|
myLog(msg);
|
||||||
|
|
||||||
LinphoneFriend[] friends = list.getFriendList();
|
LinphoneFriend[] friends = list.getFriendList();
|
||||||
String msg2 = "There are " + friends.length + (friends.length > 1 ? " friends" : " friend") + " in the list";
|
String msg2 = "There are " + friends.length + (friends.length > 1 ? " friends" : " friend") + " in the list";
|
||||||
myLog(msg2);
|
myLog(msg2);
|
||||||
|
@ -156,7 +156,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
String msg = "Friend removed " + lf.getAddress();
|
String msg = "Friend removed " + lf.getAddress();
|
||||||
myLog(msg);
|
myLog(msg);
|
||||||
|
|
||||||
LinphoneFriend[] friends = list.getFriendList();
|
LinphoneFriend[] friends = list.getFriendList();
|
||||||
String msg2 = "There are " + friends.length + (friends.length > 1 ? " friends" : " friend") + " in the list";
|
String msg2 = "There are " + friends.length + (friends.length > 1 ? " friends" : " friend") + " in the list";
|
||||||
myLog(msg2);
|
myLog(msg2);
|
||||||
|
@ -177,7 +177,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
String msg = "Friend List added";
|
String msg = "Friend List added";
|
||||||
myLog(msg);
|
myLog(msg);
|
||||||
|
|
||||||
LinphoneFriendList[] lists = lc.getFriendLists();
|
LinphoneFriendList[] lists = lc.getFriendLists();
|
||||||
String msg2 = "There are " + lists.length + (lists.length > 1 ? " lists" : " list") + " in the core";
|
String msg2 = "There are " + lists.length + (lists.length > 1 ? " lists" : " list") + " in the core";
|
||||||
myLog(msg2);
|
myLog(msg2);
|
||||||
|
@ -188,7 +188,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
String msg = "Friend List removed";
|
String msg = "Friend List removed";
|
||||||
myLog(msg);
|
myLog(msg);
|
||||||
|
|
||||||
LinphoneFriendList[] lists = lc.getFriendLists();
|
LinphoneFriendList[] lists = lc.getFriendLists();
|
||||||
String msg2 = "There are " + lists.length + (lists.length > 1 ? " lists" : " list") + " in the core";
|
String msg2 = "There are " + lists.length + (lists.length > 1 ? " lists" : " list") + " in the core";
|
||||||
myLog(msg2);
|
myLog(msg2);
|
||||||
|
@ -198,99 +198,99 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
public void callStatsUpdated(LinphoneCore lc, LinphoneCall call,
|
public void callStatsUpdated(LinphoneCore lc, LinphoneCall call,
|
||||||
LinphoneCallStats stats) {
|
LinphoneCallStats stats) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void newSubscriptionRequest(LinphoneCore lc, LinphoneFriend lf,
|
public void newSubscriptionRequest(LinphoneCore lc, LinphoneFriend lf,
|
||||||
String url) {
|
String url) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) {
|
public void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void dtmfReceived(LinphoneCore lc, LinphoneCall call, int dtmf) {
|
public void dtmfReceived(LinphoneCore lc, LinphoneCall call, int dtmf) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void notifyReceived(LinphoneCore lc, LinphoneCall call,
|
public void notifyReceived(LinphoneCore lc, LinphoneCall call,
|
||||||
LinphoneAddress from, byte[] event) {
|
LinphoneAddress from, byte[] event) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void transferState(LinphoneCore lc, LinphoneCall call,
|
public void transferState(LinphoneCore lc, LinphoneCall call,
|
||||||
State new_call_state) {
|
State new_call_state) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void infoReceived(LinphoneCore lc, LinphoneCall call,
|
public void infoReceived(LinphoneCore lc, LinphoneCall call,
|
||||||
LinphoneInfoMessage info) {
|
LinphoneInfoMessage info) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void subscriptionStateChanged(LinphoneCore lc, LinphoneEvent ev,
|
public void subscriptionStateChanged(LinphoneCore lc, LinphoneEvent ev,
|
||||||
SubscriptionState state) {
|
SubscriptionState state) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void publishStateChanged(LinphoneCore lc, LinphoneEvent ev,
|
public void publishStateChanged(LinphoneCore lc, LinphoneEvent ev,
|
||||||
PublishState state) {
|
PublishState state) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void show(LinphoneCore lc) {
|
public void show(LinphoneCore lc) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void displayStatus(LinphoneCore lc, String message) {
|
public void displayStatus(LinphoneCore lc, String message) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void displayMessage(LinphoneCore lc, String message) {
|
public void displayMessage(LinphoneCore lc, String message) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void displayWarning(LinphoneCore lc, String message) {
|
public void displayWarning(LinphoneCore lc, String message) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fileTransferProgressIndication(LinphoneCore lc,
|
public void fileTransferProgressIndication(LinphoneCore lc,
|
||||||
LinphoneChatMessage message, LinphoneContent content, int progress) {
|
LinphoneChatMessage message, LinphoneContent content, int progress) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fileTransferRecv(LinphoneCore lc, LinphoneChatMessage message,
|
public void fileTransferRecv(LinphoneCore lc, LinphoneChatMessage message,
|
||||||
LinphoneContent content, byte[] buffer, int size) {
|
LinphoneContent content, byte[] buffer, int size) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -303,88 +303,93 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
|
||||||
@Override
|
@Override
|
||||||
public void globalState(LinphoneCore lc, GlobalState state, String message) {
|
public void globalState(LinphoneCore lc, GlobalState state, String message) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registrationState(LinphoneCore lc, LinphoneProxyConfig cfg,
|
public void registrationState(LinphoneCore lc, LinphoneProxyConfig cfg,
|
||||||
RegistrationState state, String smessage) {
|
RegistrationState state, String smessage) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configuringStatus(LinphoneCore lc,
|
public void configuringStatus(LinphoneCore lc,
|
||||||
RemoteProvisioningState state, String message) {
|
RemoteProvisioningState state, String message) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void messageReceived(LinphoneCore lc, LinphoneChatRoom cr,
|
public void messageReceived(LinphoneCore lc, LinphoneChatRoom cr,
|
||||||
LinphoneChatMessage message) {
|
LinphoneChatMessage message) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void messageReceivedUnableToDecrypted(LinphoneCore lc, LinphoneChatRoom cr, LinphoneChatMessage message) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void callState(LinphoneCore lc, LinphoneCall call, State state,
|
public void callState(LinphoneCore lc, LinphoneCall call, State state,
|
||||||
String message) {
|
String message) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void callEncryptionChanged(LinphoneCore lc, LinphoneCall call,
|
public void callEncryptionChanged(LinphoneCore lc, LinphoneCall call,
|
||||||
boolean encrypted, String authenticationToken) {
|
boolean encrypted, String authenticationToken) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void notifyReceived(LinphoneCore lc, LinphoneEvent ev,
|
public void notifyReceived(LinphoneCore lc, LinphoneEvent ev,
|
||||||
String eventName, LinphoneContent content) {
|
String eventName, LinphoneContent content) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void isComposingReceived(LinphoneCore lc, LinphoneChatRoom cr) {
|
public void isComposingReceived(LinphoneCore lc, LinphoneChatRoom cr) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void ecCalibrationStatus(LinphoneCore lc, EcCalibratorStatus status,
|
public void ecCalibrationStatus(LinphoneCore lc, EcCalibratorStatus status,
|
||||||
int delay_ms, Object data) {
|
int delay_ms, Object data) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void uploadProgressIndication(LinphoneCore lc, int offset, int total) {
|
public void uploadProgressIndication(LinphoneCore lc, int offset, int total) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void uploadStateChanged(LinphoneCore lc,
|
public void uploadStateChanged(LinphoneCore lc,
|
||||||
LogCollectionUploadState state, String info) {
|
LogCollectionUploadState state, String info) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void authInfoRequested(LinphoneCore lc, String realm,
|
public void authInfoRequested(LinphoneCore lc, String realm,
|
||||||
String username, String domain) {
|
String username, String domain) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void authenticationRequested(LinphoneCore lc,
|
public void authenticationRequested(LinphoneCore lc,
|
||||||
LinphoneAuthInfo authInfo, AuthMethod method) {
|
LinphoneAuthInfo authInfo, AuthMethod method) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1cf4eda4aac0fdd1fdac150f6e0592368bf93459
|
Subproject commit 3342ccf4abb1f3bd95053ca82d9b01508704bbc2
|
Loading…
Reference in a new issue