usbuis/imageprintui/inc/settingsview.h
changeset 93 2dc695882abd
parent 89 3592750162a5
equal deleted inserted replaced
89:3592750162a5 93:2dc695882abd
     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:  Header file for settingsview
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSETTINGSVIEW_H
       
    20 #define CSETTINGSVIEW_H
       
    21 
       
    22 
       
    23 #include <aknview.h>
       
    24 
       
    25 class CSettingsContainer;
       
    26 
       
    27 const TUid KImagePrintSettingsViewId = { 2 };
       
    28 
       
    29 
       
    30 /**
       
    31 *   View class to present application main view
       
    32 */
       
    33 class CSettingsView : public CAknView
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38    /**
       
    39     *   Two phase constructor
       
    40     *   @return a CSettingsView instance
       
    41     */
       
    42     static CSettingsView* NewL();
       
    43     
       
    44    /**
       
    45     *   Two phase constructor
       
    46     *   @return a CSettingsView instance
       
    47     */
       
    48     static CSettingsView* NewLC();
       
    49 
       
    50    /**
       
    51     *   Destructor
       
    52     */
       
    53     virtual ~CSettingsView();
       
    54         
       
    55        
       
    56 private: // from base class CAknView
       
    57 
       
    58     /**
       
    59      * From CAknView 
       
    60      * Returns view id.
       
    61      * @param None.
       
    62      * @return View id.
       
    63      */
       
    64     TUid Id() const;
       
    65 
       
    66     /**
       
    67      * From CAknView 
       
    68      * Handles user commands.
       
    69      * @param aCommand A command id.        
       
    70      * @return None.
       
    71      */
       
    72     void HandleCommandL(TInt aCommand);
       
    73 
       
    74     /**
       
    75      * From CAknView 
       
    76      * Activates view.
       
    77      * @param aPrevViewId Id of previous view.
       
    78      * @param aCustomMessageId Custom message id.
       
    79      * @param aCustomMessage Custom message.
       
    80      * @return None.
       
    81      */
       
    82     void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    83                      const TDesC8& aCustomMessage);
       
    84 
       
    85     /**
       
    86      * From CAknView 
       
    87      * Deactivates view.        
       
    88      * @param None.
       
    89      * @return None.
       
    90      */
       
    91     void DoDeactivate();
       
    92     
       
    93     /**
       
    94      *   Default constructor
       
    95      */    
       
    96     CSettingsView();
       
    97 
       
    98     /**
       
    99      * Symbian 2nd phase constructor.
       
   100      * @param None
       
   101      * @return None
       
   102      */
       
   103     void ConstructL();
       
   104 
       
   105 private: // data
       
   106 
       
   107     /**
       
   108      * Container control of this view
       
   109      * Own
       
   110      */
       
   111     CSettingsContainer* iContainer; 
       
   112  
       
   113     };
       
   114 
       
   115 #endif // CSETTINGSVIEW_H