devicemgmtindicatorsplugin/inc/dmindicatorsplugin.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: Device Management Indicator Plugin Class 
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef DMINDICATORSPLUGIN_H
       
    19 #define DMINDICATORSPLUGIN_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QStringList>
       
    23 #include <QVariant>
       
    24 #include <hbindicatorplugininterface.h>
       
    25 #include <hbindicatorinterface.h>
       
    26 
       
    27 /**
       
    28  * Device Management indicator plugin class. 
       
    29  * Main class of DM indicator plugin. 
       
    30  */
       
    31 class DMIndicatorsPlugin : public QObject, public HbIndicatorPluginInterface
       
    32     {
       
    33     Q_OBJECT
       
    34     Q_INTERFACES(HbIndicatorPluginInterface)
       
    35 
       
    36 public:
       
    37     /**
       
    38      * Constructor
       
    39      */
       
    40     DMIndicatorsPlugin();
       
    41 
       
    42     /**
       
    43      * Destructor
       
    44      */
       
    45     ~DMIndicatorsPlugin();
       
    46 
       
    47     /**
       
    48      * @see HbIndicatorPluginInterface
       
    49      */
       
    50     QStringList indicatorTypes() const;
       
    51 
       
    52     /**
       
    53      * @see HbIndicatorPluginInterface
       
    54      */
       
    55     bool accessAllowed(const QString &indicatorType,
       
    56                                const QVariantMap &securityInfo) const;   
       
    57     /**
       
    58      * @see HbIndicatorPluginInterface
       
    59      */
       
    60     HbIndicatorInterface* createIndicator(const QString &indicatorType);
       
    61 
       
    62     /**
       
    63      * @see HbIndicatorPluginInterface
       
    64      */
       
    65     int error() const;
       
    66 
       
    67 private:
       
    68     Q_DISABLE_COPY(DMIndicatorsPlugin)
       
    69 
       
    70     /**
       
    71      * Error value
       
    72      */
       
    73     int mError;
       
    74 
       
    75     /**
       
    76      * Indicator types 
       
    77      * supported indicator types. 
       
    78      */
       
    79     QStringList mIndicatorTypes;
       
    80     
       
    81 	/**
       
    82      * Secure Clients 
       
    83      * Only these clients can activate/deactivate the indicators 
       
    84      */
       
    85     QList<TUid> mSecureClients;
       
    86     };
       
    87 
       
    88 #endif // DMINDICATORSPLUGIN_H