appinstaller/AppinstUi/sifuiinstallindicatorplugin/src/sifuiinstallindicatorplugin.cpp
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     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:  Software install progress indicator
       
    15 *
       
    16 */
       
    17 
       
    18 #include "sifuiinstallindicatorplugin.h"
       
    19 #include "sifuiinstallindicator.h"
       
    20 #include "sifuiinstallindicatorparams.h"
       
    21 
       
    22 Q_EXPORT_PLUGIN(SifUiInstallIndicatorPlugin)
       
    23 
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 // SifUiInstallIndicatorPlugin::SifUiInstallIndicatorPlugin
       
    27 // ---------------------------------------------------------------------------
       
    28 //
       
    29 SifUiInstallIndicatorPlugin::SifUiInstallIndicatorPlugin() : mError(0)
       
    30 {
       
    31 }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // SifUiInstallIndicatorPlugin::~SifUiInstallIndicatorPlugin
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 SifUiInstallIndicatorPlugin::~SifUiInstallIndicatorPlugin()
       
    38 {
       
    39 }
       
    40 
       
    41 // ---------------------------------------------------------------------------
       
    42 // SifUiInstallIndicatorPlugin::indicatorTypes
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 QStringList SifUiInstallIndicatorPlugin::indicatorTypes() const
       
    46 {
       
    47     QStringList types;
       
    48     types << KSifUiInstallIndicatorType;
       
    49     return types;
       
    50 }
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // SifUiInstallIndicatorPlugin::accessAllowed
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 bool SifUiInstallIndicatorPlugin::accessAllowed(const QString &indicatorType,
       
    57     const QVariantMap &securityInfo) const
       
    58 {
       
    59     Q_UNUSED(indicatorType)
       
    60     Q_UNUSED(securityInfo)
       
    61 
       
    62     return true;    // All clients are allowed to use.
       
    63 }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // SifUiInstallIndicatorPlugin::createIndicator
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 HbIndicatorInterface* SifUiInstallIndicatorPlugin::createIndicator(
       
    70         const QString &indicatorType)
       
    71 {
       
    72     HbIndicatorInterface *indicator = new SifUiInstallIndicator(indicatorType);
       
    73     return indicator;
       
    74 }
       
    75 
       
    76 // ---------------------------------------------------------------------------
       
    77 // SifUiInstallIndicatorPlugin::error
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 int SifUiInstallIndicatorPlugin::error() const
       
    81 {
       
    82     return mError;
       
    83 }
       
    84