smf/inc/smfplugins/base/smfproviderbase_p.h
changeset 7 be09cf1f39dd
parent 6 c39a6cfd1fb9
child 8 4102c67b6e56
equal deleted inserted replaced
6:c39a6cfd1fb9 7:be09cf1f39dd
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "Eclipse Public License v1.0" 
       
     6  * which accompanies  this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Contributors:
       
    13  * Manasij Roy, Nalina Hariharan
       
    14  * 
       
    15  * Description:
       
    16  * Private class implemented for implicit sharing of SmfProviderBase class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFPROVIDERBASE_P_H_
       
    21 #define SMFPROVIDERBASE_P_H_
       
    22 
       
    23 #include <QImage>
       
    24 #include <QUrl>
       
    25 #include <QBuffer>
       
    26 #include <smfglobal.h>
       
    27 #include <QSharedData>
       
    28 
       
    29 
       
    30 class SmfProviderBasePrivate : public QSharedData
       
    31 {
       
    32 public:
       
    33 	/**
       
    34 	 * Constructor
       
    35 	 */
       
    36 	SmfProviderBasePrivate( ) { 
       
    37 		m_serviceName.clear(); 
       
    38 		m_description.clear();
       
    39 		m_serviceUrl.clear();
       
    40 		m_applicationUrl.clear();
       
    41 		m_pluginId.clear();
       
    42 		m_authenticationAppId = 0;
       
    43 		m_registrationId.clear();
       
    44 	}
       
    45 	
       
    46 	/**
       
    47 	 * Copy Consturctor
       
    48 	 * @param aOther The reference object to be copy constructed
       
    49 	 */
       
    50 	SmfProviderBasePrivate( const SmfProviderBasePrivate &aOther ) : 
       
    51 		QSharedData ( aOther ), 
       
    52 		m_serviceName ( aOther.m_serviceName ),
       
    53 		m_serviceIcon ( aOther.m_serviceIcon ),
       
    54 		m_description ( aOther.m_description ),
       
    55 		m_serviceUrl ( aOther.m_serviceUrl ),
       
    56 		m_applicationUrl ( aOther.m_applicationUrl ),
       
    57 		m_applicationIcon ( aOther.m_applicationIcon ),
       
    58 		m_pluginId ( aOther.m_pluginId ),
       
    59 		m_authenticationAppId ( aOther.m_authenticationAppId ),
       
    60 		m_registrationId ( aOther.m_registrationId ), 
       
    61 		m_usage ( aOther.m_usage )	{ }
       
    62 	
       
    63 	/**
       
    64 	 * Destructor
       
    65 	 */
       
    66 	~SmfProviderBasePrivate( );
       
    67   
       
    68 	QString m_serviceName;	// the Localisable name of the service
       
    69 	QImage m_serviceIcon;	// the Logo of the service
       
    70 	QString m_description;	// the Readable service description
       
    71 	QUrl m_serviceUrl;		// the Website of the service
       
    72 	QUrl m_applicationUrl; 	// URL of the Application providing this service
       
    73 	QImage m_applicationIcon;	//Icon of the application
       
    74 	QString m_pluginId;		// The Plugin specific ID
       
    75 	QString m_authenticationAppId; // ID of the authentication application for this service
       
    76 	QString m_registrationId; 	// unique registration ID provided by the 
       
    77 							// Smf for authorised plugins
       
    78 	SmfPluginDataUsage m_usage;	//data usage of each plugin
       
    79 	
       
    80 };
       
    81 
       
    82 #endif /* SMFPROVIDERBASE_P_H_ */