1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 17:02:21 -05:00

Reorganized file structure

This commit is contained in:
Sebastian Kaspari 2009-11-20 17:08:57 +01:00
parent af6236d15e
commit 4d7fcbf01d
8 changed files with 51 additions and 33 deletions

View File

@ -23,25 +23,30 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
package="org.yaaic.client" package="org.yaaic.client"
android:versionCode="1" android:versionName="0.1.0"> android:versionCode="1" android:versionName="0.1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="YaaicApplication"> <application android:icon="@drawable/icon" android:label="@string/app_name" android:name="YaaicApplication">
<activity android:name=".ServerList" <activity
android:name=".view.ServerListActivity"
android:label="@string/app_name"> android:label="@string/app_name">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name=".ServerAdd" <activity
android:name=".view.ServerAddActivity"
android:label="@string/server_add_title"> android:label="@string/server_add_title">
</activity> </activity>
<activity android:name=".Settings" <activity
android:name=".view.SettingsActivity"
android:label="@string/settings_title"> android:label="@string/settings_title">
</activity> </activity>
<activity android:name=".About" <activity
android:name=".view.AboutActivity"
android:label="@string/about_title" android:label="@string/about_title"
android:theme="@android:style/Theme.Dialog" > android:theme="@android:style/Theme.Dialog" >
</activity> </activity>
<activity android:name=".ServerWindow" <activity
android:label="ServerWindow"> android:name=".view.ServerActivity"
android:label="">
</activity> </activity>
<service android:name=".irc.IrcService"/> <service android:name=".irc.IrcService"/>
</application> </application>

View File

@ -18,8 +18,10 @@ GNU General Public License for more details.
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 Yaaic. If not, see <http://www.gnu.org/licenses/>. along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/ */
package org.yaaic.client; package org.yaaic.client.adapter;
import org.yaaic.client.R;
import org.yaaic.client.R.id;
import org.yaaic.client.irc.IrcBinder; import org.yaaic.client.irc.IrcBinder;
import android.app.Activity; import android.app.Activity;

View File

@ -18,7 +18,9 @@ GNU General Public License for more details.
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 Yaaic. If not, see <http://www.gnu.org/licenses/>. along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/ */
package org.yaaic.client; package org.yaaic.client.adapter;
import org.yaaic.client.view.ServerActivity;
import android.view.Gravity; import android.view.Gravity;
import android.view.View; import android.view.View;
@ -34,10 +36,10 @@ import android.widget.TextView;
*/ */
public class ServerWindowListAdapter extends BaseExpandableListAdapter public class ServerWindowListAdapter extends BaseExpandableListAdapter
{ {
private ServerWindow serverWindow; private ServerActivity serverWindow;
private String[] groups = { "Channels (0)", "Queries (0)" }; private String[] groups = { "Channels (0)", "Queries (0)" };
public ServerWindowListAdapter(ServerWindow serverWindow) public ServerWindowListAdapter(ServerActivity serverWindow)
{ {
this.serverWindow = serverWindow; this.serverWindow = serverWindow;
} }

View File

@ -18,7 +18,9 @@ GNU General Public License for more details.
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 Yaaic. If not, see <http://www.gnu.org/licenses/>. along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/ */
package org.yaaic.client; package org.yaaic.client.view;
import org.yaaic.client.R;
import android.app.Activity; import android.app.Activity;
import android.os.Bundle; import android.os.Bundle;
@ -28,7 +30,7 @@ import android.os.Bundle;
* *
* @author Sebastian Kaspari <s.kaspari@googlemail.com> * @author Sebastian Kaspari <s.kaspari@googlemail.com>
*/ */
public class About extends Activity public class AboutActivity extends Activity
{ {
@Override @Override
protected void onCreate(Bundle savedInstanceState) protected void onCreate(Bundle savedInstanceState)

View File

@ -18,8 +18,10 @@ GNU General Public License for more details.
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 Yaaic. If not, see <http://www.gnu.org/licenses/>. along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/ */
package org.yaaic.client; package org.yaaic.client.view;
import org.yaaic.client.R;
import org.yaaic.client.adapter.ServerWindowListAdapter;
import org.yaaic.client.db.ServerConstants; import org.yaaic.client.db.ServerConstants;
import org.yaaic.client.db.ServerDatabase; import org.yaaic.client.db.ServerDatabase;
import org.yaaic.client.irc.IrcBinder; import org.yaaic.client.irc.IrcBinder;
@ -43,7 +45,7 @@ import android.widget.TextView;
* *
* @author Sebastian Kaspari <s.kaspari@googlemail.com> * @author Sebastian Kaspari <s.kaspari@googlemail.com>
*/ */
public class ServerWindow extends ExpandableListActivity implements ServiceConnection public class ServerActivity extends ExpandableListActivity implements ServiceConnection
{ {
private static final String TAG = "Yaaic/ServerWindow"; private static final String TAG = "Yaaic/ServerWindow";
private IrcBinder binder; private IrcBinder binder;

View File

@ -18,8 +18,9 @@ GNU General Public License for more details.
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 Yaaic. If not, see <http://www.gnu.org/licenses/>. along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/ */
package org.yaaic.client; package org.yaaic.client.view;
import org.yaaic.client.R;
import org.yaaic.client.db.ServerDatabase; import org.yaaic.client.db.ServerDatabase;
import android.app.Activity; import android.app.Activity;
@ -35,7 +36,7 @@ import android.widget.EditText;
* *
* @author Sebastian Kaspari <s.kaspari@googlemail.com> * @author Sebastian Kaspari <s.kaspari@googlemail.com>
*/ */
public class ServerAdd extends Activity implements OnClickListener public class ServerAddActivity extends Activity implements OnClickListener
{ {
@Override @Override
public void onCreate(Bundle savedInstanceState) public void onCreate(Bundle savedInstanceState)

View File

@ -18,7 +18,7 @@ GNU General Public License for more details.
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 Yaaic. If not, see <http://www.gnu.org/licenses/>. along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/ */
package org.yaaic.client; package org.yaaic.client.view;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.ListActivity; import android.app.ListActivity;
@ -46,6 +46,8 @@ import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import android.widget.AdapterView.OnItemLongClickListener; import android.widget.AdapterView.OnItemLongClickListener;
import org.yaaic.client.R;
import org.yaaic.client.adapter.ServerListAdapter;
import org.yaaic.client.db.ServerConstants; import org.yaaic.client.db.ServerConstants;
import org.yaaic.client.db.ServerDatabase; import org.yaaic.client.db.ServerDatabase;
import org.yaaic.client.irc.IrcBinder; import org.yaaic.client.irc.IrcBinder;
@ -56,7 +58,7 @@ import org.yaaic.client.irc.IrcService;
* *
* @author Sebastian Kaspari <s.kaspari@googlemail.com> * @author Sebastian Kaspari <s.kaspari@googlemail.com>
*/ */
public class ServerList extends ListActivity implements OnItemLongClickListener, ServiceConnection public class ServerListActivity extends ListActivity implements OnItemLongClickListener, ServiceConnection
{ {
/** /**
* Debugging/Log tag * Debugging/Log tag
@ -179,7 +181,7 @@ public class ServerList extends ListActivity implements OnItemLongClickListener,
{ {
TextView tv = (TextView) view.findViewById(R.id.server_title); TextView tv = (TextView) view.findViewById(R.id.server_title);
Intent serverIntent = new Intent(this, ServerWindow.class); Intent serverIntent = new Intent(this, ServerActivity.class);
serverIntent.putExtra("server_title", tv.getText()); serverIntent.putExtra("server_title", tv.getText());
startActivity(serverIntent); startActivity(serverIntent);
//cursor.requery(); //cursor.requery();
@ -256,17 +258,17 @@ public class ServerList extends ListActivity implements OnItemLongClickListener,
{ {
// Add a new server // Add a new server
case R.id.server_add: case R.id.server_add:
Intent serverAddIntent = new Intent(this, ServerAdd.class); Intent serverAddIntent = new Intent(this, ServerAddActivity.class);
startActivity(serverAddIntent); startActivity(serverAddIntent);
return true; return true;
// Show settings // Show settings
case R.id.settings: case R.id.settings:
Intent settingsIntent = new Intent(this, Settings.class); Intent settingsIntent = new Intent(this, SettingsActivity.class);
startActivity(settingsIntent); startActivity(settingsIntent);
return true; return true;
// Show about window // Show about window
case R.id.about: case R.id.about:
Intent aboutIntent = new Intent(this, About.class); Intent aboutIntent = new Intent(this, AboutActivity.class);
startActivity(aboutIntent); startActivity(aboutIntent);
return true; return true;
} }

View File

@ -18,7 +18,9 @@ GNU General Public License for more details.
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 Yaaic. If not, see <http://www.gnu.org/licenses/>. along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/ */
package org.yaaic.client; package org.yaaic.client.view;
import org.yaaic.client.R;
import android.os.Bundle; import android.os.Bundle;
import android.preference.PreferenceActivity; import android.preference.PreferenceActivity;
@ -28,7 +30,7 @@ import android.preference.PreferenceActivity;
* *
* @author Sebastian Kaspari <s.kaspari@googlemail.com> * @author Sebastian Kaspari <s.kaspari@googlemail.com>
*/ */
public class Settings extends PreferenceActivity public class SettingsActivity extends PreferenceActivity
{ {
@Override @Override
public void onCreate(Bundle savedInstanceState) public void onCreate(Bundle savedInstanceState)