|
1 /* |
|
2 * Copyright (c) 2004 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: 'Allow video image' query for Video Telephone application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVTUIALLOWVIDEODIALOG_H |
|
21 #define CVTUIALLOWVIDEODIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknquerydialog.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * 'Allow video image' query for Video Telephone application. |
|
30 * |
|
31 * @since Series 60 2.6 |
|
32 */ |
|
33 class CVtUiAllowVideoDialog |
|
34 : public CAknQueryDialog |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 * |
|
41 * @param aSelfPtr optional pointer to itself. |
|
42 * @param aTone tone to be played. |
|
43 */ |
|
44 CVtUiAllowVideoDialog( |
|
45 CEikDialog** aSelfPtr, |
|
46 const TTone& aTone ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CVtUiAllowVideoDialog(); |
|
52 |
|
53 public: // New functions |
|
54 |
|
55 /** |
|
56 * Enumerates different results which |
|
57 * can be completed to request status. |
|
58 */ |
|
59 enum TResult |
|
60 { |
|
61 // Query was canceled. |
|
62 EQueryCanceled = 1, |
|
63 // Query was dismissed due to timeout. |
|
64 EQueryDismissedTimeout, |
|
65 // User denied video sending. |
|
66 EUserDenied, |
|
67 // User allowed video sending. |
|
68 EUserAllowed |
|
69 }; |
|
70 |
|
71 /** |
|
72 * Runs dialog. |
|
73 * @param aStatus request status. |
|
74 */ |
|
75 void ExecuteDialogLD( |
|
76 TRequestStatus& aStatus ); |
|
77 |
|
78 protected: // Functions from base classes |
|
79 |
|
80 /** |
|
81 * @see CAknQueryDialog::PostLayoutDynInitL. |
|
82 */ |
|
83 virtual void PostLayoutDynInitL(); |
|
84 |
|
85 /** |
|
86 * @see CAknQueryDialog::OkToExitL. |
|
87 */ |
|
88 virtual TBool OkToExitL( TInt aCommand ); |
|
89 |
|
90 private: |
|
91 |
|
92 /** |
|
93 * Callback function. Called when this query |
|
94 * is dismissed. |
|
95 * @param aAny pointer to instance of this class. |
|
96 * @return KErrNone. |
|
97 */ |
|
98 static TInt DoDismissDialogTimeoutL( TAny* aAny ); |
|
99 |
|
100 private: |
|
101 |
|
102 // Pointer to pointer to this instance. |
|
103 CEikDialog** iSelfPtr; |
|
104 |
|
105 // Timer for dismissing the query after timeout. |
|
106 CPeriodic* iQueryTimer; |
|
107 |
|
108 // Request status. |
|
109 TRequestStatus* iRequestStatus; |
|
110 |
|
111 }; |
|
112 |
|
113 #endif // CVTUIALLOWVIDEODIALOG_H |
|
114 |
|
115 // End of File |