Upgrade the version number to 2.1pre4-1010. by mrs, 09 Aug, 2009 02:23 AM
Diff this changeset:
Constants.java
mrs       package com.jbidwatcher.util;
cyberfox  /*
cyberfox   * Copyright (c) 2000-2007, CyberFOX Software, Inc. All Rights Reserved.
cyberfox   *
cyberfox   * Developed by mrs (Morgan Schweers)
cyberfox   */
cyberfox  
cyberfox  import java.text.SimpleDateFormat;
mrs       import java.util.Date;
cyberfox 10 
mrs      11 @SuppressWarnings({"UtilityClass", "ClassMayBeInterface", "UtilityClassWithoutPrivateConstructor"})
cyberfox 12 public class Constants {
cyberfox 13 /** Program identifaction constants, so we change the version and such
cyberfox 14  * in just one place.
cyberfox 15  */
mrs      16   public static final String PROGRAM_NAME = "JBidwatcher";
mrs      17   public static final String PROGRAM_VERS = "2.1pre4";
mrs      18   public static final String SVN_REVISION = "1010";
cyberfox 19 /** The clock format to use everywhere, when referring to remote times.
cyberfox 20  */
cyberfox 21   public static final SimpleDateFormat remoteClockFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss z");
cyberfox 22   public static final SimpleDateFormat localClockFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss z");
mrs      23   public static final Date FAR_FUTURE = new Date(Long.MAX_VALUE);
mrs      24   public static final Date LONG_AGO = new Date(Long.MIN_VALUE);
cyberfox 25 
mrs      26   /** The URL to use when checking for updates.
cyberfox 27  */
mrs      28   public static final String UPDATE_URL = "http://www.jbidwatcher.com/jbidwatcher2.xml";
cyberfox 29 /** One second in microseconds.
cyberfox 30  */
cyberfox 31   public static final int ONE_SECOND = 1000;
mrs      32   public static final int THREE_SECONDS = 3 * ONE_SECOND;
mrs      33   /** Thirty seconds in microseconds.
cyberfox 34  */
cyberfox 35   public static final int THIRTY_SECONDS= (30 * ONE_SECOND);
cyberfox 36 /** One minute in microseconds.
cyberfox 37  */
cyberfox 38   public static final int ONE_MINUTE = THIRTY_SECONDS * 2;
cyberfox 39 /** Thirty minutes in microseconds.
cyberfox 40  */
cyberfox 41   public static final int THIRTY_MINUTES= 30 * ONE_MINUTE;
cyberfox 42 /** Forty minutes in microseconds.
cyberfox 43  */
cyberfox 44   public static final int FORTY_MINUTES = 40 * ONE_MINUTE;
cyberfox 45 /** One hour in microseconds.
cyberfox 46  */
cyberfox 47   public static final int ONE_HOUR= 60 * ONE_MINUTE;
cyberfox 48 /** One day in microseconds.
cyberfox 49  */
mrs      50   public static final long ONE_DAY= 24 * ONE_HOUR;
cyberfox 51 /** What port to listen on, by default.
cyberfox 52  */
cyberfox 53   public static final int DEFAULT_SERVER_PORT = 9099;
cyberfox 54 /** String version of what port to listen on by default.
cyberfox 55  */
mrs      56   public static final String DEFAULT_SERVER_PORT_STRING = Integer.toString(Constants.DEFAULT_SERVER_PORT);
cyberfox 57 /** What browser to pretend to be, when talking to the auction servers.
cyberfox 58  */
mrs      59   public static final String FAKE_BROWSER = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2";
cyberfox 60 /** Indicates that there is no popup context for this action.  Used to
cyberfox 61  * prepend to menu and button actions which do the same as popup
cyberfox 62  * actions, but need to operate on selection lists.;
cyberfox 63  */
cyberfox 64   public static final String NO_CONTEXT = "NC-";
cyberfox 65 /**
cyberfox 66  * The doctypes for the various XML files we save.  This is useful for
cyberfox 67  * changing in a single place where the dtd's are loaded from, if
cyberfox 68  * necessary.
cyberfox 69  */
cyberfox 70   public static final String XML_SAVE_DOCTYPE = "<!DOCTYPE auctions SYSTEM \"http://www.jbidwatcher.com/auctions.dtd\">";
cyberfox 71   public static final String XML_SEARCHES_DOCTYPE = "<!DOCTYPE auctions SYSTEM \"http://www.jbidwatcher.com/searches.dtd\">";
cyberfox 72   public static final int SYNDICATION_ITEM_COUNT = 15;
mrs      73   public static final int DEFAULT_COLUMN_WIDTH=75;
mrs      74   public static final int DEFAULT_ROW_HEIGHT=16;
mrs      75   public static final int MICROTHUMBNAIL_ROW_HEIGHT = 70;
mrs      76   public final static String[] SITE_CHOICES = {
mrs      77     "ebay.com",
mrs      78     "ebay.de",
mrs      79     "ebay.ca",
mrs      80     "ebay.co.uk",
mrs      81     "tw.ebay.com",
mrs      82     "ebay.es",
mrs      83     "ebay.fr",
mrs      84     "ebay.it",
mrs      85     "ebay.com.au",
mrs      86     "ebay.at",
mrs      87     "benl.ebay.be",
mrs      88     "ebay.nl",
mrs      89     "ebay.com.sg",
mrs      90     "ebaysweden.com",
mrs      91     "ebay.ch",
mrs      92     "befr.ebay.be",
mrs      93     "ebay.ie",
mrs      94     "ebay.ph"};
mrs      95   public final static String EBAY_DISPLAY_NAME = "eBay";
mrs      96   public final static String EBAY_SERVER_NAME = "ebay";
cyberfox 97 }

Check out the code: svn co jbidwatcher/trunk/src/com/jbidwatcher/util/Constants.java