controlpanelui/src/tonefetcher/src/tonefetcher.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.
       
    16  *     
       
    17  */
       
    18 #ifndef TONEFETCHER_H
       
    19 #define TONEFETCHER_H
       
    20 
       
    21 #include <xqserviceprovider.h>
       
    22 
       
    23 class HbMainWindow;
       
    24 class ToneFetcher : public XQServiceProvider
       
    25 {
       
    26 
       
    27     Q_OBJECT
       
    28     
       
    29 public:
       
    30     explicit ToneFetcher(HbMainWindow *mainWindow = 0);
       
    31     ~ToneFetcher();
       
    32     /*
       
    33      * return the tone's absolution path to the service requestor.
       
    34      */
       
    35     void complete();
       
    36     /*
       
    37      * currently only one request is allowed.
       
    38      */
       
    39     bool isActive();
       
    40         
       
    41 public slots:
       
    42     void fetch();
       
    43     
       
    44 private slots:
       
    45     void setSelectedPath(const QString &tonePath);
       
    46 
       
    47 private:
       
    48     HbMainWindow *mMainWindow;
       
    49     int mAsyncRequestIndex;
       
    50     QVariant mReturnValue;
       
    51 };
       
    52 
       
    53 #endif // TONEFETCHER_H