1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-23 01:12:17 -05:00

Database: Removed getChannels(), Moved getChannelsById() -> getChannelsByServerId()

This commit is contained in:
Sebastian Kaspari 2010-04-11 21:50:47 +02:00
parent 206d152981
commit c20de9fbd2

View File

@ -308,12 +308,14 @@ public class Database extends SQLiteOpenHelper
} }
/** /**
* Get all channels * Get all (auto-join) channels of a server
* *
* @return * @return
*/ */
public Cursor getChannels() public Cursor getChannels(int serverId)
{ {
// XXX: Should no return a cursor but the populated objects
return this.getReadableDatabase().query( return this.getReadableDatabase().query(
ChannelConstants.TABLE_NAME, ChannelConstants.TABLE_NAME,
ChannelConstants.ALL, ChannelConstants.ALL,
@ -331,8 +333,10 @@ public class Database extends SQLiteOpenHelper
* @param server Unique id of server * @param server Unique id of server
* @return * @return
*/ */
public Cursor getChannelsById(int serverId) public Cursor getChannelsByServerId(int serverId)
{ {
// XXX: Should no return a cursor but the populated objects
return this.getReadableDatabase().query( return this.getReadableDatabase().query(
ChannelConstants.TABLE_NAME, ChannelConstants.TABLE_NAME,
ChannelConstants.ALL, ChannelConstants.ALL,