|
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 the License "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: Declaration of class CodDialog. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef COD_DIALOG_H |
|
20 #define COD_DIALOG_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <centralrepository.h> |
|
26 #include <BrowserUiSDKCRKeys.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATION |
|
30 |
|
31 class CCoeEnv; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Wrapper class for miscellaneous dialogs. |
|
37 */ |
|
38 NONSHARABLE_CLASS( CodDialog ) |
|
39 { |
|
40 public: // new methods |
|
41 |
|
42 /** |
|
43 * Get download root path. |
|
44 * Leave with KErrCancel if query is cancelled. |
|
45 * @param aRootPath Root path returned here. |
|
46 */ |
|
47 static void GetRootPathL( TDes& aRootPath ); |
|
48 |
|
49 /** |
|
50 * Get confirmation for creating network connection. |
|
51 * @return ETrue if connection can be created. |
|
52 */ |
|
53 static TBool ConfirmConnectL(); |
|
54 |
|
55 /** |
|
56 * Show an information note. |
|
57 * @param aPromptResourceId Resource id of prompt text (RESOURCE TBUF). |
|
58 * @param aCoeEnv Control environment. |
|
59 */ |
|
60 static void InfoNoteL( TInt aPromptResourceId, CCoeEnv& aCoeEnv ); |
|
61 |
|
62 /** |
|
63 * Show an information note. |
|
64 * @param aPromptPrompt text. |
|
65 */ |
|
66 static void InfoNoteL( const TDesC& aPrompt ); |
|
67 |
|
68 /** |
|
69 * Show an confirmation note. |
|
70 * @param aPromptResourceId Resource id of prompt text (RESOURCE TBUF). |
|
71 * @param aCoeEnv Control environment. |
|
72 */ |
|
73 static void ConfNoteL( TInt aPromptResourceId, CCoeEnv& aCoeEnv ); |
|
74 |
|
75 /** |
|
76 * Show an confirmation note. |
|
77 * @param aPrompt Prompt text. |
|
78 */ |
|
79 static void ConfNoteL( const TDesC& aPrompt ); |
|
80 |
|
81 }; |
|
82 |
|
83 #endif /* def COD_DIALOG_H */ |