1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
32 // Fax class definition
34 /** Defines the fax modem classes supported by the fax client.
36 The fax class refers to the command set used to control the modem.
43 /** Automatic detection of the fax modem class. */
58 // Fax phase definition
60 /** Fax session phases.
62 Defines what is done if a fax session fails is dependent on the current phase.
68 /** The session has not yet begun */
70 /** Phase 'A'. Establishing connection. */
71 ECallEstablishment='A',
72 /** Phase 'B'. Negotiating fax protocols. */
73 ESessionNegotiation='B',
74 /** Phase 'C'. Transferring information */
76 /** Phase 'D'. Confirming successful send/receive. */
78 /** Phase 'E'. Disconnecting. */
83 // Fax resolution definition
85 /** Defines the supported fax resolutions.
87 It is also used by the fax store classes.
94 /** Normal fax resolution 3.85 lines/mm */
96 /** Fine fax resolution 7.7 lines/mm */
101 // Fax compression definition
103 /** Defines the types of compression supported by the fax client.
105 This enumeration is also used by the fax store classes.
112 /** One-dimensional T.4 encoding. Also known as MH. */
114 /** Two-dimensional T.4 encoding. Also known as MR. */
116 /** Two-dimensional T.4 encoding including uncompressed mode. */
117 EUncompressedModifiedRead=2,
118 /** T.6 encoding. Not supported by the fax engine. Also known as MMR. */
119 EModifiedModifiedRead=3
127 const TInt KFaxPixelsPerScanLine(1728);
128 const TInt KFaxBytesPerScanLine(216);
130 const TInt KFaxCmPerScanLine(215);
131 const TInt KFaxScanLinesPer10Cm(385);
132 const TInt KFaxFineScanLinesPer10Cm(770);
133 const TInt KFaxT4MaxDesLength(896);
134 const TInt KFaxLinesPerBand(64);
136 /** Defines a buffer to hold a fax sender ID. */
137 typedef TBuf<20> TFaxBufSenderId;
138 /** Defines a raw scan line.
140 Each scan line is comprised of KFaxBytesPerScanLine (216) bytes. */
141 typedef TBuf8 < KFaxBytesPerScanLine > TRawScanLine;
143 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
144 #include "fax_reversebytes.h"