utilities/mpapplicationmonitor/inc/mpapplicationmonitor_p.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 - private implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPAPPLICATIONMONITORPRIVATE_H
       
    19 #define MPAPPLICATIONMONITORPRIVATE_H
       
    20 
       
    21 #include <w32std.h>
       
    22 #include <qglobal.h>
       
    23 
       
    24 class MpApplicationMonitor;
       
    25 
       
    26 class MpApplicationMonitorPrivate : public CActive
       
    27 {
       
    28 public:
       
    29 
       
    30     explicit MpApplicationMonitorPrivate( MpApplicationMonitor *qq );
       
    31     virtual ~MpApplicationMonitorPrivate();
       
    32 
       
    33     void init( quint32 clientSecureId );
       
    34     bool isApplicationRunning();
       
    35 
       
    36 protected:
       
    37 
       
    38     void RunL();
       
    39     void DoCancel();
       
    40 
       
    41 private:
       
    42 
       
    43     void DoInitL();
       
    44     bool DoIsApplicationRunningL();
       
    45     void CreateWindowGroupL();
       
    46     void StartMonitor();
       
    47 
       
    48 private:
       
    49 
       
    50     MpApplicationMonitor        *q_ptr;
       
    51 
       
    52     TUid                        iHostUid;
       
    53     RWindowGroup                iWindowGroup;
       
    54     RWsSession                  iWsSession;
       
    55 
       
    56 };
       
    57 
       
    58 #endif  // MPAPPLICATIONMONITORPRIVATE_H