phoneplugins/phoneindicatorplugin/inc/phoneindicatorplugin.h
changeset 27 2f8f8080a020
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
       
     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:  
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef PHONEINDICATORPLUGIN_H
       
    19 #define PHONEINDICATORPLUGIN_H
       
    20 
       
    21 #include <hbindicatorplugininterface.h>
       
    22 #include <hbindicatorinterface.h>
       
    23 
       
    24 class PhoneIndicatorPlugin : public QObject, public HbIndicatorPluginInterface
       
    25 {
       
    26 Q_OBJECT
       
    27 Q_INTERFACES(HbIndicatorPluginInterface)
       
    28 public:
       
    29     PhoneIndicatorPlugin();
       
    30     ~PhoneIndicatorPlugin();
       
    31 
       
    32     QStringList indicatorTypes() const;
       
    33     bool accessAllowed(const QString &indicatorType,
       
    34                        const QVariantMap &securityInfo) const;
       
    35     HbIndicatorInterface* createIndicator(const QString &indicatorType);
       
    36     int error() const;
       
    37 private:
       
    38     int typeIndex(const QString &indicatorType) const;
       
    39 
       
    40 private:
       
    41     Q_DISABLE_COPY(PhoneIndicatorPlugin)
       
    42     int m_error;
       
    43     QStringList m_indicatorTypes;
       
    44 };
       
    45 
       
    46 #endif // PHONEINDICATORPLUGIN_H