devicemgmtindicatorsplugin/inc/dmindicator.h
changeset 42 aa33c2cb9a50
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     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: Tarm Trust Indicator class
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef DMINDICATOR_H
       
    19 #define DMINDICATOR_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <qvariant.h>
       
    23 #include <hbindicatorinterface.h>
       
    24 
       
    25 /**
       
    26  * DM indicator base class. 
       
    27  * Handles client request and showing the indications. 
       
    28  */
       
    29 class DMIndicator : public HbIndicatorInterface
       
    30     {
       
    31 public:
       
    32     /**
       
    33      * Constructor
       
    34      */
       
    35     DMIndicator(const QString &indicatorType,
       
    36             HbIndicatorInterface::Category category,
       
    37             HbIndicatorInterface::InteractionTypes interactionTypes);
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     virtual ~DMIndicator();
       
    42     
       
    43     /**
       
    44      * @see HbIndicatorInterface
       
    45      */
       
    46     //bool handleInteraction(InteractionType type);
       
    47     
       
    48 
       
    49     /**
       
    50      * @see HbIndicatorInterface
       
    51      */
       
    52     QVariant indicatorData(int role) const;
       
    53 
       
    54 protected:
       
    55 
       
    56     /**
       
    57      * @see HbIndicatorInterface
       
    58      */
       
    59     bool handleClientRequest(RequestType type, const QVariant &parameter);
       
    60     QVariant mParameter;
       
    61     };
       
    62 
       
    63 #endif // DMINDICATOR_H