|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalAll |
|
19 */ |
|
20 |
|
21 #ifndef __FAX_H__ |
|
22 #define __FAX_H__ |
|
23 |
|
24 #include "CALL.H" |
|
25 #include "ETELFAX.H" |
|
26 |
|
27 // |
|
28 // CFaxHayes |
|
29 // |
|
30 |
|
31 class CFaxHayes : public CFaxBase |
|
32 /** |
|
33 @internalComponent |
|
34 */ |
|
35 { |
|
36 public: |
|
37 enum TDataDirection |
|
38 { |
|
39 ESendData, |
|
40 EReceiveData, |
|
41 EUnknown |
|
42 }; |
|
43 static CFaxHayes* NewL(CCallMobileFax* aCallFaxHayes,CPhoneGlobals* aPhoneGlobals); |
|
44 CFaxHayes(CCallMobileFax* aCallFaxHayes,CPhoneGlobals* aPhoneGlobals); |
|
45 void ConstructL(); |
|
46 ~CFaxHayes(); |
|
47 virtual void Init(); |
|
48 static void CloseFax(TAny* aObj); |
|
49 public: |
|
50 virtual CTelObject::TReqMode ReqModeL(const TInt aIpc); |
|
51 virtual TInt RegisterNotification(const TInt aIpc); |
|
52 virtual TInt DeregisterNotification(const TInt aIpc); |
|
53 virtual TInt Read(const TTsyReqHandle aTsyReqHandle,TDes8* aFaxPage); |
|
54 virtual TInt Write(const TTsyReqHandle aTsyReqHandle,TDesC8* aFaxPage); |
|
55 virtual TInt WaitForEndOfPage(const TTsyReqHandle aTsyReqHandle); |
|
56 virtual TInt TerminateFaxSession(const TTsyReqHandle aTsyReqHandle); |
|
57 virtual TInt CheckAndSetRegistrationParams(const TInt aIpc,const TDes8* aDes1,const TDes8* aDes2); |
|
58 RHandleBase* GlobalKernelObjectHandle(); |
|
59 |
|
60 |
|
61 private: |
|
62 CPhoneGlobals* iPhoneGlobals; |
|
63 CCallMobileFax* iOwner; |
|
64 TDataDirection iDataDirection; |
|
65 }; |
|
66 |
|
67 #endif |