diff -r 106a4bfcb866 -r 013a02bf2bb0 smf/smfservermodule/smfclient/common/smfprovider.h --- a/smf/smfservermodule/smfclient/common/smfprovider.h Thu Aug 05 16:46:37 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,159 +0,0 @@ -/** - * Copyright (c) 2010 Sasken Communication Technologies Ltd. - * All rights reserved. - * This component and the accompanying materials are made available - * under the terms of the "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: - * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution - * - * Contributors: - * Manasij Roy, Nalina Hariharan - * - * Description: - * Interface for a base service provider - * - */ - -#ifndef SMFPROVIDER_H -#define SMFPROVIDER_H - -#include -#include -#include -#include -#include - -#include "smfclientglobal.h" -/** - * @ingroup smf_client_group - * Interface for a base service provider. Other service provider classes contains - * implementation of this base class so that each has access to service provider - * information. - * All of the functionality described here should be implemented by a service - * specific plug-in object. - */ -class SMFCLIENT_EXPORT SmfProvider -{ - -public: - - /** - * Constructor - */ - SmfProvider(); - /** - * Destructor - */ - ~SmfProvider(); - -public: - /** - * Localizable name of the service - * @return service name - */ - QString serviceName() const; - - /** - * Logo of the service - * @return logo image of the service - */ - QImage serviceIcon() const; - - /** - * Readable service description - * @return service description - */ - QString description() const; - - /* - * Website of the service - */ - QUrl serviceUrl() const; - - /** - * URL of the application providing this service - */ - QUrl applicationUrl() const; // - - /** - * List of interfaces that this provider support - */ - QList supportedInterfaces() const; - - /** - * List of languages supported by this service provider - * @return a QStringList of languages supported by this service - * provider in 2 letter ISO 639-1 format. - */ - QStringList supportedLanguages() const; - - /** - * Sets Localizable name of the service - * - */ - void setServiceName(QString& name); - - /** - * Sets Logo of the service - * - */ - void setServiceIcon(QImage& image) ; - - /** - * Sets Readable service description - * - */ - void setDescription(QString& desc) ; - - /* - * Sets Website of the service - */ - void setServiceUrl(QUrl& url) ; - - /** - * Sets URL of the application providing this service - */ - void setApplicationUrl(QUrl& url) ; - - /** - * Sets list of interfaces that this provider supports - */ - void setSupportedInterfaces( QStringList& types); - - /** - * Sets the list of languages supported by this service provider - * @param lang A QStringList of languages supported by this service - * provider in 2 letter ISO 639-1 format. - */ - void setSupportedLanguages( QStringList& lang ); - -private: - QString m_serviceName; - QImage m_serviceIcon; - QString m_description; - QUrl m_serviceUrl; - QUrl m_appUrl; - QStringList m_serviceTypes; - QStringList m_supportedLanguages; - friend QDataStream &operator<<(QDataStream &, const SmfProvider&); - friend QDataStream &operator>>(QDataStream &, SmfProvider&); -}; -/** -* Externalization -*/ -SMFCLIENT_EXPORT QDataStream &operator<<(QDataStream &, const SmfProvider&); -/** - * Internalization - */ -SMFCLIENT_EXPORT QDataStream &operator>>(QDataStream &, SmfProvider&); - -typedef QList SmfProviderList; - -// Make the class SmfProvider known to QMetaType, so that as to register it. -Q_DECLARE_METATYPE(SmfProvider) -Q_DECLARE_METATYPE(QList) - -#endif // SMFPROVIDER_H