18
|
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 SmfComment class
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#ifndef SMFCOMMENT_P_H_
|
|
21 |
#define SMFCOMMENT_P_H_
|
|
22 |
|
|
23 |
#include <QDateTime>
|
|
24 |
#include <QSharedData>
|
|
25 |
|
|
26 |
class SmfCommentPrivate : public QSharedData
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
/**
|
|
30 |
* Constructor
|
|
31 |
*/
|
|
32 |
SmfCommentPrivate( ) { m_text.clear(); m_commentId.clear(); }
|
|
33 |
|
|
34 |
/**
|
|
35 |
* Copy Consturctor
|
|
36 |
* @param aOther The reference object to be copy constructed
|
|
37 |
*/
|
|
38 |
SmfCommentPrivate( const SmfCommentPrivate &aOther ) :
|
|
39 |
QSharedData ( aOther ),
|
|
40 |
m_text ( aOther.m_text ),
|
|
41 |
m_timeStamp ( aOther.m_timeStamp ),
|
|
42 |
m_commentId ( aOther.m_commentId ) { }
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Destructor
|
|
46 |
*/
|
|
47 |
~SmfCommentPrivate( )
|
|
48 |
{
|
|
49 |
}
|
|
50 |
|
|
51 |
QString m_text; // comment text
|
|
52 |
QDateTime m_timeStamp; // comment time stamp
|
|
53 |
QString m_commentId; // comment Id
|
|
54 |
|
|
55 |
};
|
|
56 |
|
|
57 |
#endif /* SMFCOMMENT_P_H_ */
|