|
1 /* |
|
2 * Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Telephone call handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_SHWTELEPHONEHANDLER_H |
|
22 #define C_SHWTELEPHONEHANDLER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <etel3rdparty.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CShwSlideshowEngine; |
|
30 class CShwSlideShowPauseHandler; |
|
31 |
|
32 /** |
|
33 * CShwTelephoneHandler |
|
34 * |
|
35 * Telphone call handler |
|
36 * |
|
37 * @lib shwslideshowviewplugin.lib |
|
38 */ |
|
39 NONSHARABLE_CLASS( CShwTelephoneHandler ) : public CActive |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Factory function constructor |
|
44 * @param aEngine to pause and resume the slideshow |
|
45 */ |
|
46 static CShwTelephoneHandler* NewL( |
|
47 CShwSlideshowEngine& aEngine, |
|
48 CShwSlideShowPauseHandler& aPauseHandler ); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 ~CShwTelephoneHandler(); |
|
54 |
|
55 public: |
|
56 /** |
|
57 * Start the handler |
|
58 */ |
|
59 void StartL(); |
|
60 |
|
61 private: |
|
62 /** |
|
63 * Constructor |
|
64 * @param aEngine to pause and resume the slideshow |
|
65 */ |
|
66 CShwTelephoneHandler( |
|
67 CShwSlideshowEngine& aEngine, |
|
68 CShwSlideShowPauseHandler& aPauseHandler ); |
|
69 |
|
70 /** |
|
71 * 2nd phase construction |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 private: |
|
76 // from CActive |
|
77 void RunL(); |
|
78 void DoCancel(); |
|
79 |
|
80 private: |
|
81 |
|
82 /// Ref: slide show engine |
|
83 CShwSlideshowEngine& iEngine; |
|
84 /// Ref: slide show pause handler |
|
85 CShwSlideShowPauseHandler& iPauseHandler; |
|
86 |
|
87 CTelephony* iTelephony; // owned |
|
88 |
|
89 // line status |
|
90 CTelephony::TCallStatusV1 iLineStatus; // owned |
|
91 CTelephony::TCallStatusV1Pckg iLineStatusPckg; // owned |
|
92 }; |
|
93 |
|
94 #endif // C_SHWTELEPHONEHANDLER_H |