telephonyserverplugins/ctsydispatchlayer/test/dispatchertests/dispatchinc/dialisvao.h
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 DIALISVAO_H |
|
22 #define DIALISVAO_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 #include <etel3rdparty.h> |
|
27 |
|
28 /** |
|
29 * Wrapper active object to use with CTelephony to dial a call. |
|
30 */ |
|
31 class CDialIsvAO : public CActive |
|
32 { |
|
33 public: |
|
34 |
|
35 ~CDialIsvAO(); |
|
36 static CDialIsvAO* NewL(); |
|
37 static CDialIsvAO* NewLC(); |
|
38 void Dial(); |
|
39 |
|
40 TInt Status() { return iError; } |
|
41 |
|
42 private: |
|
43 |
|
44 CDialIsvAO(); |
|
45 void ConstructL(); |
|
46 |
|
47 private: // From CActive |
|
48 |
|
49 void RunL(); |
|
50 void DoCancel(); |
|
51 TInt RunError(TInt aError); |
|
52 |
|
53 private: // Owned |
|
54 |
|
55 CTelephony* iTelephony; |
|
56 CTelephony::TCallId iCallId; |
|
57 |
|
58 CActiveScheduler* iScheduler; |
|
59 |
|
60 TInt iError; |
|
61 |
|
62 }; // class CDialIsvAO |
|
63 |
|
64 #endif // DIALISVAO_H |