usbuis/usbsettingsapp/inc/usbsettingsapp.h
branchRCL_3
changeset 24 e02eb84a14d2
parent 23 25fce757be94
child 25 60826dff342d
equal deleted inserted replaced
23:25fce757be94 24:e02eb84a14d2
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef USBSETTINGSAPP_H
       
    19 #define USBSETTINGSAPP_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <hbmainwindow.h>
       
    23 
       
    24 const int KUSBPortrateMinLine = 4;
       
    25 const int KUSBPortrateMaxLine = 4;
       
    26 const int KUSBLandscapeMinLine = 2;
       
    27 const int KUSBLandscapeMaxLine = 2;
       
    28 
       
    29 class UsbUiSettingModel;
       
    30 class QItemSelectionModel;
       
    31 class HbView;
       
    32 class HbDocumentLoader;
       
    33 class HbListViewItem;
       
    34 
       
    35 class USBSettingsApp : public HbMainWindow
       
    36 {
       
    37     Q_OBJECT
       
    38 
       
    39 public:
       
    40 	USBSettingsApp(QWidget *parent = 0);
       
    41     ~USBSettingsApp();
       
    42 
       
    43 public slots:
       
    44 		/*
       
    45 		 * Handles the orientation change
       
    46 		 * @param orientation is teh new orientation to be set
       
    47      */
       
    48     void setOrientation(Qt::Orientation orientation);
       
    49 
       
    50 private:
       
    51 		/*
       
    52 		 * Loads the DOCML and build the view by finding the widgets from it 
       
    53 		 * @param Orientation at loading time
       
    54 		 */
       
    55     void load(Qt::Orientation);
       
    56 
       
    57 private:
       
    58 		// pointer to the HbDocumentLoader to load the DOCML owned by this class
       
    59     HbDocumentLoader *mDocumentLoader;
       
    60     // Pointer to the view, owned
       
    61     HbView *mView;
       
    62     //Pointer to model, owned
       
    63     UsbUiSettingModel *mModel;
       
    64     //Pointer to selection model, owned
       
    65     QItemSelectionModel *mSelectionModel;
       
    66     HbListViewItem *mListViewItem;
       
    67 };
       
    68 
       
    69 #endif // USBSETTINGSAPP_H