appinstaller/AppinstUi/sisxsilentinstallindicatorplugin/inc/sisxsilentinstallindicatorplugin.h
branchRCL_3
changeset 25 7333d7932ef7
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
       
     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 SISXSILENTINSTALLINDICATORPLUGIN_H
       
    19 #define SISXSILENTINSTALLINDICATORPLUGIN_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QStringList>
       
    23 #include <QVariant>
       
    24 #include <hbindicatorplugininterface.h>
       
    25 #include <hbindicatorinterface.h>
       
    26 
       
    27 /**
       
    28  * SWI Daemon sisx silent install indicator plugin class. 
       
    29  * Main class of indicator plugin. 
       
    30  */
       
    31 class SisxSilentInstallIndicatorPlugin : public QObject, 
       
    32                                          public HbIndicatorPluginInterface
       
    33 {
       
    34     Q_OBJECT
       
    35     Q_INTERFACES(HbIndicatorPluginInterface)
       
    36 
       
    37 public:
       
    38     /**
       
    39      * Constructor
       
    40      */
       
    41      SisxSilentInstallIndicatorPlugin();
       
    42      
       
    43      /**
       
    44       * Destructor
       
    45       */
       
    46     ~SisxSilentInstallIndicatorPlugin();
       
    47     
       
    48     /**
       
    49      * @see HbIndicatorPluginInterface
       
    50      */
       
    51     QStringList indicatorTypes() const;
       
    52     
       
    53     /**
       
    54      * @see HbIndicatorPluginInterface
       
    55      */   
       
    56     bool accessAllowed(const QString &indicatorType,
       
    57                        const QVariantMap &securityInfo) const;
       
    58       
       
    59     /**
       
    60      * @see HbIndicatorPluginInterface
       
    61      */
       
    62     HbIndicatorInterface* createIndicator(const QString &indicatorType);
       
    63     
       
    64     /**
       
    65      * @see HbIndicatorPluginInterface
       
    66      */
       
    67     int error() const;
       
    68     
       
    69 private:
       
    70     Q_DISABLE_COPY(SisxSilentInstallIndicatorPlugin)
       
    71     
       
    72     /**
       
    73      * Error value
       
    74      */
       
    75     int mError;
       
    76         
       
    77     /**
       
    78      * Indicator types 
       
    79      * supported indicator types. 
       
    80      */
       
    81     QStringList mIndicatorTypes;
       
    82 };
       
    83 
       
    84 #endif // SISXSILENTINSTALLINDICATORPLUGIN_H
       
    85