appinstaller/AppinstUi/sisxsilentinstallindicatorplugin/src/sisxsilentinstallindicatorplugin.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:21:33 +0300
branchRCL_3
changeset 25 7333d7932ef7
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:
 *
 */

#include <QtPlugin>
#include <QVariant>
#include "sisxsilentinstallindicatorplugin.h"
#include "sisxsilentinstallindicator.h"

Q_EXPORT_PLUGIN(SisxSilentInstallIndicatorPlugin)

// ----------------------------------------------------------------------------
// SisxSilentInstallIndicatorPlugin::SisxSilentInstallIndicatorPlugin
// @see sisxsilentinstallindicatorplugin.h
// ----------------------------------------------------------------------------
SisxSilentInstallIndicatorPlugin::SisxSilentInstallIndicatorPlugin() : mError(0)
{
   
}

// ----------------------------------------------------------------------------
// SisxSilentInstallIndicatorPlugin::~SisxSilentInstallIndicatorPlugin
// @see sisxsilentinstallindicatorplugin.h
// ----------------------------------------------------------------------------
SisxSilentInstallIndicatorPlugin::~SisxSilentInstallIndicatorPlugin()
{
}

// ----------------------------------------------------------------------------
// SisxSilentInstallIndicatorPlugin::indicatorTypes
// Return notification types this plugin implements
// @see sisxsilentinstallindicatorplugin.h
// ----------------------------------------------------------------------------
QStringList SisxSilentInstallIndicatorPlugin::indicatorTypes() const
{
  QStringList types; 
  types << "com.nokia.sisxsilentinstall.indicatorplugin/1.0";
  return types;
}

// ----------------------------------------------------------------------------
// SisxSilentInstallIndicatorPlugin::accessAllowed
// Check if client is allowed to use notification widget
// @see sisxsilentinstallindicatorplugin.h
// ----------------------------------------------------------------------------
bool SisxSilentInstallIndicatorPlugin::accessAllowed(
		const QString &indicatorType,
    const QVariantMap &securityInfo) const
{
    Q_UNUSED(indicatorType)
    Q_UNUSED(securityInfo)

    // This plugin doesn't perform operations that may compromise security.
    // All clients are allowed to use.
    return true;
}

// ----------------------------------------------------------------------------
// SisxSilentInstallIndicatorPlugin::createIndicator
// @see sisxsilentinstallindicatorplugin.h
// ----------------------------------------------------------------------------
HbIndicatorInterface* SisxSilentInstallIndicatorPlugin::createIndicator(
        const QString &indicatorType)
{
    HbIndicatorInterface *indicator = 
            new SisxSilentInstallIndicator(indicatorType);
    return indicator;
}

// ----------------------------------------------------------------------------
// SisxSilentInstallIndicatorPlugin::error
// @see sisxsilentinstallindicatorplugin.h
// ----------------------------------------------------------------------------
int SisxSilentInstallIndicatorPlugin::error() const
{
    return mError;
}

//EOF