Skip to content
Snippets Groups Projects
Commit f76de3b5 authored by alision's avatar alision
Browse files

Modified Hiearchy of packages (clean up)

Modified AccountSelectionButton to Spinner
Modified build instructions
Added make-glue.sh to generate interfaces (using dbusxx)
parent 432f067f
Branches
Tags
No related merge requests found
Showing
with 209 additions and 120 deletions
...@@ -8,6 +8,13 @@ tags ...@@ -8,6 +8,13 @@ tags
TAGS.LST TAGS.LST
ID ID
.classpath
.project
.settings/org.eclipse.jdt.core.prefs
.settings/org.eclipse.jdt.ui.prefs
SFLPhoneservice* SFLPhoneservice*
CallManagerJNI.java CallManagerJNI.java
Callback.java Callback.java
......
...@@ -53,7 +53,7 @@ as that of the covered work. ...@@ -53,7 +53,7 @@ as that of the covered work.
android:label="@string/app_name" android:label="@string/app_name"
android:theme="@style/AppTheme" > android:theme="@style/AppTheme" >
<activity <activity
android:name=".client.SFLPhoneHome" android:name=".client.SFLPhoneHomeActivity"
android:label="@string/title_activity_sflphone_home" android:label="@string/title_activity_sflphone_home"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:theme="@style/AppTheme" > android:theme="@style/AppTheme" >
......
...@@ -24,9 +24,15 @@ Check that following files are executable: ...@@ -24,9 +24,15 @@ Check that following files are executable:
make-swig.sh make-swig.sh
Compile pjsip-android Compile pjsip-android
cd jni/pjsip-androi/android $ pushd jni/pjproject-android/android
./configure-android --disable-audio $ ./configure-android --disable-sound
make dep && make $ make dep && make
$ popd
Generate dbus interface
$ ./make-glue.sh
$ ndk-build -j4 $ ndk-build -j4
...@@ -37,4 +43,9 @@ Check that no errors occurred. In particular, following files should have been g ...@@ -37,4 +43,9 @@ Check that no errors occurred. In particular, following files should have been g
sflphoneserviceJNI.java sflphoneserviceJNI.java
ManagerImpl.java ManagerImpl.java
Add compatibility library to libs folder
$ cp $ANDROID_SDK/extras/android/support/v13/android-support-v13.jar ./libs/
Then build android project with your favorite JDK: eclipse or ant. Then build android project with your favorite JDK: eclipse or ant.
<!--
Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
Author: Adrien Beraud <adrien.beraud@gmail.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.
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, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Additional permission under GNU GPL version 3 section 7:
If you modify this program, or any covered work, by linking or
combining it with the OpenSSL project's OpenSSL library (or a
modified version of that library), containing parts covered by the
terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
grants you additional permission to convey the resulting work.
Corresponding Source for a non-source form of such a combination
shall include the source code for the parts of OpenSSL used as well
as that of the covered work.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.savoirfairelinux.sflphone_daemon" package="com.savoirfairelinux.sflphone"
android:versionCode="1" android:versionCode="1"
android:versionName="1.0" > android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> <uses-sdk
android:minSdkVersion="13"
android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application android:label="@string/app_name" <application
android:name=".client.SFLphoneApplication"
android:debuggable="true"
android:icon="@drawable/ic_launcher" android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" > android:theme="@style/AppTheme" >
<activity
android:name=".client.SFLPhoneHomeActivity"
android:label="@string/title_activity_sflphone_home"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".client.SFLPhonePreferenceActivity"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.savoirfairelinux.sflphone.client.SFLPhoneHome" />
</activity>
<activity android:name=".client.AccountCreationActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"/>
<activity android:name=".client.AccountPreferenceActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"/>
<activity android:name=".client.CallActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"/>
<receiver
android:name=".client.receiver.NewOutgoingCallReceiver"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<service
android:name=".service.SipService">
<intent-filter>
<action android:name=".service.SipService" />
</intent-filter>
</service>
</application> </application>
</manifest> </manifest>
sflphone @ c84e6953
Subproject commit c0a81a7da156e66a2ff20080ae674e240858388b Subproject commit c84e6953bafa3268de3f71f0a334d726ee563e41
No preview for this file type
SRCDIR=jni/sflphone/daemon/src
# Fix a problem with dbusxx generating *const introspect() instead of introspect()
echo "Generating callmanager glue..."
dbusxx-xml2cpp $SRCDIR/dbus/callmanager-introspec.xml --adaptor=$SRCDIR/dbus/callmanager-glue-tmp.h
sed -e 's/const introspect()/introspect()/' <$SRCDIR/dbus/callmanager-glue-tmp.h >$SRCDIR/dbus/callmanager-glue.h
rm $SRCDIR/dbus/callmanager-glue-tmp.h
echo "Generating configurationmanager glue..."
dbusxx-xml2cpp $SRCDIR/dbus/configurationmanager-introspec.xml --adaptor=$SRCDIR/dbus/configurationmanager-glue-tmp.h
sed -e 's/const introspect()/introspect()/' <$SRCDIR/dbus/configurationmanager-glue-tmp.h >$SRCDIR/dbus/configurationmanager-glue.h
rm $SRCDIR/dbus/configurationmanager-glue-tmp.h
#echo "Generating contactmanager glue..."
#dbusxx-xml2cpp $SRCDIR/dbus/contactmanager-introspec.xml --adaptor=$SRCDIR/dbus/contactmanager-glue-tmp.h
#sed -e 's/const introspect()/introspect()/' <$SRCDIR/dbus/contactmanager-glue-tmp.h >$SRCDIR/dbus/contactmanager-glue.h
#rm $SRCDIR/dbus/contactmanager-glue-tmp.h
echo "Generating instance glue..."
dbusxx-xml2cpp $SRCDIR/dbus/instance-introspec.xml --adaptor=$SRCDIR/dbus/instance-glue-tmp.h
sed -e 's/const introspect()/introspect()/' <$SRCDIR/dbus/instance-glue-tmp.h >$SRCDIR/dbus/instance-glue.h
rm $SRCDIR/dbus/instance-glue-tmp.h
\ No newline at end of file
...@@ -83,6 +83,9 @@ else ...@@ -83,6 +83,9 @@ else
exit 3 exit 3
fi fi
# FIXME # FIXME
echo "Generating callmanager_wrap.cpp..." echo "Generating callmanager_wrap.cpp..."
mkdir -p $NATIVEDIR mkdir -p $NATIVEDIR
......
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target. # Project target.
target=android-15 target=android-17
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
Author: Alexandre Savard <alexandre.savard@gmail.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.
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, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Additional permission under GNU GPL version 3 section 7:
If you modify this program, or any covered work, by linking or
combining it with the OpenSSL project's OpenSSL library (or a
modified version of that library), containing parts covered by the
terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
grants you additional permission to convey the resulting work.
Corresponding Source for a non-source form of such a combination
shall include the source code for the parts of OpenSSL used as well
as that of the covered work.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal"
android:layout_below="@+id/editTo"
android:id="@+id/accountManagementLayout"
android:weightSum="1.0"
android:paddingLeft="8dp"
android:paddingRight="8dp" >
<Button
android:id="@+id/buttonAddAccount"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:onClick="onClick"
android:text="Add Account" />
<Button
android:id="@+id/buttonRemoveAccount"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:onClick="onClick"
android:text="Remove Account" />
</LinearLayout>
...@@ -56,6 +56,7 @@ as that of the covered work. ...@@ -56,6 +56,7 @@ as that of the covered work.
android:id="@+id/phoneNumberTextEntry" android:id="@+id/phoneNumberTextEntry"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:inputType="phone"
android:hint="Type phone number" android:hint="Type phone number"
android:layout_below="@+id/buttonCall"/> android:layout_below="@+id/buttonCall"/>
...@@ -72,6 +73,7 @@ as that of the covered work. ...@@ -72,6 +73,7 @@ as that of the covered work.
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight=".5" android:layout_weight=".5"
android:layout_margin="10dp"
android:background="@drawable/call_button" android:background="@drawable/call_button"
android:gravity="center_vertical" android:gravity="center_vertical"
android:onClick="onClick" android:onClick="onClick"
...@@ -82,6 +84,7 @@ as that of the covered work. ...@@ -82,6 +84,7 @@ as that of the covered work.
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight=".5" android:layout_weight=".5"
android:layout_margin="10dp"
android:background="@drawable/hangup_button" android:background="@drawable/hangup_button"
android:gravity="center_vertical" android:gravity="center_vertical"
android:onClick="onClick" android:onClick="onClick"
......
...@@ -107,7 +107,7 @@ as that of the covered work. ...@@ -107,7 +107,7 @@ as that of the covered work.
<include layout="@layout/dialpad"/> <include layout="@layout/dialpad"/>
</LinearLayout> </LinearLayout>
--> -->
<com.savoirfairelinux.sflphone.client.Numpad <com.savoirfairelinux.sflphone.model.Numpad
android:id="@+id/numPad" android:id="@+id/numPad"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
...@@ -37,11 +37,10 @@ as that of the covered work. ...@@ -37,11 +37,10 @@ as that of the covered work.
android:paddingLeft="8dp" android:paddingLeft="8dp"
android:paddingRight="8dp" > android:paddingRight="8dp" >
<com.savoirfairelinux.sflphone.utils.AccountSelectionButton <com.savoirfairelinux.sflphone.account.AccountSelectionSpinner
android:id="@+id/account_selection_button" android:id="@+id/account_selection_button"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="match_parent"/>
android:text="No Account Selected (for now)"/>
<ListView <ListView
android:id="@id/android:list" android:id="@id/android:list"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
Copyright (C) 2004-2012 Savoir-Faire Linux Inc. Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
Author: Alexandre Savard <alexandre.savard@gmail.com> Author: Adrien Beraud <adrien.beraud@gmail.com>
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -29,29 +29,28 @@ Corresponding Source for a non-source form of such a combination ...@@ -29,29 +29,28 @@ Corresponding Source for a non-source form of such a combination
shall include the source code for the parts of OpenSSL used as well shall include the source code for the parts of OpenSSL used as well
as that of the covered work. as that of the covered work.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:gravity="center_horizontal"
android:layout_below="@+id/editTo"
android:id="@+id/prefManagementLayout"
android:weightSum="1.0"
android:paddingLeft="8dp" android:paddingLeft="8dp"
android:paddingRight="8dp" > android:paddingRight="8dp" >
<Button <ListView
android:id="@+id/buttonCodecUp" android:id="@id/android:list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_alignParentTop="true" android:layout_weight="1"
android:text="Codec Up" /> style="@style/CallElementList"
android:drawSelectorOnTop="false" />
<Button <TextView
android:id="@+id/buttonCodecDown" android:id="@id/android:empty"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_alignParentTop="true" android:layout_gravity="center"
android:text="Codec Down" /> android:gravity="center"
android:text="No data" />
</LinearLayout> </LinearLayout>
File moved
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android" <merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" > android:layout_height="match_parent" >
<TableRow <TableRow
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0px" android:layout_height="0px"
android:layout_weight="1" > android:layout_weight="1" >
<Button android:id="@+id/numButton1"/>
<Button
android:id="@+id/numButton1"
style="?android:attr/buttonBarButtonStyle" />
<Button android:id="@+id/numButton2" /> <Button android:id="@+id/numButton2" />
<Button android:id="@+id/numButton3" /> <Button android:id="@+id/numButton3" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0px" android:layout_height="0px"
android:layout_weight="1" > android:layout_weight="1" >
<Button android:id="@+id/numButton4" /> <Button android:id="@+id/numButton4" />
<Button android:id="@+id/numButton5" /> <Button android:id="@+id/numButton5" />
<Button android:id="@+id/numButton6" /> <Button android:id="@+id/numButton6" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0px" android:layout_height="0px"
android:layout_weight="1" > android:layout_weight="1" >
<Button android:id="@+id/numButton7" /> <Button android:id="@+id/numButton7" />
<Button android:id="@+id/numButton8" /> <Button android:id="@+id/numButton8" />
<Button android:id="@+id/numButton9" /> <Button android:id="@+id/numButton9" />
</TableRow> </TableRow>
<TableRow <TableRow
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0px" android:layout_height="0px"
android:layout_weight="1" > android:layout_weight="1" >
<Button android:id="@+id/numButtonStar" /> <Button android:id="@+id/numButtonStar" />
<Button android:id="@+id/numButton0" /> <Button android:id="@+id/numButton0" />
<Button android:id="@+id/numButtonSharp" /> <Button android:id="@+id/numButtonSharp" />
</TableRow> </TableRow>
</merge> </merge>
\ No newline at end of file
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.savoirfairelinux.sflphone.utils; package com.savoirfairelinux.sflphone.account;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
......
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.savoirfairelinux.sflphone.utils; package com.savoirfairelinux.sflphone.account;
import com.savoirfairelinux.sflphone.R; import com.savoirfairelinux.sflphone.R;
import com.savoirfairelinux.sflphone.utils.AccountDetail; import com.savoirfairelinux.sflphone.account.AccountDetail;
import android.util.Log; import android.util.Log;
......
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.savoirfairelinux.sflphone.utils; package com.savoirfairelinux.sflphone.account;
import com.savoirfairelinux.sflphone.R; import com.savoirfairelinux.sflphone.R;
import com.savoirfairelinux.sflphone.utils.AccountDetail; import com.savoirfairelinux.sflphone.account.AccountDetail;
import android.util.Log; import android.util.Log;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment