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

Some documentation

This commit is contained in:
Sebastian Kaspari 2010-03-08 21:38:29 +01:00
parent add973918d
commit 7ce77cf119

View File

@ -60,7 +60,7 @@ import org.yaaic.model.Server;
import org.yaaic.receiver.ChannelReceiver; import org.yaaic.receiver.ChannelReceiver;
/** /**
* Connected to server * The server view with a scrollable list of all channels
* *
* @author Sebastian Kaspari <sebastian@yaaic.org> * @author Sebastian Kaspari <sebastian@yaaic.org>
*/ */
@ -77,6 +77,9 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
private Gallery deck; private Gallery deck;
private DeckAdapter deckAdapter; private DeckAdapter deckAdapter;
/**
* On create
*/
@Override @Override
protected void onCreate(Bundle savedInstanceState) protected void onCreate(Bundle savedInstanceState)
{ {
@ -105,6 +108,9 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
} }
} }
/**
* On resume
*/
@Override @Override
public void onResume() public void onResume()
{ {
@ -119,6 +125,9 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
registerReceiver(receiver, new IntentFilter(Broadcast.CHANNEL_REMOVE)); registerReceiver(receiver, new IntentFilter(Broadcast.CHANNEL_REMOVE));
} }
/**
* On Pause
*/
@Override @Override
public void onPause() public void onPause()
{ {
@ -128,18 +137,28 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
unregisterReceiver(receiver); unregisterReceiver(receiver);
} }
/**
* On service connected
*/
public void onServiceConnected(ComponentName name, IBinder service) public void onServiceConnected(ComponentName name, IBinder service)
{ {
this.binder = (IRCBinder) service; this.binder = (IRCBinder) service;
} }
/**
* On service disconnected
*/
public void onServiceDisconnected(ComponentName name) public void onServiceDisconnected(ComponentName name)
{ {
this.binder = null; this.binder = null;
} }
/**
* On options menu requested
*/
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu)
{
super.onCreateOptionsMenu(menu); super.onCreateOptionsMenu(menu);
// inflate from xml // inflate from xml
@ -149,6 +168,9 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
return true; return true;
} }
/**
* On menu item selected
*/
@Override @Override
public boolean onMenuItemSelected(int featureId, MenuItem item) public boolean onMenuItemSelected(int featureId, MenuItem item)
{ {