controlpanelui/src/tonefetcher/src/tonefetcherview.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 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 
       
    37 signals:
       
    38         void itemSelected(const QString &path);
       
    39         
       
    40 private:
       
    41     void initMainWidget();
       
    42     void initToolBar();
       
    43     /*
       
    44      * tool bar actions must to be removed in case the app crashes.
       
    45      */
       
    46     void removeToolBarAction();
       
    47     
       
    48 private slots:
       
    49     void on_leftAction_triggered();
       
    50     void on_rightAction_triggered();
       
    51     void enableToolBar(bool enable);
       
    52     
       
    53 private:
       
    54     ToneFetcherWidget *mWidget;
       
    55     ToneFetcher *mServiceProvider; //not own
       
    56     HbAction *mToolBarLeftAction;
       
    57     HbAction *mToolBarRightAction;
       
    58     };
       
    59 
       
    60 #endif /* TONEFETCHERVIEW_H */