voipplugins/accountcreationplugin/inc/acpqueryview.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     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:  Declatirion of CAcpQueryView
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ACPQUERYVIEW_H
       
    20 #define ACPQUERYVIEW_H
       
    21 
       
    22 #include <eikclb.h>
       
    23 #include <aknview.h>
       
    24 
       
    25 #include "macpdialogobserver.h"
       
    26 
       
    27 class CAcpController;
       
    28 class CAcpQueryContainer;
       
    29 class CAcpDialog;
       
    30 class CEikonEnv;
       
    31 
       
    32 /**
       
    33  *  CAcpQueryView class
       
    34  *  Declarition of CAcpQueryView class.
       
    35  *
       
    36  *  @lib accountcreationplugin.lib
       
    37  *  @since S60 v3.2
       
    38  */
       
    39 NONSHARABLE_CLASS( CAcpQueryView ) : public CAknView,
       
    40                                      public MEikListBoxObserver,
       
    41                                      public MAcpDialogObserver
       
    42     {
       
    43 public:
       
    44 
       
    45     /**
       
    46      * Items to be shown in this view/container.
       
    47      */
       
    48     enum TAcpGenericItems
       
    49         {
       
    50         EAcpGenericUsername = 0,
       
    51         EAcpGenericPassword
       
    52         };
       
    53 
       
    54     /**
       
    55      * Two-phased constructor.
       
    56      * @param aController ACP Controller
       
    57      */
       
    58     static CAcpQueryView* NewL( CAcpController& aController );
       
    59 
       
    60     /**
       
    61      * Two-phased constructor.
       
    62      * @param aController ACP Controller
       
    63      */
       
    64     static CAcpQueryView* NewLC( CAcpController& aController );
       
    65 
       
    66     /**
       
    67      * Destructor.
       
    68      */
       
    69     virtual ~CAcpQueryView();
       
    70 
       
    71 // from base class CAknView
       
    72 
       
    73     /**
       
    74      * From CAknView.
       
    75      * Returns UID of the view class.
       
    76      * 
       
    77      * @since S60 v3.2
       
    78      * @return UID of the class.
       
    79      */
       
    80     TUid Id() const;
       
    81 
       
    82 private:
       
    83 
       
    84     CAcpQueryView( CAcpController& aController );
       
    85     void ConstructL();
       
    86 
       
    87     /**
       
    88      * For changing text to the title pane.
       
    89      *
       
    90      * @since S60 v3.2
       
    91      * @param aText Text for title pane.
       
    92      */
       
    93     void SetTitlePaneTextL( const TDesC& aText ) const;
       
    94 
       
    95 // from base class CEikAppUi
       
    96 
       
    97     /**
       
    98      * From CEikAppUi.
       
    99      * Handles command.
       
   100      * 
       
   101      * @since S60 v3.2
       
   102      * @param aCommand Command ID.
       
   103      */
       
   104     void HandleCommandL( TInt aCommand );
       
   105 
       
   106 // from base class MEikListBoxObserver
       
   107 
       
   108     /**
       
   109      * From MEikListBoxObserver.
       
   110      * Handles list box event.
       
   111      * 
       
   112      * @since S60 v3.2
       
   113      * @param aListBox List box whose event is to be handled. Not used.
       
   114      * @param aEventType Type of the event.
       
   115      */
       
   116     void HandleListBoxEventL( 
       
   117         CEikListBox* /*aListBox*/, 
       
   118         TListBoxEvent aEventType );
       
   119 
       
   120     /**
       
   121      * From MEikListBoxObserver.
       
   122      * Handles list box selection.
       
   123      * 
       
   124      * @since S60 v3.2
       
   125      */
       
   126     void HandleListBoxSelectionL();
       
   127 
       
   128     /**
       
   129      * From MEikListBoxObserver.
       
   130      * Dynamically initiates menu pane.
       
   131      * Not used but here because of inheritance.
       
   132      * 
       
   133      * @since S60 v3.2
       
   134      * @param aResourceId ID of the resource. Not used.
       
   135      * @param aMenuPane Menu pane. Not used.
       
   136      */
       
   137     void DynInitMenuPaneL( TInt /*aResourceId*/, 
       
   138         CEikMenuPane* /*aMenuPane*/ );
       
   139 
       
   140 // from base class MAcpDialogObserver
       
   141     
       
   142     /**
       
   143      * From MAcpDialogObserver.
       
   144      * Notifies that a dialog has been dismissed.
       
   145      * 
       
   146      * @since S60 v3.2
       
   147      * @param aError Error code. Not used.
       
   148      */ 
       
   149     void DialogDismissed( TInt /*aError*/ );
       
   150 
       
   151 // from base class CAknView
       
   152 
       
   153     /**
       
   154      * From CAknView.
       
   155      * Activates this view.
       
   156      * 
       
   157      * @since S60 v3.2
       
   158      * @param aPrevViewId ID of previous view. Not used.
       
   159      * @param aCustomMessageId ID of a custom message. Not used.
       
   160      * @param aCustomMessage Custom message. Not used. 
       
   161      */
       
   162     void DoActivateL( 
       
   163         const TVwsViewId& /*aPrevViewId*/, 
       
   164         TUid /*aCustomMessageId*/, 
       
   165         const TDesC8& /*aCustomMessage*/ );
       
   166 
       
   167     /**
       
   168      * From CAknView.
       
   169      * Deactivates the view.
       
   170      * 
       
   171      * @since S60 v3.2
       
   172      */
       
   173     void DoDeactivate();
       
   174 
       
   175 private: // data
       
   176 
       
   177     /**
       
   178      * Handle to Avkon view application Ui.
       
   179      * Not own.
       
   180      */
       
   181     CAknViewAppUi* iUi;
       
   182 
       
   183     /**
       
   184      * Container class for provider specific view.
       
   185      * Own.
       
   186      */
       
   187     CAcpQueryContainer* iContainer;
       
   188 
       
   189     /**
       
   190      * Handle to plugins controller.
       
   191      */
       
   192     CAcpController& iController;
       
   193 
       
   194     /**
       
   195      * Handle dialog utility to show global wait note.
       
   196      * Own.
       
   197      */
       
   198     CAcpDialog* iDialog;
       
   199 
       
   200     /**
       
   201      * For restoring browser's setting later on
       
   202      */
       
   203     TInt iWarning;
       
   204 
       
   205     /**
       
   206      * For restoring browser's setting later on
       
   207      */
       
   208     TInt iDataSaving;
       
   209 
       
   210    /**
       
   211     * An instance of CEikonEnv
       
   212     * Not own.
       
   213     */
       
   214     CEikonEnv* iEikEnv;
       
   215     };
       
   216 
       
   217 #endif  // ACPQUERYVIEW_H
       
   218 
       
   219 // End of file.
       
   220