controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofilemonitor.h
changeset 33 0cfa53de576f
parent 29 313976a11e23
child 36 2fee987ebaff
equal deleted inserted replaced
29:313976a11e23 33:0cfa53de576f
     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 CPPROFILEMONITOR_H_
       
    19 #define CPPROFILEMONITOR_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <MProfileChangeObserver.h>
       
    23 
       
    24 class CProfileChangeNotifyHandler;
       
    25 
       
    26 class CpProfileMonitor: public QObject,public MProfileChangeObserver
       
    27 {
       
    28     Q_OBJECT
       
    29 public:
       
    30     explicit CpProfileMonitor(QObject *parent = 0);
       
    31     ~CpProfileMonitor();
       
    32 signals:
       
    33     void profileActivated(int activeProfileId);
       
    34 private:
       
    35     virtual void HandleActiveProfileEventL(
       
    36                 TProfileEvent aProfileEvent, TInt aProfileId );
       
    37 
       
    38 private:
       
    39     CProfileChangeNotifyHandler* mProfileNotifier;
       
    40 };
       
    41 
       
    42 #endif /* CPPROFILEMONITOR_H_ */