Skip to content
Snippets Groups Projects
Commit fccd1dcc authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#16702: Implement account state changed signal

parent c63f54ba
No related branches found
No related tags found
No related merge requests found
/**
* Copyright (C) 2010-2012 Regis Montoya (aka r3gis - www.r3gis.fr)
* Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
*
* Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* If you own a pjsip commercial license you can also redistribute it
* and/or modify it under the terms of the GNU Lesser General Public License
* as an android library.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.savoirfairelinux.sflphone.service;
import android.util.Log;
public class ConfigurationManagerCallback extends ConfigurationCallback {
private static final String TAG = "ConfigurationManagerCallback";
@Override
public void on_account_state_changed() {
Log.i(TAG, "on_account_state_changed ninja!!!!!!!!!!!!!!");
}
}
......@@ -57,6 +57,7 @@ public class SipService extends Service {
private CallManagerJNI callManagerJNI;
private CallManagerCallBack callManagerCallBack;
private ConfigurationManagerJNI configurationManagerJNI;
private ConfigurationManagerCallback configurationManagerCallback;
private ManagerImpl managerImpl;
private boolean isPjSipStackStarted = false;
......@@ -368,10 +369,11 @@ public class SipService extends Service {
callManagerJNI = new CallManagerJNI();
callManagerCallBack = new CallManagerCallBack();
SFLPhoneservice.setCallbackObject(callManagerCallBack);
configurationManagerJNI = new ConfigurationManagerJNI();
configurationManagerCallback = new ConfigurationManagerCallback();
SFLPhoneservice.setConfigurationCallbackObject(configurationManagerCallback);
managerImpl.init("");
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment