|
1 /* |
|
2 * Copyright (c) 2009 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: Implementation of Dm device dialog client |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __DMDEVDIALOG_H__ |
|
19 #define __DMDEVDIALOG_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 |
|
24 class RDmDevDialog : public RSessionBase |
|
25 { |
|
26 public: |
|
27 /** |
|
28 * Launches Dm device dialog server |
|
29 * @param None |
|
30 * @return None |
|
31 */ |
|
32 IMPORT_C TInt OpenL(); |
|
33 |
|
34 /** |
|
35 * Close server connection |
|
36 * @param None |
|
37 * @return None |
|
38 */ |
|
39 IMPORT_C void Close(); |
|
40 |
|
41 /** |
|
42 * Asynchronous call to launche package zero device dialog |
|
43 * @param aProfileId, ProfileId of the DM server |
|
44 * @param ajobId, Id of the DM job created due to package zero |
|
45 * @param aUimode, Server alert ui mode type |
|
46 * @param aResponse, Response from device dialog |
|
47 * @param aStatus, Status variable set after request completion |
|
48 * @return None |
|
49 */ |
|
50 IMPORT_C void LaunchPkgZero( const TInt& aProfileId, const TInt& ajobId, |
|
51 const TInt& aUimode, TDes8& aResponse,TRequestStatus& aStatus); |
|
52 |
|
53 |
|
54 /** |
|
55 * Synchronous call to check whether server alert |
|
56 * connect note shown or not. |
|
57 * @param aConectNoteShown, Status of the server alert connect note |
|
58 * @return None. |
|
59 */ |
|
60 IMPORT_C TInt IsPkgZeroConnectNoteShown(TInt& aConectNoteShown); |
|
61 |
|
62 /** |
|
63 * Synchronous call to dismiss connect dialog. |
|
64 * Ongoing DM session won't stop. |
|
65 * @param None. |
|
66 * @return None. |
|
67 */ |
|
68 IMPORT_C TInt DismissConnectDialog(); |
|
69 |
|
70 /** |
|
71 * Synchronous call to Show connect dialog, if connect dialog dismissed |
|
72 * earlier |
|
73 * @param None |
|
74 * @return None. |
|
75 */ |
|
76 IMPORT_C TInt ShowConnectDialog(); |
|
77 |
|
78 /** |
|
79 * Asynchronous call to Show Display(1100) alert dialog |
|
80 * @param aNoteDisplayText, Text to be displayed on the note |
|
81 * @param aStatus, Status variable set after request completion |
|
82 * @return None. |
|
83 */ |
|
84 IMPORT_C void ShowDisplayAlert(const TDesC& aNoteDisplayText,TRequestStatus& aStatus); |
|
85 |
|
86 /** |
|
87 * Asynchronous call to Show Confirmation(1101) alert dialog |
|
88 * @param aTimeout, Timeout of the dialog. |
|
89 * @param aNoteDisplayText, Text to be displayed on the note |
|
90 * @param aNoteHeader, Text to be displayed as dialog header |
|
91 * @param aStatus, Status variable set after request completion |
|
92 * @return None. |
|
93 */ |
|
94 IMPORT_C void ShowConfirmationAlert(const TInt& aTimeout,const TDesC& aNoteHeader, |
|
95 const TDesC& aNoteDisplayText,TRequestStatus& aStatus); |
|
96 |
|
97 /** |
|
98 * Cancels earlier package zero note, if user doesn't respond |
|
99 * @param None. |
|
100 * @return None. |
|
101 */ |
|
102 IMPORT_C TInt CancelPkgZeroNote(); |
|
103 }; |
|
104 |
|
105 #endif |