omadm/omadmappui/inc/NSmlDMFotaSettingsDialog.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Declaration of FOTA Settings Dialog 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CNSMLDMFOTASETTINGSDIALOG_H
       
    21 #define CNSMLDMFOTASETTINGSDIALOG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <AknDialog.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAknSettingStyleListBox;
       
    28 class CAknTitlePane;
       
    29 class CNSmlDMSyncDocument;
       
    30 class CAknNavigationControlContainer;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Dialog for fota settings.
       
    36 *
       
    37 *  @lib ?library
       
    38 *  @since Series 60 3.1
       
    39 */
       
    40 class CNSmlDMFotaSettingsDialog : public CAknDialog,
       
    41                                   public MEikListBoxObserver
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CNSmlDMFotaSettingsDialog* NewL();
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CNSmlDMFotaSettingsDialog();
       
    54 
       
    55     protected:  // New functions
       
    56 
       
    57         /**
       
    58         * Formats the fota settings dialog listbox and items.
       
    59         * @since Series 60 3.1
       
    60         * @param None
       
    61         * @return None
       
    62         */
       
    63         void UpdateFotaSettListboxL();
       
    64 
       
    65         /**
       
    66         * Called when OK button is pressed.
       
    67         * @since Series 60 3.1
       
    68         * @param None
       
    69         * @return None
       
    70         */
       
    71         void HandleOKL();
       
    72 
       
    73     protected:  // Functions from base classes
       
    74         
       
    75         /**
       
    76         * From CEikDialog Called when a key is pressed. Checks
       
    77         * if it is ok to exit the dialog.
       
    78         * @since Series 60 3.1
       
    79         * @param aButtonId Identifier of the button pressed
       
    80         * @return 
       
    81         */
       
    82         TBool OkToExitL( TInt aButtonId );
       
    83 
       
    84         /**
       
    85         * From CEikDialog Initializes the dialog and the required
       
    86         * data. Called before the dialog is shown.
       
    87         * @since Series 60 3.1
       
    88         * @param None
       
    89         * @return None
       
    90         */
       
    91         void PreLayoutDynInitL();
       
    92 
       
    93         /**
       
    94         * From CEikDialog
       
    95         * @since Series 60 3.1
       
    96         * @param aKeyEvent
       
    97         * @param aType
       
    98         * @return Was the key event consumed or not.
       
    99         */
       
   100         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
   101         
       
   102         /**
       
   103         * From MEikCommandObserver Called when a command is received
       
   104         * from the dialog menu.
       
   105         * @since Series 60 3.1
       
   106         * @param aCommandId Identifier of the received command
       
   107         * @return None
       
   108         */
       
   109         void ProcessCommandL( TInt aCommandId );
       
   110 
       
   111         /**
       
   112         * From MEikListBoxObserver Handles events originated from the listbox.
       
   113         * @param aListBox Pointer to used listbox
       
   114         * @param aEventType Event type
       
   115         * @return None
       
   116         */
       
   117         void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
   118 
       
   119         /**
       
   120         * From CoeControl Gets the control's help context.
       
   121         * @since Series 60 3.1
       
   122         * @param aContext The control's help context
       
   123         * @return None.
       
   124         */
       
   125         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
   126 
       
   127     private:
       
   128 
       
   129         /**
       
   130         * C++ default constructor.
       
   131         */
       
   132         CNSmlDMFotaSettingsDialog();
       
   133 
       
   134         /**
       
   135         * From CAknView Dynamically initialises options menu.
       
   136         * @since Series 60 5.0
       
   137         * @param aResourceId Id identifying the menu pane to initialise.
       
   138         * @param aMenuPane The in-memory representation of the menu pane.
       
   139         * @return None.
       
   140         **/         
       
   141         void DynInitMenuPaneL( TInt aResourceID,CEikMenuPane* aMenuPane ); 
       
   142         /**
       
   143         * By default Symbian 2nd phase constructor is private.
       
   144         */
       
   145         void ConstructL();
       
   146 
       
   147     private:    // Data
       
   148         // The listbox of the dialog
       
   149         CAknSettingStyleListBox*    iFotaSettListBox;
       
   150          
       
   151         // Pointer to title pane
       
   152         CAknTitlePane*              iTitlePane;
       
   153 
       
   154         // Pointer to the application document instance.
       
   155         CNSmlDMSyncDocument*        iDocument;
       
   156         
       
   157         // Original title text storage
       
   158         HBufC*                      iOriginalTitle;
       
   159         
       
   160         // Pointer to the navigation pane
       
   161         CAknNavigationControlContainer* iNaviPane;
       
   162 
       
   163     };
       
   164 
       
   165 #endif      // CNSMLDMFOTASETTINGSDIALOG_H   
       
   166             
       
   167 // End of File