bluetoothengine/btindicator/inc/btindicatorplugin.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2  * Copyright (c) 2010 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: Bluetooth Indicator Plugin Class 
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef BTINDICATORPLUGIN_H
       
    19 #define BTINDICATORPLUGIN_H
       
    20 
       
    21 
       
    22 #include <hbindicatorplugininterface.h>
       
    23 #include <hbindicatorinterface.h>
       
    24 
       
    25 class HbTranslator;
       
    26 
       
    27 /**
       
    28  * Bluetooth indicator plugin class. 
       
    29  * Main class of bluetooth indicator plugin. 
       
    30  */
       
    31 class BTIndicatorPlugin : public QObject, public HbIndicatorPluginInterface
       
    32 {
       
    33     Q_OBJECT
       
    34     Q_INTERFACES(HbIndicatorPluginInterface)
       
    35 
       
    36 public:
       
    37     /**
       
    38      * Constructor
       
    39      */
       
    40     BTIndicatorPlugin();
       
    41      
       
    42      /**
       
    43       * Destructor
       
    44       */
       
    45     ~BTIndicatorPlugin();
       
    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(BTIndicatorPlugin)
       
    69     
       
    70     /**
       
    71      * Error value
       
    72      */
       
    73     int mError;
       
    74     
       
    75     /**
       
    76      * Indicator types 
       
    77      * supported indicator types. 
       
    78      */
       
    79     QStringList mIndicatorTypes;
       
    80     
       
    81     HbTranslator* mIndicatorTranslator;
       
    82 };
       
    83 
       
    84 
       
    85 #endif /* BTINDICATORPLUGIN_H */