fax/faxclientandserver/Test/TE_FAX/TE_FaxTest.h
changeset 20 244d7c5f118e
parent 19 1f776524b15c
child 23 6b1d113cdff3
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
     1 // Copyright (c) 2004-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Telephony Fax Test header file.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef __TE_FAX_H__
       
    24 #define __TE_FAX_H__
       
    25 
       
    26 
       
    27 class CFaxTestFaxDefinition : public CFaxTestStep
       
    28 	{
       
    29 public:
       
    30 	CFaxTestFaxDefinition();
       
    31 	virtual enum TVerdict doTestStepL();
       
    32 	};
       
    33 
       
    34 
       
    35 class CFaxTestFaxStorage : public CFaxTestStep
       
    36 	{
       
    37 public:
       
    38 	CFaxTestFaxStorage();
       
    39 	virtual enum TVerdict doTestStepL();
       
    40  
       
    41 	void Test1L(TInt aNumberLines, TBuf8<216>& aScanLineWrite, TFaxResolution aRes);
       
    42 	void Test2L(TInt aNumberLines, TBuf8<216>& aScanLineWrite1,
       
    43 				TBuf8<216>&  aScanLineWrite2, TFaxResolution aRes);
       
    44 	void Test3L(TInt aNumberLines, TInt aNumberPages);
       
    45 	void Test4L(TInt aNumberLines);
       
    46 	void Test5L(TFaxResolution aRes, TFaxBufSenderId& aSenderId,
       
    47 				TFaxCompression aF1, TInt aF2);
       
    48 
       
    49 private:
       
    50     CWriteFaxFile*  iWriteFaxFile;
       
    51 	CReadFaxFile*  iReadFaxFile;
       
    52 	TFaxBufSenderId  iSenderId;
       
    53 	};
       
    54 
       
    55 
       
    56 class CFaxTestFaxCoding : public CFaxTestStep
       
    57 	{
       
    58 public:
       
    59 	CFaxTestFaxCoding();
       
    60 	virtual enum TVerdict doTestStepL();
       
    61 
       
    62 	TInt FindEndOfLine(TDes8& aEncodedDes);
       
    63 	};
       
    64 
       
    65 
       
    66 class CFaxTestFaxHeaderDefinition : public CFaxTestStep
       
    67 	{
       
    68 public:
       
    69 	CFaxTestFaxHeaderDefinition();
       
    70 	virtual enum TVerdict doTestStepL();
       
    71 
       
    72 	void GenerateFaxFileL(RFile& aFile);
       
    73 	void GenerateHeaderFileL(const TUint8* aFont, TInt aWidth, TInt aHeight);
       
    74 	};
       
    75 
       
    76 
       
    77 class CFaxTestTransmitFax01 : public CFaxTestStep
       
    78 	{
       
    79 public:
       
    80 	CFaxTestTransmitFax01();
       
    81 	virtual enum TVerdict doTestStepL();
       
    82 	};
       
    83 
       
    84 
       
    85 class CFaxTestTransmitFax02 : public CFaxTestStep
       
    86 	{
       
    87 public:
       
    88 	CFaxTestTransmitFax02();
       
    89 	virtual enum TVerdict doTestStepL();
       
    90 	};
       
    91 
       
    92 
       
    93 class CFaxTestTransmitFax03 : public CFaxTestStep
       
    94 	{
       
    95 public:
       
    96 	CFaxTestTransmitFax03();
       
    97 	virtual enum TVerdict doTestStepL();
       
    98 	};
       
    99 
       
   100 
       
   101 class CFaxTestTransmitFax04 : public CFaxTestStep
       
   102 	{
       
   103 public:
       
   104 	CFaxTestTransmitFax04();
       
   105 	virtual enum TVerdict doTestStepL();
       
   106 	};
       
   107 
       
   108 
       
   109 class CFaxTestTransmitFax05 : public CFaxTestStep
       
   110 	{
       
   111 public:
       
   112 	CFaxTestTransmitFax05();
       
   113 	virtual enum TVerdict doTestStepL();
       
   114 	};
       
   115 
       
   116 
       
   117 class CFaxTestTransmitFax06 : public CFaxTestStep
       
   118 	{
       
   119 public:
       
   120 	CFaxTestTransmitFax06();
       
   121 	virtual enum TVerdict doTestStepL();
       
   122 	};
       
   123 
       
   124 
       
   125 class CFaxTestReceiveFax01 : public CFaxTestStep
       
   126 	{
       
   127 public:
       
   128 	CFaxTestReceiveFax01();
       
   129 	virtual enum TVerdict doTestStepL();
       
   130 	};
       
   131 
       
   132 
       
   133 class CFaxTestReceiveFax02 : public CFaxTestStep
       
   134 	{
       
   135 public:
       
   136 	CFaxTestReceiveFax02();
       
   137 	virtual enum TVerdict doTestStepL();
       
   138 	};
       
   139 
       
   140 
       
   141 class CFaxTestReceiveFax03 : public CFaxTestStep
       
   142 	{
       
   143 public:
       
   144 	CFaxTestReceiveFax03();
       
   145 	virtual enum TVerdict doTestStepL();
       
   146 	};
       
   147 
       
   148 
       
   149 class CFaxTestReceiveFax04 : public CFaxTestStep
       
   150 	{
       
   151 public:
       
   152 	CFaxTestReceiveFax04();
       
   153 	virtual enum TVerdict doTestStepL();
       
   154 	};
       
   155 
       
   156 
       
   157 class CFaxTestReceiveFax05 : public CFaxTestStep
       
   158 	{
       
   159 public:
       
   160 	CFaxTestReceiveFax05();
       
   161 	virtual enum TVerdict doTestStepL();
       
   162 	};
       
   163 
       
   164 
       
   165 class CFaxTestReceiveFax06 : public CFaxTestStep
       
   166 	{
       
   167 public:
       
   168 	CFaxTestReceiveFax06();
       
   169 	virtual enum TVerdict doTestStepL();
       
   170 	};
       
   171 
       
   172 
       
   173 #endif // __TE_FAXTEST_H__
       
   174