From 8fc96c2d8624bc134e0990370c9acd0b7ef3decd Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Fri, 12 Mar 2010 19:48:58 +0100 Subject: [PATCH] Constants for the identities table --- src/org/yaaic/db/ChannelConstants.java | 2 +- src/org/yaaic/db/IdentityConstants.java | 50 +++++++++++++++++++++++++ src/org/yaaic/db/ServerConstants.java | 2 +- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 src/org/yaaic/db/IdentityConstants.java diff --git a/src/org/yaaic/db/ChannelConstants.java b/src/org/yaaic/db/ChannelConstants.java index 001b47a..36edcea 100644 --- a/src/org/yaaic/db/ChannelConstants.java +++ b/src/org/yaaic/db/ChannelConstants.java @@ -37,7 +37,7 @@ public interface ChannelConstants extends BaseColumns public static final String SERVER = "server"; /** - * All fields in the database + * All fields of the table */ public static final String[] ALL = { NAME, diff --git a/src/org/yaaic/db/IdentityConstants.java b/src/org/yaaic/db/IdentityConstants.java new file mode 100644 index 0000000..0f02bc5 --- /dev/null +++ b/src/org/yaaic/db/IdentityConstants.java @@ -0,0 +1,50 @@ +/* +Yaaic - Yet Another Android IRC Client + +Copyright 2009 Sebastian Kaspari + +This file is part of Yaaic. + +Yaaic 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. + +Yaaic 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 Yaaic. If not, see . +*/ +package org.yaaic.db; + +import android.provider.BaseColumns; + +/** + * Constants for the identity database + * + * @author Sebastian Kaspari + */ +public class IdentityConstants implements BaseColumns +{ + public static final String TABLE_NAME = "identities"; + + // fields + public static final String NICKNAME = "nickname"; + public static final String IDENT = "ident"; + public static final String REALNAME = "realname"; + public static final String SERVER = "server"; + + /** + * All fields of the table + */ + public static final String[] ALL = { + _ID, + NICKNAME, + IDENT, + REALNAME, + SERVER + }; +} diff --git a/src/org/yaaic/db/ServerConstants.java b/src/org/yaaic/db/ServerConstants.java index 5d80e4a..da97752 100644 --- a/src/org/yaaic/db/ServerConstants.java +++ b/src/org/yaaic/db/ServerConstants.java @@ -41,7 +41,7 @@ public interface ServerConstants extends BaseColumns public static final String IDENTITY = "identity"; /** - * All fields in the table + * All fields of the table */ public static final String[] ALL = { _ID,