taskswitcher/testapplications/tsserviceloader/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 <QGraphicsGridLayout>
       
    22 #include <HbPushButton>
       
    23 #include <hblabel.h>
       
    24 #include <qservicemanager.h>
       
    25 
       
    26 
       
    27 QTM_USE_NAMESPACE
       
    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 *mActivationButton;
       
    40     HbPushButton *mProviderButton;
       
    41     HbLabel* mResultLabel;    
       
    42     QServiceManager* mManager;
       
    43 
       
    44 private slots:
       
    45     void lunchActivation();
       
    46     void lunchProvider();
       
    47     
       
    48     void setError(bool ok, int err);        
       
    49 };
       
    50 
       
    51 #endif /* LUNCWIDGET_H_*/