mpx/mpxviewframeworkqt/example_vf_pluginresolving/plugins/welcomeviewplugin/inc/welcomeview.h
changeset 64 92dbd2a406d9
equal deleted inserted replaced
61:3b098142db83 64:92dbd2a406d9
       
     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 
       
    18 #ifndef WELCOMEVIEW_H_
       
    19 #define WELCOMEVIEW_H_
       
    20 
       
    21 #include <hbview.h>
       
    22 
       
    23 class HbLabel;
       
    24 class HbPushButton;
       
    25 class QSignalMapper;
       
    26 
       
    27 class WelcomeView : public HbView
       
    28     {
       
    29     
       
    30     Q_OBJECT
       
    31     
       
    32 public:
       
    33     
       
    34     WelcomeView(const QString &name = "Welcome!");
       
    35 
       
    36     virtual ~WelcomeView();
       
    37 
       
    38 public slots:
       
    39 
       
    40     void setLabelText(int commandId);
       
    41         
       
    42 private:
       
    43     
       
    44     bool connectButton(HbPushButton *button, int commandId);
       
    45     
       
    46     HbLabel *label;
       
    47     QSignalMapper *mapper;
       
    48     
       
    49     };
       
    50 
       
    51 #endif /* WELCOMEVIEW_H_ */