emailservices/emailserver/inc/FsEmailAuthenticationDialog.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Source file for FS Email authentication notifier plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_FSEMAILAUTHENTICATIONDIALOG_H
       
    21 #define C_FSEMAILAUTHENTICATIONDIALOG_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <AknQueryDialog.h>
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 class CFsEmailAuthenticationPlugin;
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33  * Class implementing Authentication (username and password) dialog
       
    34  */
       
    35 class CFsEmailAuthenticationDialog : public CAknTextQueryDialog
       
    36     {
       
    37 public:
       
    38     /**
       
    39     * NewL function
       
    40     * @param aStatus       active object's status variable
       
    41     * @param aMailboxName  mailbox name
       
    42     * @param aPassword     password
       
    43     * return CFsEmailAuthenticationDialog*
       
    44     */
       
    45     static CFsEmailAuthenticationDialog* NewL( TRequestStatus& aStatus,
       
    46                                                TDesC& aMailboxName,
       
    47                                                TDes& aPassword );
       
    48 
       
    49     /**
       
    50     * ~CFsEmailAuthenticationDialog destructor
       
    51     * @param    -
       
    52     */
       
    53     ~CFsEmailAuthenticationDialog();
       
    54 
       
    55 private:
       
    56     /**
       
    57     * CFsEmailAuthenticationDialog default constructor
       
    58     * @param aStatus       active object's status variable
       
    59     * @param aMailboxName  mailbox name
       
    60     * @param aPassword     password
       
    61     */
       
    62     CFsEmailAuthenticationDialog( TRequestStatus& aStatus,
       
    63                                   TDesC& aMailboxName,
       
    64                                   TDes& aPassword );
       
    65 
       
    66     /**
       
    67     * OkToExitL destructor
       
    68     * @param  aButtonId button exit id
       
    69     * @return TBool exit or no
       
    70     */
       
    71     virtual TBool OkToExitL( TInt aButtonId );
       
    72 
       
    73 private:
       
    74     /**
       
    75     * PreLayoutDynInitL function
       
    76     * @param    -
       
    77     */
       
    78     virtual void PreLayoutDynInitL();
       
    79 
       
    80 private:
       
    81     
       
    82     TRequestStatus* iRequest;
       
    83     
       
    84     TDesC& iMailboxName;
       
    85 
       
    86     };
       
    87 
       
    88 
       
    89 #endif // C_FSEMAILAUTHENTICATIONDIALOG_H
       
    90 
       
    91 // End of File