activityfw/testapplications/appactluncher/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 <HbPushButton>
       
    24 #include <hblabel.h>
       
    25 #include <APGCLI.H> 
       
    26 #include <W32STD.H>
       
    27 
       
    28 class HbCheckBox;
       
    29 class HbComboBox;
       
    30 class CAfActivityLauncher;
       
    31 
       
    32 class lunchwidget: public HbWidget
       
    33 {
       
    34     Q_OBJECT
       
    35 public:
       
    36     lunchwidget(QGraphicsItem *parent = 0);
       
    37     ~lunchwidget();
       
    38 
       
    39 private:
       
    40 
       
    41     QGraphicsGridLayout *mGridLayout;
       
    42     HbPushButton *mLunchButton;
       
    43     HbPushButton *mLunchButton1;
       
    44     HbLabel* mResultLabel;
       
    45     QObject *mActivityManager;
       
    46     HbCheckBox* mBackgroundCheckBox;
       
    47     HbComboBox *mPlatformCombo;
       
    48     
       
    49     RApaLsSession mApaLsSession;
       
    50     RWsSession mWsSession;
       
    51     CAfActivityLauncher* mSymbianAL;
       
    52 
       
    53 private slots:
       
    54     void lunchApp();
       
    55     void lunchAct();
       
    56     
       
    57 private:
       
    58     void lunch(const QUrl& url);
       
    59 };
       
    60 
       
    61 #endif /* LUNCWIDGET_H_*/