radioapp/radiouiengine/inc/radiomonitorservice.h
changeset 14 63aabac4416d
child 16 f54ebcfc1b80
equal deleted inserted replaced
13:46974bebc798 14:63aabac4416d
       
     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 *
       
    16 */
       
    17 
       
    18 #ifndef RADIOMONITORSERVICE_H
       
    19 #define RADIOMONITORSERVICE_H
       
    20 
       
    21 // System includes
       
    22 #include <xqserviceprovider.h>
       
    23 
       
    24 // User includes
       
    25 
       
    26 // Forward declarations
       
    27 class RadioUiEngine;
       
    28 
       
    29 class RadioMonitorService : public XQServiceProvider
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34 
       
    35     RadioMonitorService( RadioUiEngine& engine );
       
    36     virtual ~RadioMonitorService();
       
    37 
       
    38     void notifyName( const QString& name );
       
    39     void notifyGenre( const QString& genre );
       
    40     void notifyRadioText( const QString& radioText );
       
    41     void notifyHomepage( const QString& homepage );
       
    42     void notifySong( const QString& song );
       
    43 
       
    44 public slots:
       
    45 
       
    46     void requestNotifications();
       
    47 
       
    48 private:
       
    49     
       
    50     void notify( int notificationId, const QString& message );
       
    51     
       
    52 private: // data
       
    53 
       
    54     RadioUiEngine&  mUiEngine;
       
    55     
       
    56     int mRequestIndex;
       
    57 
       
    58 };
       
    59 
       
    60 #endif // RADIOMONITORSERVICE_H