diff -r efe85016a067 -r 7cbcb2896f0e contactwidgethsplugin/src/contactwidgethsplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contactwidgethsplugin/src/contactwidgethsplugin.cpp Tue Jul 06 14:05:47 2010 +0300 @@ -0,0 +1,53 @@ +/* +* 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: Homescreen Friend widget plugin +* +*/ + +#include "contactwidgethsplugin.h" +#include "contactwidgeths.h" + + +#include +#include +#include + + + +/*! + \class ContactWidgetHsPlugin + \ingroup group_contactwidgethsplugin + \brief Homescreen contact widget provider collects ready-made homescreen contact widget(s). + + This library includes homescreen contact widgets. + This plugin provides widgets that are described in the contactwidgethsplugin.xml plugin + xml file. + +*/ +QObject *ContactWidgetHsPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor, + QServiceContext *context, + QAbstractSecuritySession *session) +{ + Q_UNUSED(context); + Q_UNUSED(session); + + if (descriptor.interfaceName() == QLatin1String("com.nokia.symbian.IHomeScreenWidget")) { + return new ContactWidgetHs(); + } else { + return 0; + } +} + +Q_EXPORT_PLUGIN2(contactwidgethsplugin, ContactWidgetHsPlugin) +