controlpanelui/src/tonefetcher/tsrc/tonetestapp.h
branchRCL_3
changeset 13 90fe62538f66
equal deleted inserted replaced
12:3fec62e6e7fc 13:90fe62538f66
       
     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  *     The header file for tone service test.
       
    16  *     
       
    17  */
       
    18 #ifndef TONETESTAPP_H
       
    19 #define TONETESTAPP_H
       
    20 
       
    21 #include <hbview.h>
       
    22 #include <xqappmgr.h>
       
    23 
       
    24 class XQApplicationManager;
       
    25 class XQAiwRequest;
       
    26 class HbLineEdit;
       
    27 
       
    28 class ToneTestApp : public HbView
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     ToneTestApp(QGraphicsItem *parent=0);
       
    34     virtual ~ToneTestApp();
       
    35 
       
    36 private slots:
       
    37     void handleOk(const QVariant &result);
       
    38     void handleError(int errorCode, const QString& errorMessage);
       
    39     
       
    40     void fetchTone();
       
    41     
       
    42 private:
       
    43     void createLayout();
       
    44     
       
    45 private:
       
    46     XQApplicationManager mAppMgr;
       
    47     XQAiwRequest* mReq;
       
    48     HbLineEdit* mResultEdit;
       
    49     HbLineEdit* mErrorCodeEdit;
       
    50     HbLineEdit* mErrorEdit;
       
    51 };
       
    52 
       
    53 #endif // TONETESTAPP_H