tsrc/mpfetchertestapp/inc/mpfetchertestappview.h
branchRCL_3
changeset 52 14979e23cb5e
equal deleted inserted replaced
50:26a1709b9fec 52:14979e23cb5e
       
     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 MPFETCHERTESTAPPVIEW_H_
       
    18 #define MPFETCHERTESTAPPVIEW_H_
       
    19 
       
    20 #include <hbview.h>
       
    21 #include <xqappmgr.h>
       
    22 
       
    23 class XQApplicationManager;
       
    24 class XQAiwRequest;
       
    25 class HbLineEdit;
       
    26 
       
    27 class MpFetcherTestAppView : public HbView
       
    28 {
       
    29 	Q_OBJECT
       
    30 
       
    31 public:
       
    32 	MpFetcherTestAppView(QGraphicsItem *parent=0);
       
    33 	virtual ~MpFetcherTestAppView();
       
    34 
       
    35 private slots:
       
    36     void handleOk(const QVariant &result);
       
    37     void handleError(int errorCode, const QString& errorMessage);
       
    38     
       
    39     void fetchSong();
       
    40     void playSong();
       
    41     void viewSong();
       
    42     void viewSongCaged();
       
    43     void launchHomeScreen();
       
    44     void launchHomeScreenNowPlaying();
       
    45     void launchHomeScreenNPShuffle();
       
    46     void playNPVSong();
       
    47     void endMP();
       
    48     void killMP();
       
    49     
       
    50     
       
    51     
       
    52 private:
       
    53     void createLayout();
       
    54     
       
    55 private:
       
    56     XQApplicationManager mAppMgr;
       
    57     XQAiwRequest* mReq;
       
    58     HbLineEdit* mResultEdit;
       
    59     HbLineEdit* mErrorCodeEdit;
       
    60     HbLineEdit* mErrorEdit;
       
    61 };
       
    62 
       
    63 #endif /* MPFETCHERTESTAPPVIEW_H_ */