taskswitcher/testapplications/tstestpluginmanager/tspluginmanager/lunchwidget.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef LUNCWIDGET_H_
       
    18 #define LUNCWIDGET_H_
       
    19 
       
    20 #include <hbwidget.h>
       
    21 #include <QGraphicsLinearLayout>
       
    22 #include <QGraphicsGridLayout>
       
    23 #include <QTimer>
       
    24 #include <HbPushButton>
       
    25 #include <hblabel.h>
       
    26 #include <qvaluespacepublisher.h>
       
    27 
       
    28 QTM_USE_NAMESPACE
       
    29 
       
    30 class HbComboBox;
       
    31 class HbCheckBox;
       
    32 
       
    33 class lunchwidget: public HbWidget
       
    34 {
       
    35     Q_OBJECT
       
    36 public:
       
    37     lunchwidget(QGraphicsItem *parent = 0);
       
    38     ~lunchwidget();
       
    39 
       
    40 
       
    41 private slots:
       
    42         
       
    43     void remove();
       
    44     void add();
       
    45 
       
    46 private:
       
    47     void setByte(int& numtoset, int byte, char value);
       
    48     char byte(int numtoget, int byte);
       
    49     
       
    50 private:
       
    51     HbLabel* mLoadLabel;    
       
    52     HbLabel* mTenLabel;    
       
    53     HbLabel* mOneLabel; 
       
    54     HbComboBox *mTenCombo;
       
    55     HbComboBox *mOneCombo;
       
    56     HbCheckBox* mRunningCheckBox;
       
    57     HbCheckBox* mCloseableCheckBox;
       
    58     QGraphicsGridLayout *mGridLayout;
       
    59     HbPushButton *mAdd;
       
    60     HbPushButton *mRemove;
       
    61     QValueSpacePublisher mPluginPublisher;
       
    62 };
       
    63 
       
    64 #endif /* LUNCWIDGET_H_*/