example/clientapi/smf/inc/common/smfplace/smfplace_p.h
changeset 3 0446eb7b28aa
parent 2 86af6c333601
child 4 969092730d34
equal deleted inserted replaced
2:86af6c333601 3:0446eb7b28aa
     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 SmfPlace class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFPLACE_P_H_
       
    21 #define SMFPLACE_P_H_
       
    22 
       
    23 #include <QUrl>
       
    24 #include <qgeopositioninfo.h> // Qt mobility class
       
    25 #include <QSharedData>
       
    26 
       
    27 using namespace QtMobility; // Qt mobility - namespace
       
    28 
       
    29 class SmfPlacePrivate : public QSharedData
       
    30 {
       
    31 public:
       
    32 	/**
       
    33 	 * Constructor
       
    34 	 */
       
    35 	SmfPlacePrivate( ) { 
       
    36 		m_name.clear();
       
    37 		m_city.clear();
       
    38 		m_street.clear();
       
    39 		m_zipcode.clear();
       
    40 		m_country.clear();
       
    41 		m_url.clear();
       
    42 		m_placeId.clear(); }
       
    43 	
       
    44 	/**
       
    45 	 * Copy Consturctor
       
    46 	 * @param aOther The reference object to be copy constructed
       
    47 	 */
       
    48 	SmfPlacePrivate( const SmfPlacePrivate &aOther ) : 
       
    49 		QSharedData ( aOther ), 
       
    50 		m_name ( aOther.m_name ),
       
    51 		m_city ( aOther.m_city ),
       
    52 		m_street ( aOther.m_street ),
       
    53 		m_zipcode ( aOther.m_zipcode ),
       
    54 		m_country ( aOther.m_country ),
       
    55 		m_geo ( aOther.m_geo ),
       
    56 		m_url ( aOther.m_url ),
       
    57 		m_placeId ( aOther.m_placeId ) 	{ }
       
    58 	
       
    59 	/**
       
    60 	 * Destructor
       
    61 	 */
       
    62 	~SmfPlacePrivate( );
       
    63   
       
    64 	QString m_name;						// place name
       
    65 	QString m_city;						// city of place
       
    66 	QString m_street;					// street of place
       
    67 	QString m_zipcode;					// zip code of place
       
    68 	QString m_country;					// country of place
       
    69 	QtMobility::QGeoPositionInfo m_geo;	// place geo position information
       
    70 	QUrl m_url;							// url indicating the place
       
    71 	QString m_placeId;					// place id
       
    72 	
       
    73 };
       
    74 
       
    75 #endif /* SMFPLACE_P_H_ */