controlpanelui/src/inc/cpringtoneview.h
branchRCL_3
changeset 14 5f281e37a2f5
parent 13 90fe62538f66
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
     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 CPRINGTONEVIEW_H
       
    18 #define CPRINGTONEVIEW_H
       
    19 
       
    20 #include "ringtoneviewdef.h"
       
    21 #include <cpbasesettingview.h>
       
    22 #include <xqappmgr.h>
       
    23 
       
    24 class HbListWidget;
       
    25 class HbListWidgetItem;
       
    26 class XQAiwRequest;
       
    27 
       
    28 class CPRINGTONEVIEW_EXPORT CpRingToneView : public CpBaseSettingView
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32    explicit CpRingToneView( QGraphicsItem *parent = 0 );
       
    33    ~CpRingToneView();
       
    34 signals:
       
    35    void selOK( const QString &strFname);
       
    36    void selError(  int errorCode, const QString& errorMessage );
       
    37 
       
    38 private slots:
       
    39     void itemActivated( const QModelIndex &index );
       
    40     void handleOk(const QVariant &result);
       
    41     void handleError(int errorCode, const QString& errorMessage);
       
    42 
       
    43 private:
       
    44     HbListWidget* mToneTypeList;
       
    45     XQAiwRequest* mReq;
       
    46     XQApplicationManager mAppMgr;
       
    47     //used to mark if there is a request being processed
       
    48     bool mProcessing;
       
    49     
       
    50 private:
       
    51     void launchMediaFetcher( const QString &strService, const QString &strItface );
       
    52 };
       
    53 
       
    54 #endif // CPRINGTONEVIEW_H