home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / air / update / utils / Constants.as next >
Encoding:
Text File  |  2010-06-23  |  3.9 KB  |  104 lines

  1. package air.update.utils
  2. {
  3.    public class Constants
  4.    {
  5.       public static const UPDATER_FOLDER:String = "#ApplicationUpdater";
  6.       
  7.       public static const STATE_FILE:String = "state.xml";
  8.       
  9.       public static const DESCRIPTOR_LOCAL_FILE:String = "update.xml";
  10.       
  11.       public static const UPDATE_LOCAL_FILE:String = "update.air";
  12.       
  13.       public static const DAY_IN_MILLISECONDS:int = 86400000;
  14.       
  15.       private static const ERROR_EXTERNAL:int = 16800;
  16.       
  17.       private static const ERROR_INTERNAL:int = 16700;
  18.       
  19.       public static const ERROR_AIR_UNPACKAGING:int = ERROR_EXTERNAL;
  20.       
  21.       public static const ERROR_AIR_MISSING_APPLICATION_XML:int = ERROR_EXTERNAL + 1;
  22.       
  23.       public static const ERROR_UCF_NO_MIMETYPE:int = ERROR_EXTERNAL + 2;
  24.       
  25.       public static const ERROR_UCF_INVALID_AIR_FILE:int = ERROR_EXTERNAL + 3;
  26.       
  27.       public static const ERROR_UCF_INVALID_FLAGS:int = ERROR_EXTERNAL + 4;
  28.       
  29.       public static const ERROR_UCF_UNKNOWN_COMPRESSION:int = ERROR_EXTERNAL + 5;
  30.       
  31.       public static const ERROR_UCF_INVALID_FILENAME:int = ERROR_EXTERNAL + 6;
  32.       
  33.       public static const ERROR_UCF_CORRUPT_AIR:int = ERROR_EXTERNAL + 7;
  34.       
  35.       public static const ERROR_CONFIGURATION_FILE_MISSING:int = ERROR_EXTERNAL + 8;
  36.       
  37.       public static const ERROR_UPDATE_URL_MISSING:int = ERROR_EXTERNAL + 9;
  38.       
  39.       public static const ERROR_CONFIGURATION_DESCRIPTOR:int = ERROR_EXTERNAL + 10;
  40.       
  41.       public static const ERROR_CONFIGURATION_UNKNOWN:int = ERROR_EXTERNAL + 11;
  42.       
  43.       public static const ERROR_URL_MISSING:int = ERROR_EXTERNAL + 12;
  44.       
  45.       public static const ERROR_DELAY_INVALID:int = ERROR_EXTERNAL + 13;
  46.       
  47.       public static const ERROR_DEFAULTUI_INVALID:int = ERROR_EXTERNAL + 14;
  48.       
  49.       public static const ERROR_UPDATE_UNKNOWN:int = ERROR_EXTERNAL + 15;
  50.       
  51.       public static const ERROR_VERSION_MISSING:int = ERROR_EXTERNAL + 16;
  52.       
  53.       public static const ERROR_DESCRIPTION_INVALID:int = ERROR_EXTERNAL + 17;
  54.       
  55.       public static const ERROR_IO_FILE:int = ERROR_EXTERNAL + 18;
  56.       
  57.       public static const ERROR_SECURITY:int = ERROR_EXTERNAL + 19;
  58.       
  59.       public static const ERROR_INVALID_HTTP_STATUS:int = ERROR_EXTERNAL + 20;
  60.       
  61.       public static const ERROR_FILESTREAM:int = ERROR_EXTERNAL + 21;
  62.       
  63.       public static const ERROR_IO_DOWNLOAD:int = ERROR_EXTERNAL + 22;
  64.       
  65.       public static const ERROR_EOF_DOWNLOAD:int = ERROR_EXTERNAL + 23;
  66.       
  67.       public static const ERROR_VALIDATE:int = ERROR_EXTERNAL + 24;
  68.       
  69.       public static const ERROR_DIFFERENT_APPLICATION_ID:int = ERROR_EXTERNAL + 25;
  70.       
  71.       public static const ERROR_NOT_NEW_VERSION:int = ERROR_EXTERNAL + 26;
  72.       
  73.       public static const ERROR_VERSION_MISMATCH:int = ERROR_EXTERNAL + 27;
  74.       
  75.       public static const ERROR_APPLICATION_UPDATE:int = ERROR_EXTERNAL + 28;
  76.       
  77.       public static const ERROR_APPLICATION_UPDATE_NO_FILE:int = ERROR_EXTERNAL + 29;
  78.       
  79.       public static const ERROR_STATE_UNKNOWN:int = ERROR_INTERNAL;
  80.       
  81.       public static const ERROR_LAST_CHECK_MISSING:int = ERROR_INTERNAL + 1;
  82.       
  83.       public static const ERROR_LAST_CHECK_INVALID:int = ERROR_INTERNAL + 2;
  84.       
  85.       public static const ERROR_VERSIONS_INVALID:int = ERROR_INTERNAL + 3;
  86.       
  87.       public static const ERROR_LAUNCHED_INVALID:int = ERROR_INTERNAL + 4;
  88.       
  89.       public static const ERROR_FAILED_INVALID:int = ERROR_INTERNAL + 5;
  90.       
  91.       public static const ERROR_PREV_VERSION_INVALID:int = ERROR_INTERNAL + 6;
  92.       
  93.       public static const ERROR_CURRENT_VERSION_INVALID:int = ERROR_INTERNAL + 7;
  94.       
  95.       public static const ERROR_STORAGE_INVALID:int = ERROR_INTERNAL + 8;
  96.       
  97.       public function Constants()
  98.       {
  99.          super();
  100.       }
  101.    }
  102. }
  103.  
  104.