smf/smfservermodule/smfclient/common/smfsubtitle_p.h
changeset 7 be09cf1f39dd
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 SmfSubtitle class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFSUBTITLE_P_H_
       
    21 #define SMFSUBTITLE_P_H_
       
    22 
       
    23 #include <QDateTime>
       
    24 #include <QSharedData>
       
    25 
       
    26 class SmfSubtitlePrivate : public QSharedData
       
    27 {
       
    28 public:
       
    29 	/**
       
    30 	 * Constructor
       
    31 	 */
       
    32 	SmfSubtitlePrivate( ) { 
       
    33 		m_language.clear();
       
    34 		m_frameRate = 0;
       
    35 		m_duration = 0;
       
    36 		m_subtitleId.clear();
       
    37 	}
       
    38 	
       
    39 	/**
       
    40 	 * Copy Consturctor
       
    41 	 * @param aOther The reference object to be copy constructed
       
    42 	 */
       
    43 	SmfSubtitlePrivate( const SmfSubtitlePrivate &aOther ) : 
       
    44 		QSharedData ( aOther ), 
       
    45 		m_subtitle ( aOther.m_subtitle ), 
       
    46 		m_language ( aOther.m_language ),
       
    47 		m_frameRate ( aOther.m_frameRate ),
       
    48 		m_duration ( aOther.m_duration ),
       
    49 		m_releaseYr ( aOther.m_releaseYr ),
       
    50 		m_subtitleId ( aOther.m_subtitleId ) 	{ }
       
    51 	
       
    52 	/**
       
    53 	 * Destructor
       
    54 	 */
       
    55 	~SmfSubtitlePrivate( )
       
    56 		{
       
    57 		}
       
    58   
       
    59 	QByteArray m_subtitle;	// subtitle data
       
    60 	QString m_language;		// language
       
    61 	double m_frameRate;		// frame rate
       
    62 	double m_duration;		// duration
       
    63 	QDateTime m_releaseYr;	// release year
       
    64 	QString m_subtitleId;	// subtitle id
       
    65 	
       
    66 };
       
    67 
       
    68 #endif /* SMFSUBTITLE_P_H_ */