Subversion Repositories programming

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
365 ira 1
"""Holder for all types that are used by the Par2* series of classes.
2
 
3
This program is part of rarslave, an open-source program for
4
automatically checking, repairing, and extracting files, primarily
5
those which are downloaded from usenet.
6
 
7
Visit https://svn.irasnyder.com/svn/programming/rarslave for the
8
latest version."""
9
 
10
__author__ = "Ira W. Snyder (devel@irasnyder.com)"
11
__copyright__ = "Copyright (c) 2005,2006 Ira W. Snyder (devel@irasnyder.com)"
12
__license__ = "GNU GPL v2 (or, at your option, any later version"
13
 
14
################################################################################
15
# The PAR2 Types Module
16
#
17
# Copyright 2006, Ira W. Snyder (devel@irasnyder.com)
18
# License: GNU General Public License v2 (or, at your option, any later version)
19
#
20
# To make use of these definitions, use "from Par2Types import *"
21
################################################################################
22
 
23
# An enum of types
24
( UNKNOWN_TYPE,     # Represents a type that we don't know about yet
25
 
26
  S_SPLIT_000,      # Single file protected,    LXSplit, starting with .000
27
  M_SPLIT_000,      # Multiple files protected, LXSplit, starting with .000
28
  S_SPLIT_001,      # Single file protected,    LXSplit, starting with .001
29
  M_SPLIT_001,      # Multiple files protected, LXSplit, starting with .001
30
 
31
  S_PROT_SPLIT_000, # All .DDD files protected, LXSplit, starting with .000 (single set)
32
  M_PROT_SPLIT_000, # All .DDD files protected, LXSplit, starting with .000 (multiple sets)
33
  S_PROT_SPLIT_001, # All .DDD files protected, LXSplit, starting with .001 (single set)
34
  M_PROT_SPLIT_001, # All .DDD files protected, LXSplit, starting with .001 (multiple sets)
35
 
36
  S_RAR_OLD,        # Single set of rars,   Old style,   starting with .rDD
37
  M_RAR_OLD,        # Multiple set of rars, Old style,   starting with .rDD
38
  S_RAR_NEW,        # Single set of rars,   New style,   starting with .partDD.rar
39
  M_RAR_NEW,        # Multiple set of rars, New style,   starting with .partDD.rar
40
 
41
) = range (13)      # WARNING: If adding types, increment this number appropriately
42