smf/smfservermodule/smfclient/common/smfurl_p.h
changeset 14 a469c0e6e7fb
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
       
     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 SmfUrl class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFURL_P_H_
       
    21 #define SMFURL_P_H_
       
    22 
       
    23 #include <QSharedData>
       
    24 #include <QUrl>
       
    25 
       
    26 class SmfUrlPrivate : public QSharedData
       
    27 	{
       
    28 public:
       
    29 	/**
       
    30 	 * Constructor
       
    31 	 */
       
    32 	SmfUrlPrivate( ) { 
       
    33 		m_id.clear();
       
    34 	}
       
    35 	
       
    36 	/**
       
    37 	 * Copy Consturctor
       
    38 	 * @param aOther The reference object to be copy constructed
       
    39 	 */
       
    40 	SmfUrlPrivate( const SmfUrlPrivate &aOther ) : 
       
    41 		QSharedData ( aOther ), 
       
    42 		m_id ( aOther.m_id ) { }
       
    43 	
       
    44 	/**
       
    45 	 * Destructor
       
    46 	 */
       
    47 	~SmfUrlPrivate( )
       
    48 		{
       
    49 		}
       
    50 
       
    51 	/**
       
    52 	 * Data members
       
    53 	 */
       
    54 	QUrl 	m_href;		// The href attribute of an Atom link element, contains the link's IRI
       
    55 	QString m_rel;		// The rel attribute that indicates the link relation type
       
    56 	QString m_type;		// The type attribute. It is a hint about the type of the 
       
    57 						// representation that is expected to be returned when the 
       
    58 						// value of the href attribute is dereferenced
       
    59 	QString m_hreflang;	// The hreflang attribute describes the language of the resource 
       
    60 						// pointed to by the href attribute
       
    61 	QString m_title;	// The title attribute conveys human-readable information about the link
       
    62 	QString m_length;	// The length attribute indicates an advisory length 
       
    63 						// of the linked content in octets
       
    64 	QString m_id;		// The url ID
       
    65 	
       
    66 	};
       
    67 
       
    68 #endif /* SMFURL_P_H_ */