smf/smfservermodule/smfclient/client/smfclient.h
author cgandhi <chandradeep.gandhi@sasken.com>
Tue, 18 May 2010 17:37:12 +0530
changeset 7 be09cf1f39dd
permissions -rw-r--r--
Updating the source code for plugin manager, transport manager, smfserver and smf client.

/**
 * 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:
 * The SmfClient class provides a set of APIs to get list of service provider
 * who implement the given interface. Calling GetServices of the instance of this
 * class is mandatory before using any other interface.
 *
 */

#ifndef SMFCLIENT_H
#define SMFCLIENT_H

#include <QObject>
#include "smfclientglobal.h"

#ifdef WRITE_LOG 
#include <QFile>
#include <QTextStream>
#endif
//Forward declarations
class SmfProvider;
class SmfClientPrivate;
/**
 * @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 SmfClient
{

public:
	/**
	 * Constructs SmfClient
	 */
	SmfClient();
	~SmfClient();
  /**
   * @param name of the service 
   * @return service provider list
   * 
   * More overloaded APIs will be provided later
   */
  QList<SmfProvider>* GetServices(const QString& serviceName); 
  //QList<SmfProvider>* GetServices(const QString& serviceName, const QString& providerName);
  //QList<SmfProvider>* GetServices(const QString& serviceName, const SmfProvider& provider);

	/**
	* Debugging purpose only
	*/
	void writeLog(QString log)const;
private:
  /**
   * Private impl wrapper.
   */
  SmfClientPrivate* m_private;
  /**
   * List of SmfProvider to be returned to the requested code
   */
  QList<SmfProvider>* m_providerList;
  

};


#endif // SMFCLIENT_H