inc/mpapplicationmonitor.h
changeset 55 f3930dda3342
equal deleted inserted replaced
51:560ce2306a17 55:f3930dda3342
       
     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: Music Player application monitor utility.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPAPPLICATIONMONITOR_H
       
    19 #define MPAPPLICATIONMONITOR_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "mpcommondefs.h"
       
    23 
       
    24 #ifdef BUILD_MPAPPLICATIONMONITOR
       
    25 #define MPMPAPPLICATIONMONITOR_EXPORT Q_DECL_EXPORT
       
    26 #else
       
    27 #define MPMPAPPLICATIONMONITOR_EXPORT Q_DECL_IMPORT
       
    28 #endif
       
    29 
       
    30 class MpApplicationMonitorPrivate;
       
    31 
       
    32 class MPMPAPPLICATIONMONITOR_EXPORT MpApplicationMonitor : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36     friend class MpApplicationMonitorPrivate;
       
    37 
       
    38 public:
       
    39 
       
    40     explicit MpApplicationMonitor( quint32 clientSecureId=MpCommon::KMusicPlayerUid, QObject *parent=0 );
       
    41     virtual ~MpApplicationMonitor();
       
    42 
       
    43     bool isApplicationRunning();
       
    44 
       
    45 signals:
       
    46 
       
    47     void applicationStatusChanged( bool isRunning );
       
    48 
       
    49 private:
       
    50 
       
    51     Q_DISABLE_COPY( MpApplicationMonitor )
       
    52     MpApplicationMonitorPrivate *d_ptr;
       
    53 
       
    54 };
       
    55 
       
    56 #endif  // MPAPPLICATIONMONITOR_H