diff -r 7333d7932ef7 -r 8b7f4e561641 appinstaller/AppinstUi/sisxsilentinstallindicatorplugin/src/sisxsilentinstallindicatorplugin.cpp --- a/appinstaller/AppinstUi/sisxsilentinstallindicatorplugin/src/sisxsilentinstallindicatorplugin.cpp Tue Aug 31 15:21:33 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -/* - * 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 -#include -#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