package com.jbidwatcher.util;
/*
* Copyright (c) 2000-2007, CyberFOX Software, Inc. All Rights Reserved.
*
* Developed by mrs (Morgan Schweers)
*/
import java.text.SimpleDateFormat;
import java.util.Date;
public class Constants {
/** Program identifaction constants, so we change the version and such
* in just one place.
*/
public static final String PROGRAM_NAME = "JBidwatcher";
public static final String PROGRAM_VERS = "2.99pre5";
public static String REVISION() {
String rval = Constants.class.getPackage().getImplementationVersion();
if(rval == null) return "debug";
return rval.substring(rval.indexOf('-')+1);
}
/** The clock format to use everywhere, when referring to remote times.
*/
public static final SimpleDateFormat remoteClockFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss z");
public static final SimpleDateFormat localClockFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss z");
public static final Date FAR_FUTURE = new Date(Long.MAX_VALUE);
public static final Date LONG_AGO = new Date(Long.MIN_VALUE);
/** The URL to use when checking for updates.
*/
public static final String UPDATE_URL = "http://www.jbidwatcher.com/jbidwatcher2.xml";
/** One second in microseconds.
*/
public static final int ONE_SECOND = 1000;
public static final int THREE_SECONDS = 3 * ONE_SECOND;
/** Thirty seconds in microseconds.
*/
public static final int THIRTY_SECONDS= (30 * ONE_SECOND);
/** One minute in microseconds.
*/
public static final int ONE_MINUTE = THIRTY_SECONDS * 2;
/** Thirty minutes in microseconds.
*/
public static final int THIRTY_MINUTES= 30 * ONE_MINUTE;
/** One hour in microseconds.
*/
public static final int ONE_HOUR= 60 * ONE_MINUTE;
/** One day in microseconds.
*/
public static final long ONE_DAY= 24 * ONE_HOUR;
/** What browser to pretend to be, when talking to the auction servers.
*/
public static final String FAKE_BROWSER = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36";
/** Indicates that there is no popup context for this action. Used to
* prepend to menu and button actions which do the same as popup
* actions, but need to operate on selection lists.;
*/
public static final String NO_CONTEXT = "NC-";
/**
* The doctypes for the various XML files we save. This is useful for
* changing in a single place where the dtd's are loaded from, if
* necessary.
*/
public static final String XML_SEARCHES_DOCTYPE = "<!DOCTYPE auctions SYSTEM \"http://www.jbidwatcher.com/searches.dtd\">";
public static final int DEFAULT_COLUMN_WIDTH=75;
public static final int DEFAULT_ROW_HEIGHT=20;
public static final int MICROTHUMBNAIL_ROW_HEIGHT = 72;
public final static String[] SITE_CHOICES = {
"ebay.com",
"ebay.de",
"ebay.ca",
"ebay.co.uk",
"tw.ebay.com",
"ebay.es",
"ebay.fr",
"ebay.it",
"ebay.com.au",
"ebay.at",
"benl.ebay.be",
"ebay.nl",
"ebay.com.sg",
"ebaysweden.com",
"ebay.ch",
"befr.ebay.be",
"ebay.ie",
"ebay.ph"};
public final static String EBAY_DISPLAY_NAME = "eBay";
public final static String EBAY_SERVER_NAME = "ebay";
}