/**
 * Constants and common helper methods for the app
 */
package com.sharefaith.churchapp;

import com.codename1.io.Log;

public class SFUtil
{
	/**
	 * Debug flag for printing to the console
	 */
	public static final boolean DEBUG = true;
	
	/**
	 * Icon location tags
	 * 
	 * If you need to add more, make them powers of 2 (4, 8, 16...) so they can be summed
	 */
	
	/**
	 * Icons that do not display in the app (section is disabled according to app configuration)
	 */
	public static final int ICON_LOCATION_NODISPLAY = 0;
	
	/**
	 * Icons that display on the tab bar
	 */
	public static final int ICON_LOCATION_TABBAR = 1;
	
	/**
	 * Icons that display on the "More" screen
	 */
	public static final int ICON_LOCATION_MORESCREEN = 2;
	
	/**
	 * (Most?) everything in this class should be static, so providing a class constructor is only a formality
	 * 
	 * @since 20140312
	 * @author costmo
	 */
	public SFUtil()
	{
		
	}
	
	/**
	 * Print a message to the console.
	 * 
	 * Wrapper to codename1.io.Log.p (which is a wrapper to System.out.println()) to enforce the DEBUG flag
	 * @param message The message to 
	 */
	public static void p( String message )
	{
		if( SFUtil.DEBUG )
		{
			Log.p( message );
		}
	}
}

