musicservices/inc/getmusicservice.h
changeset 22 ecf06a08d4d9
equal deleted inserted replaced
20:82baf59ce8dd 22:ecf06a08d4d9
       
     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: GetMusic Service interface.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GETMUSICSERVICE_H
       
    19 #define GETMUSICSERVICE_H
       
    20 
       
    21 #include <xqserviceprovider.h>
       
    22 #include <QStringList>
       
    23 
       
    24 // Forward declarations
       
    25 class MusicServices;
       
    26 
       
    27 /**
       
    28  *  GetMusicService
       
    29  *
       
    30  */
       
    31 class GetMusicService : public XQServiceProvider
       
    32 {
       
    33     Q_OBJECT
       
    34 public:
       
    35     GetMusicService( MusicServices *parent = 0 );
       
    36     ~GetMusicService();
       
    37     bool isActive();
       
    38     void complete( QStringList filesList );
       
    39     QString contextTitle() const;
       
    40 
       
    41 public slots:
       
    42     void fetch();
       
    43 
       
    44 private:
       
    45     int             mRequestIndex;
       
    46     MusicServices   *mServiceApp;
       
    47     QString         mTitle;
       
    48 };
       
    49 
       
    50 
       
    51 
       
    52 #endif // GETMUSICSERVICE_H