|
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: Static helper class for handling terms of use dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _CNUITERMSOFUSEDIALOGHANDLER_H |
|
20 #define _CNUITERMSOFUSEDIALOGHANDLER_H |
|
21 |
|
22 #include <e32std.h> |
|
23 |
|
24 class CIMPSSAPSettings; |
|
25 class MCnUiUiFacade; |
|
26 class CIMPSSAPSettingsStore; |
|
27 |
|
28 /** Key to CIMPSSAPSettings opaque value */ |
|
29 _LIT( KIMToUAccepted, "KIMToUAccepted" ); |
|
30 /** User id separator in KIMToUAccepted list */ |
|
31 _LIT( KIMDot, "," ); |
|
32 |
|
33 /** |
|
34 * Static helper class for handling terms of use dialog. |
|
35 * |
|
36 * @lib IMPSConnectionUi.lib |
|
37 * @since S60 v3.1 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CnUiTermsOfUseDialogHandler ) |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Method used to handle terms of use (ToU) dialog. |
|
46 * Checks if current user id in aSap has |
|
47 * already accepted ToU or not. If not shows |
|
48 * ToU. Shows also "Login cancelled" note if user does not |
|
49 * accept ToU. |
|
50 * |
|
51 * @since S60 v3.1 |
|
52 * @param aSap Current SAP settings. |
|
53 * @param aUi MCnUiUiFacade needed for showing ToU dialog. |
|
54 * @param aSapStore SAP settings store for updating SAP settings. |
|
55 * @return KErrCancel if user cancels ToU dialog, KErrNone if |
|
56 * user accepts or has previously accepted ToU. |
|
57 */ |
|
58 TInt static HandleTermsOfUseDialogL( CIMPSSAPSettings& aSap, |
|
59 MCnUiUiFacade& aUi, |
|
60 CIMPSSAPSettingsStore& aSapStore ); |
|
61 |
|
62 protected: |
|
63 |
|
64 // Prohibited constructor / destructor |
|
65 CnUiTermsOfUseDialogHandler(); |
|
66 ~CnUiTermsOfUseDialogHandler(); |
|
67 |
|
68 }; |
|
69 |
|
70 #endif // _CNUITERMSOFUSEDIALOGHANDLER_H |