uiservicetab/vimpstui/inc/cvimpstuitermsofusedialoghandler.h
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     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: helper class for handling terms of use dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _CVIMPSTUITERMSOFUSEDIALOGHANDLER_H
       
    20 #define _CVIMPSTUITERMSOFUSEDIALOGHANDLER_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 class MVIMPSTSettingsStore;
       
    25 
       
    26 
       
    27 /**
       
    28  *  Static helper class for handling terms of use dialog.
       
    29  *
       
    30  *  @lib vimpstui.lib
       
    31  *  @since S60 v3.1
       
    32  */
       
    33 NONSHARABLE_CLASS( CVIMPSTUiTermsOfUseDialogHandler )
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Method used to handle terms of use (ToU) dialog.
       
    40      * Checks if current user id in aSap has
       
    41      * already accepted ToU or not. If not shows
       
    42      * ToU. Shows also "Login cancelled" note if user does not
       
    43      * accept ToU.
       
    44      * ownership is transfered.
       
    45      *    
       
    46      * @param aSapStore Current SAP settings.     
       
    47      * @param aUserName current user name to login 
       
    48      * @return KErrCancel if user cancels ToU dialog, KErrNone if
       
    49      *         user accepts or has previously accepted ToU.
       
    50      */
       
    51     TInt static HandleTermsOfUseDialogLD( MVIMPSTSettingsStore& aSettingsStore,
       
    52                                          const TDesC& aUserName,
       
    53                                          TInt& aServiceId,
       
    54                                          HBufC* aToUMsg = NULL);
       
    55                                          
       
    56     TBool static DisplayTermsOfUseAndQueryLD(HBufC* aToUMsg = NULL);                                         
       
    57 
       
    58 protected:
       
    59 
       
    60     // Prohibited constructor / destructor
       
    61     CVIMPSTUiTermsOfUseDialogHandler();
       
    62     ~CVIMPSTUiTermsOfUseDialogHandler();
       
    63     
       
    64     };
       
    65 
       
    66 #endif // _CVIMPSTUITERMSOFUSEDIALOGHANDLER_H