|
1 /* |
|
2 * Copyright (c) 2006 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: Definition of class for dialing a phone number. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef VCMANAGERDIALER_H |
|
20 #define VCMANAGERDIALER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> // CBase |
|
24 |
|
25 enum TCallType |
|
26 { |
|
27 EVoice, |
|
28 EVideo, |
|
29 EVoIP |
|
30 }; |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CAiwServiceHandler; |
|
34 |
|
35 // CLASS DEFINITION |
|
36 |
|
37 /** |
|
38 * Does the dialing based on recognized voice tag. |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS ( CVcManagerDialer ) : public CBase |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CVcManagerDialer* NewL(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CVcManagerDialer(); |
|
54 |
|
55 public: |
|
56 |
|
57 /** |
|
58 * Dials to given number |
|
59 * @param aName name of the contact |
|
60 * @param aNumber number to be called |
|
61 * @param aCallType Type of calling (voice, video, VoIP) |
|
62 */ |
|
63 void ExecuteL( TPtrC aName, TPtrC aNumber, TCallType aCallType ); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * Default constructor. |
|
69 */ |
|
70 CVcManagerDialer(); |
|
71 |
|
72 /** |
|
73 * Second phase constructor. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 private: |
|
78 |
|
79 // Aiw service handler |
|
80 CAiwServiceHandler* iServiceHandler; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // VCMANAGERDIALER_H |