musicservices/inc/playmusicservice.h
author William Roberts <williamr@symbian.org>
Thu, 22 Jul 2010 16:32:33 +0100
branchGCC_SURGE
changeset 44 eff9df3d9c98
parent 22 ecf06a08d4d9
permissions -rw-r--r--
Catchup to latest Symbian^4

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: PlayMusic Service interface.
*
*/

#ifndef PLAYMUSICSERVICE_H
#define PLAYMUSICSERVICE_H

#include <xqserviceprovider.h>
#include <xqsharablefile.h>
#include <QStringList>

// Forward declarations
class MusicServices;

/**
 *  PlayMusicService
 *
 */

class PlayMusicService : public XQServiceProvider
{
    Q_OBJECT

public:
    
    PlayMusicService( MusicServices* parent = 0);
    ~PlayMusicService();
    bool isActive();
    void complete( QStringList filesList );
    QString contextTitle() const;
    
public slots:
    
    bool view(const QString& file);
    bool view(const XQSharableFile& file);
    
private:
    int             mRequestIndex;
    MusicServices   *mServiceApp;
    QString         mTitle;
};



#endif // PLAYMUSICSERVICE_H