Subversion Repositories programming

Rev

Blame | Last modification | View Log | RSS feed

"""Holder for all types that are used by the Par2* series of classes.

This program is part of rarslave, an open-source program for
automatically checking, repairing, and extracting files, primarily
those which are downloaded from usenet.

Visit https://svn.irasnyder.com/svn/programming/rarslave for the
latest version."""

__author__ = "Ira W. Snyder (devel@irasnyder.com)"
__copyright__ = "Copyright (c) 2005,2006 Ira W. Snyder (devel@irasnyder.com)"
__license__ = "GNU GPL v2 (or, at your option, any later version"

################################################################################
# The PAR2 Types Module
#
# Copyright 2006, Ira W. Snyder (devel@irasnyder.com)
# License: GNU General Public License v2 (or, at your option, any later version)
#
# To make use of these definitions, use "from Par2Types import *"
################################################################################

# An enum of types
( UNKNOWN_TYPE,     # Represents a type that we don't know about yet

  S_SPLIT_000,      # Single file protected,    LXSplit, starting with .000
  M_SPLIT_000,      # Multiple files protected, LXSplit, starting with .000
  S_SPLIT_001,      # Single file protected,    LXSplit, starting with .001
  M_SPLIT_001,      # Multiple files protected, LXSplit, starting with .001

  S_PROT_SPLIT_000, # All .DDD files protected, LXSplit, starting with .000 (single set)
  M_PROT_SPLIT_000, # All .DDD files protected, LXSplit, starting with .000 (multiple sets)
  S_PROT_SPLIT_001, # All .DDD files protected, LXSplit, starting with .001 (single set)
  M_PROT_SPLIT_001, # All .DDD files protected, LXSplit, starting with .001 (multiple sets)

  S_RAR_OLD,        # Single set of rars,   Old style,   starting with .rDD
  M_RAR_OLD,        # Multiple set of rars, Old style,   starting with .rDD
  S_RAR_NEW,        # Single set of rars,   New style,   starting with .partDD.rar
  M_RAR_NEW,        # Multiple set of rars, New style,   starting with .partDD.rar

) = range (13)      # WARNING: If adding types, increment this number appropriately