Skip to content
Permalink
Browse files

first commit

  • Loading branch information...
pfleidi committed Aug 23, 2009
0 parents commit 68fe33a0444533c4bb993d446a2ff71d3e09baeb
Showing with 4,555 additions and 0 deletions.
  1. +37 −0 AndroidManifest.xml
  2. +22 −0 default.properties
  3. BIN libs/smack.jar
  4. BIN res/drawable/ic_menu_block.png
  5. BIN res/drawable/ic_menu_view_off.png
  6. BIN res/drawable/icon.png
  7. BIN res/drawable/yaxim_menu_connect.png
  8. BIN res/drawable/yaxim_menu_disconnect.png
  9. +69 −0 res/layout/accountprefs.xml
  10. +95 −0 res/layout/addrosteritemdialog.xml
  11. +34 −0 res/layout/chatrow.xml
  12. +108 −0 res/layout/firststartdialog.xml
  13. +17 −0 res/layout/main.xml
  14. +37 −0 res/layout/mainchat.xml
  15. +27 −0 res/layout/mainchild_row.xml
  16. +9 −0 res/layout/maingroup_row.xml
  17. +79 −0 res/layout/mainprefs.xml
  18. +53 −0 res/layout/moverosterentrytogroupdialog.xml
  19. +40 −0 res/layout/removerosteritemdialog.xml
  20. +45 −0 res/layout/renameentrydialog.xml
  21. +45 −0 res/layout/renamegroupdialog.xml
  22. +84 −0 res/layout/statusdialog.xml
  23. +43 −0 res/menu/roster_contextmenu.xml
  24. +47 −0 res/values/prefArrays.xml
  25. +155 −0 res/values/strings.xml
  26. +40 −0 src/de/hdmstuttgart/yaxim/GenericExpandableListActivity.java
  27. +11 −0 src/de/hdmstuttgart/yaxim/IXMPPRosterCallback.aidl
  28. +563 −0 src/de/hdmstuttgart/yaxim/MainWindow.java
  29. +151 −0 src/de/hdmstuttgart/yaxim/XMPPRosterServiceAdapter.java
  30. +22 −0 src/de/hdmstuttgart/yaxim/chat/ChatItem.java
  31. +304 −0 src/de/hdmstuttgart/yaxim/chat/ChatWindow.java
  32. +5 −0 src/de/hdmstuttgart/yaxim/chat/IXMPPChatCallback.aidl
  33. +67 −0 src/de/hdmstuttgart/yaxim/chat/XMPPChatServiceAdapter.java
  34. +3 −0 src/de/hdmstuttgart/yaxim/data/RosterItem.aidl
  35. +86 −0 src/de/hdmstuttgart/yaxim/data/RosterItem.java
  36. +162 −0 src/de/hdmstuttgart/yaxim/dialogs/AddRosterItemDialog.java
  37. +128 −0 src/de/hdmstuttgart/yaxim/dialogs/ChangeStatusDialog.java
  38. +132 −0 src/de/hdmstuttgart/yaxim/dialogs/FirstStartDialog.java
  39. +39 −0 src/de/hdmstuttgart/yaxim/dialogs/GenericDialog.java
  40. +125 −0 src/de/hdmstuttgart/yaxim/dialogs/MoveRosterItemToGroupDialog.java
  41. +65 −0 src/de/hdmstuttgart/yaxim/dialogs/RemoveRosterItemDialog.java
  42. +63 −0 src/de/hdmstuttgart/yaxim/dialogs/RenameRosterGroupDialog.java
  43. +64 −0 src/de/hdmstuttgart/yaxim/dialogs/RenameRosterItemDialog.java
  44. +11 −0 src/de/hdmstuttgart/yaxim/exceptions/YaximXMPPAdressMalformedException.java
  45. +11 −0 src/de/hdmstuttgart/yaxim/exceptions/YaximXMPPException.java
  46. +213 −0 src/de/hdmstuttgart/yaxim/preferences/AccountPrefs.java
  47. +12 −0 src/de/hdmstuttgart/yaxim/preferences/MainPrefs.java
  48. +130 −0 src/de/hdmstuttgart/yaxim/service/GenericService.java
  49. +12 −0 src/de/hdmstuttgart/yaxim/service/IXMPPChatService.aidl
  50. +32 −0 src/de/hdmstuttgart/yaxim/service/IXMPPRosterService.aidl
  51. +30 −0 src/de/hdmstuttgart/yaxim/service/Smackable.java
  52. +430 −0 src/de/hdmstuttgart/yaxim/service/SmackableImp.java
  53. +363 −0 src/de/hdmstuttgart/yaxim/service/XMPPService.java
  54. +7 −0 src/de/hdmstuttgart/yaxim/service/XMPPServiceCallback.java
  55. +8 −0 src/de/hdmstuttgart/yaxim/util/AdapterConstants.java
  56. +127 −0 src/de/hdmstuttgart/yaxim/util/ExpandableRosterAdapter.java
  57. +14 −0 src/de/hdmstuttgart/yaxim/util/GetDateTimeHelper.java
  58. +14 −0 src/de/hdmstuttgart/yaxim/util/PreferenceConstants.java
  59. +23 −0 src/de/hdmstuttgart/yaxim/util/StatusMode.java
  60. +42 −0 src/de/hdmstuttgart/yaxim/util/XMPPHelper.java
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.hdmstuttgart.yaxim" android:versionCode="1"
android:versionName="1.0.0">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission." />
<application android:icon="@drawable/icon"
android:debuggable="true" android:label="@string/app_name">

<activity android:name=".MainWindow" android:label="@string/app_name"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".chat.ChatWindow" android:label="@string/app_name"
android:alwaysRetainTaskState="true">
</activity>

<activity android:name=".preferences.MainPrefs"
android:label="@string/app_name">
</activity>

<activity android:name=".preferences.AccountPrefs"
android:label="@string/app_name">
</activity>

<service android:name=".service.XMPPService">
<intent-filter>
<action android:name="de.hdmstuttgart.yaxim.XMPPSERVICE" />
</intent-filter>
</service>
</application>
</manifest>
@@ -0,0 +1,22 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-3
# apk configurations. This property allows creation of APK files with limited
# resources. For example, if your application contains many locales and
# you wish to release multiple smaller apks instead of a large one, you can
# define configuration to create apks with limited language sets.
# Format is a comma separated list of configuration names. For each
# configuration, a property will declare the resource configurations to
# include. Example:
# apk-configurations=european,northamerica
# apk-config-european=en,fr,it,de,es
# apk-config-northamerica=en,es
apk-configurations=
BIN +712 KB libs/smack.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN +6.04 KB res/drawable/icon.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/account_settings_title">
<EditTextPreference
android:id="@+id/account_jabberID"
android:key="account_jabberID"
android:title="@string/account_jabberID_title"
android:summary="@string/account_jabberID_sum"
android:dialogTitle="@string/account_jabberID_sum"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
/>
<EditTextPreference
android:id="@+id/account_jabberPW"
android:key="account_jabberPW"
android:title="@string/account_jabberPW_title"
android:summary="@string/account_jabberPW_sum"
android:dialogTitle="@string/account_jabberPW_sum"
android:singleLine="true"
android:password="true"
/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/account_settings_title">
<EditTextPreference
android:id="@+id/account_port"
android:key="account_port"
android:title="@string/account_port_title"
android:summary="@string/account_port_summ"
android:dialogTitle="@string/account_port_title"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
android:numeric="integer"
/>
<EditTextPreference
android:id="@+id/account_resource"
android:key="account_resource"
android:title="@string/account_resource_title"
android:summary="@string/account_resource_summ"
android:textAppearance="?android:attr/textAppearanceLarge"
android:dialogTitle="@string/account_resource_dialog_title"
android:singleLine="true"
/>
<EditTextPreference
android:id="@+id/account_prio"
android:key="account_prio"
android:title="@string/account_prio_title"
android:summary="@string/account_prio_summ"
android:dialogTitle="@string/account_prio_title"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
android:numeric="integer"
/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/account_options_title">
<CheckBoxPreference
android:id="@+id/connstartup"
android:key="connstartup"
android:title="@string/connstartup_title"
android:summary="@string/connstartup_summary"
/>
<CheckBoxPreference
android:id="@+id/reconnect"
android:key="reconnect"
android:title="@string/reconnect_title"
android:summary="@string/reconnect_summary"
/>
</PreferenceCategory>
</PreferenceScreen>
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/statusLayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:minWidth="200px"
android:layout_height="fill_parent">

<ScrollView android:layout_marginBottom="50dip"
android:id="@+id/StatusDialog_ScrollView"
android:layout_height="wrap_content"
android:layout_width="fill_parent" >
<LinearLayout
android:id="@+id/AddContact_ScrollLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/Addcontact_Title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/addFriend_Summ"
android:padding="10sp"
/>
<EditText
android:id="@+id/AddContact_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="foo@jabber.bar.com"/>

<EditText
android:id="@+id/AddContactAlias_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/addFriend_aliasHint"
/>


<Spinner android:id="@+id/AddContact_GroupSpinner"
android:prompt="@string/AddContact_SpinnerPrompt"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

</Spinner>

<EditText
android:id="@+id/AddRosterItem_NewGroup_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visible="false"
android:enabled="false"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/NewGroup_EditTextField_Hint"
/>
</LinearLayout>
</ScrollView>
<LinearLayout
android:layout_marginTop="-50dip"
android:id="@+id/AddContact_ButtonLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<Button
android:id="@+id/AddContact_OkButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_OK"
android:clickable="false"
/>

<Button
android:id="@+id/AddContact_CancelButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_Cancel"
/>

</LinearLayout>
</LinearLayout>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="4px"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView android:id="@+id/chat_info"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textSize="14sp"
android:gravity="center_vertical"
android:textStyle="italic"

android:singleLine="true"
android:ellipsize="end"
/>
<TextView android:id="@+id/chat_message"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_weight="1"
android:gravity="center_vertical"
android:autoLink="all"
/>
</LinearLayout>
</LinearLayout>

@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/statusLayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">


<TextView
android:id="@+id/StartupDialog_Summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/icon"
android:text="@string/StartupDialog_Summary"
android:padding="10sp"
/>
<ScrollView android:layout_marginBottom="50dip"
android:id="@+id/StartupDialog_ScrollView"
android:layout_height="wrap_content"
android:layout_width="fill_parent" >
<LinearLayout
android:id="@+id/AddContact_ScrollLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/StartupDialog_Username_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/StartupDialog_Username_title"
android:padding="2sp"
/>
<EditText
android:id="@+id/StartupDialog_JID_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/Global_JID_hint"/>
<TextView
android:id="@+id/StartupDialog_passwd_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/StartupDialog_passwd_title"
android:padding="2sp"
/>
<EditText
android:id="@+id/StartupDialog_PASSWD_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:password="true"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/StartupDialog_pwHint"
/>
<TextView
android:id="@+id/StartupDialog_port_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/StartupDialog_port_title"
android:padding="2sp"
/>
<EditText
android:id="@+id/StartupDialog_PORT_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:numeric="integer"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:text="@string/StartupDialog_portHint"
/>
</LinearLayout>
</ScrollView>

<LinearLayout
android:layout_marginTop="-50dip"
android:id="@+id/StartupDialog_ButtonLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<Button
android:id="@+id/StartupDialog_OkButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_OK"
android:clickable="false"
/>

<Button
android:id="@+id/StartupDialog_CancelButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_Cancel"
/>

</LinearLayout>
</LinearLayout>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ExpandableListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollingCache="true"/>

<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Yaxim is offline. No Contacts to show!"/>
</LinearLayout>

0 comments on commit 68fe33a

Please sign in to comment.
You can’t perform that action at this time.