controlpanelui/src/tonefetcher/src/tonefetcherview.h
changeset 19 36aa4756ee82
child 22 a5692c68d772
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
       
     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 fetcher view.
       
    16  *     
       
    17  */
       
    18 
       
    19 #ifndef TONEFETCHERVIEW_H
       
    20 #define TONEFETCHERVIEW_H
       
    21 
       
    22 #include <hblistwidget.h>
       
    23 #include <hbview.h>
       
    24 class ToneFetcherWidget;
       
    25 class HbAction;
       
    26 class ToneFetcher;
       
    27 
       
    28 class ToneFetcherView : public HbView
       
    29 {
       
    30     Q_OBJECT
       
    31     
       
    32 public:
       
    33     explicit ToneFetcherView(ToneFetcher *service);
       
    34     ~ToneFetcherView();
       
    35     void quit();
       
    36 private:
       
    37     void initMainWidget();
       
    38     void initToolBar();
       
    39     /*
       
    40      * tool bar actions must to be removed in case the app crashes.
       
    41      */
       
    42     void removeToolBarAction();
       
    43     
       
    44 private slots:
       
    45     void on_leftAction_triggered();
       
    46     void on_rightAction_triggered();
       
    47     void enableToolBar(bool enable);
       
    48     
       
    49 signals:
       
    50     void itemSelected(const QString &path);    
       
    51     
       
    52 private:
       
    53     ToneFetcherWidget *mWidget;
       
    54     ToneFetcher *mServiceProvider; //not own
       
    55     HbAction *mToolBarLeftAction;
       
    56     HbAction *mToolBarRightAction;
       
    57     };
       
    58 
       
    59 #endif /* TONEFETCHERVIEW_H_ */