epoc32/include/faxdefn.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
// FaxDefn Header
williamr@2
    15
// 
williamr@2
    16
//
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
/**
williamr@2
    21
 @file
williamr@2
    22
 @publishedAll
williamr@2
    23
 @released
williamr@2
    24
*/
williamr@2
    25
williamr@2
    26
#ifndef __FAXDEFN_H
williamr@2
    27
#define	__FAXDEFN_H
williamr@2
    28
williamr@2
    29
#include <e32std.h>
williamr@2
    30
williamr@2
    31
//
williamr@2
    32
// Fax class definition
williamr@2
    33
//
williamr@2
    34
/** Defines the fax modem classes supported by the fax client.
williamr@2
    35
williamr@2
    36
The fax class refers to the command set used to control the modem. 
williamr@2
    37
williamr@2
    38
@publishedAll
williamr@2
    39
@released
williamr@2
    40
*/
williamr@2
    41
enum TFaxClass
williamr@2
    42
	{
williamr@2
    43
	/** Automatic detection of the fax modem class. */
williamr@2
    44
	EClassAuto=0,
williamr@2
    45
	/** Fax class 1 */
williamr@2
    46
	EClass1=1,
williamr@2
    47
	/** Fax class 2 */
williamr@2
    48
	EClass2=2,
williamr@2
    49
	/** Fax class 2.0 */
williamr@2
    50
	EClass2point0=4,
williamr@2
    51
	/** Fax class 1.0 */
williamr@2
    52
	EClass1point0=8,
williamr@2
    53
	/** Fax class 2.1 */
williamr@2
    54
	EClass2point1=16
williamr@2
    55
	};
williamr@2
    56
williamr@2
    57
//
williamr@2
    58
// Fax phase definition
williamr@2
    59
//
williamr@2
    60
/** Fax session phases.
williamr@2
    61
williamr@2
    62
Defines what is done if a fax session fails is dependent on the current phase. 
williamr@2
    63
@publishedAll
williamr@2
    64
@released
williamr@2
    65
*/
williamr@2
    66
enum TFaxPhase
williamr@2
    67
	{
williamr@2
    68
	/** The session has not yet begun */
williamr@2
    69
	ENotYetStarted,
williamr@2
    70
	/** Phase 'A'. Establishing connection. */
williamr@2
    71
	ECallEstablishment='A',
williamr@2
    72
	/** Phase 'B'. Negotiating fax protocols. */
williamr@2
    73
	ESessionNegotiation='B',
williamr@2
    74
	/** Phase 'C'. Transferring information */
williamr@2
    75
	EDataTransfer='C',
williamr@2
    76
	/** Phase 'D'. Confirming successful send/receive. */
williamr@2
    77
	EPostPageStatus='D',
williamr@2
    78
	/** Phase 'E'. Disconnecting. */
williamr@2
    79
	EDisconnection='E'
williamr@2
    80
	};
williamr@2
    81
williamr@2
    82
//
williamr@2
    83
// Fax resolution definition
williamr@2
    84
//
williamr@2
    85
/** Defines the supported fax resolutions. 
williamr@2
    86
williamr@2
    87
It is also used by the fax store classes. 
williamr@2
    88
williamr@2
    89
@publishedAll
williamr@2
    90
@released
williamr@2
    91
*/
williamr@2
    92
enum TFaxResolution
williamr@2
    93
	{
williamr@2
    94
	/** Normal fax resolution 3.85 lines/mm */
williamr@2
    95
	EFaxNormal,
williamr@2
    96
	/** Fine fax resolution 7.7 lines/mm */
williamr@2
    97
	EFaxFine
williamr@2
    98
	};
williamr@2
    99
williamr@2
   100
//
williamr@2
   101
// Fax compression definition
williamr@2
   102
//
williamr@2
   103
/** Defines the types of compression supported by the fax client.
williamr@2
   104
williamr@2
   105
This enumeration is also used by the fax store classes. 
williamr@2
   106
williamr@2
   107
@publishedAll
williamr@2
   108
@released
williamr@2
   109
*/
williamr@2
   110
enum TFaxCompression
williamr@2
   111
	{
williamr@2
   112
	/** One-dimensional T.4 encoding. Also known as MH. */
williamr@2
   113
	EModifiedHuffman=0,
williamr@2
   114
	/** Two-dimensional T.4 encoding. Also known as MR. */
williamr@2
   115
	EModifiedRead=1,
williamr@2
   116
	/** Two-dimensional T.4 encoding including uncompressed mode. */
williamr@2
   117
	EUncompressedModifiedRead=2,
williamr@2
   118
	/** T.6 encoding. Not supported by the fax engine. Also known as MMR. */
williamr@2
   119
	EModifiedModifiedRead=3
williamr@2
   120
	};
williamr@2
   121
williamr@2
   122
/**
williamr@2
   123
Scan Line Constants
williamr@2
   124
@publishedAll
williamr@2
   125
@released
williamr@2
   126
*/
williamr@2
   127
const TInt KFaxPixelsPerScanLine(1728);
williamr@2
   128
const TInt KFaxBytesPerScanLine(216);	
williamr@2
   129
williamr@2
   130
const TInt KFaxCmPerScanLine(215);
williamr@2
   131
const TInt KFaxScanLinesPer10Cm(385);
williamr@2
   132
const TInt KFaxFineScanLinesPer10Cm(770);
williamr@2
   133
const TInt KFaxT4MaxDesLength(896);
williamr@2
   134
const TInt KFaxLinesPerBand(64);
williamr@2
   135
williamr@2
   136
/** Defines a buffer to hold a fax sender ID. */
williamr@2
   137
typedef TBuf<20> TFaxBufSenderId;
williamr@2
   138
/** Defines a raw scan line. 
williamr@2
   139
williamr@2
   140
Each scan line is comprised of KFaxBytesPerScanLine (216) bytes. */
williamr@2
   141
typedef TBuf8 < KFaxBytesPerScanLine > TRawScanLine;
williamr@2
   142
williamr@4
   143
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
williamr@4
   144
#include "fax_reversebytes.h"
williamr@4
   145
#endif
williamr@2
   146
williamr@2
   147
#endif