taskswitcher/testapplications/tstestcatapp/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 LUNCHWIDGET_H_
       
    18 #define LUNCHWIDGET_H_
       
    19 
       
    20 #include <hbwidget.h>
       
    21 #include <QGraphicsLinearLayout>
       
    22 #include <QGraphicsGridLayout>
       
    23 #include <HbPushButton>
       
    24 #include <hblabel.h>
       
    25 
       
    26 class HbComboBox;
       
    27 class TsTaskSettings;
       
    28 
       
    29 class lunchwidget: public HbWidget
       
    30 {
       
    31     Q_OBJECT
       
    32 public:
       
    33     lunchwidget(QGraphicsItem *parent = 0);
       
    34     ~lunchwidget();
       
    35 
       
    36 private:
       
    37 
       
    38     QGraphicsGridLayout *mGridLayout;
       
    39     HbPushButton *mRegisterButton;
       
    40     HbPushButton *mUnregisterButton;
       
    41     HbPushButton *mHideButton;
       
    42     HbPushButton *mShowButton;
       
    43     HbPushButton *mAnimal1Button;
       
    44     HbPushButton *mAnimal2Button;
       
    45     HbPushButton *mClearButton;
       
    46     HbLabel* mPhotoLabel;
       
    47     HbLabel* mResultLabel;    
       
    48     //HbLabel* mPriorityLabel;
       
    49     //HbComboBox *mPriorityCombo;
       
    50     
       
    51     QPixmap* mAnimal1;
       
    52     QPixmap* mAnimal2;
       
    53     
       
    54     TInt64 iBefore;
       
    55     TInt64 iAfter;
       
    56     TInt64 iResult;
       
    57 
       
    58 private:
       
    59     void Before();
       
    60     void After();
       
    61     void Result();
       
    62     void setResult(bool ok);
       
    63     
       
    64 private slots:
       
    65     void regScr();
       
    66     void unregScr();
       
    67     void hideMe();
       
    68     void showMe();
       
    69     void animal1();
       
    70     void animal2();
       
    71     void clear();
       
    72 
       
    73 private:    
       
    74     TsTaskSettings* mClient;
       
    75 };
       
    76 
       
    77 #endif /* LUNCHWIDGET_H_*/