smf/inc/common/smfmusic/smflyrics_p.h
changeset 3 0446eb7b28aa
child 5 edb9dc8273d9
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 SmfLyrics class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFLYRICS_P_H_
       
    21 #define SMFLYRICS_P_H_
       
    22 
       
    23 #include <QDateTime>
       
    24 #include <QSharedData>
       
    25 
       
    26 class SmfLyricsPrivate : public QSharedData
       
    27 {
       
    28 public:
       
    29 	/**
       
    30 	 * Constructor
       
    31 	 */
       
    32 	SmfLyricsPrivate( ) { 
       
    33 		m_lyrics.clear();
       
    34 		m_language.clear();
       
    35 		m_lyricsId.clear(); 
       
    36 	}
       
    37 	
       
    38 	/**
       
    39 	 * Copy Consturctor
       
    40 	 * @param aOther The reference object to be copy constructed
       
    41 	 */
       
    42 	SmfLyricsPrivate( const SmfLyricsPrivate &aOther ) : 
       
    43 		QSharedData ( aOther ), 
       
    44 		m_lyrics ( aOther.m_lyrics ),
       
    45 		m_language ( aOther.m_language ),
       
    46 		m_releaseYr ( aOther.m_releaseYr ),
       
    47 		m_lyricsId ( aOther.m_lyricsId ) 	{ }
       
    48 	
       
    49 	/**
       
    50 	 * Destructor
       
    51 	 */
       
    52 	~SmfLyricsPrivate( );
       
    53   
       
    54 	QByteArray m_lyrics;	// lyrics data
       
    55 	QString m_language;		// language
       
    56 	QDateTime m_releaseYr;	// release year
       
    57 	QString m_lyricsId;		// lyrics id
       
    58 	
       
    59 };
       
    60 
       
    61 #endif /* SMFLYRICS_P_H_ */