systemsettings/gssensorplugin/inc/gssenorientationview.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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:  Sensors orientation view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef GSSENORIENTATIONVIEW_H
       
    21 #define GSSENORIENTATIONVIEW_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "gssensorbaseview.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CGSSensorPluginModel;
       
    28 class CGSSenOrientationContainer;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  *  CGSSenOrientationView view class
       
    34  *
       
    35  *  view class for orientation options settings
       
    36  *  
       
    37  *  @lib gssensorplugin.lib
       
    38  *  @since S60 5.0
       
    39  */
       
    40 class CGSSenOrientationView : public CGSSensorBaseView
       
    41     {
       
    42     public:
       
    43 
       
    44         /**
       
    45          * Symbian OS two phased constructor.
       
    46          */
       
    47         static CGSSenOrientationView* NewL( CGSSensorPluginModel* aModel );
       
    48         static CGSSenOrientationView* NewLC( CGSSensorPluginModel* aModel );
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         virtual ~CGSSenOrientationView();
       
    54         
       
    55         /**
       
    56          * From CAknView. Returns views id
       
    57          *
       
    58          * @return TUid ID of this view defined in gssensorpluginlocalviewids.h
       
    59          */
       
    60         TUid Id() const;
       
    61 
       
    62         /**
       
    63          * From CAknView. This function processes user commands
       
    64          *
       
    65          * @param aCommand Identifier of the user command
       
    66          */
       
    67         void HandleCommandL( TInt aCommand );
       
    68     
       
    69     private:
       
    70 
       
    71         /**
       
    72          * Symbian OS default constructor.
       
    73          */
       
    74         void ConstructL();
       
    75 
       
    76         /**
       
    77          * Default constructor
       
    78          */
       
    79         CGSSenOrientationView( CGSSensorPluginModel* aModel );
       
    80         
       
    81         /**
       
    82          * Container of this view
       
    83          */
       
    84         CGSSenOrientationContainer* Container();
       
    85 
       
    86         /**
       
    87          * From CGSBaseView. Request to create new contrainer
       
    88          */
       
    89         void NewContainerL();
       
    90 
       
    91         /**
       
    92          * From CGSBaseView. Handles list box selection made by user
       
    93          */
       
    94         void HandleListBoxSelectionL();
       
    95 
       
    96      private: // data
       
    97 
       
    98         /**
       
    99          * Plugin model, does not own, so do not delete this
       
   100          */
       
   101         CGSSensorPluginModel* iModel;
       
   102         
       
   103     };
       
   104 
       
   105 #endif //GSSENORIENTATIONVIEW_H
       
   106 
       
   107 // End of File