31
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "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 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: This widget holds the message details and silde contents.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef UNIVIEWSLIDE_WIDGET_H
|
|
19 |
#define UNIVIEWSLIDE_WIDGET_H
|
|
20 |
|
|
21 |
#include <hbwidget.h>
|
|
22 |
#include <qobject.h>
|
|
23 |
|
|
24 |
class QGraphicsLinearLayout;
|
|
25 |
class UniViewerBodyWidget;
|
|
26 |
class UniViewerFeeder;
|
|
27 |
class UniViewerHeaderContainer;
|
|
28 |
|
|
29 |
/**
|
|
30 |
* This widget is place holder for message headers and body
|
|
31 |
*/
|
|
32 |
class UniViewSlideWidget: public HbWidget
|
|
33 |
{
|
|
34 |
Q_OBJECT
|
|
35 |
|
|
36 |
public:
|
|
37 |
/**
|
|
38 |
* Constructor
|
|
39 |
*/
|
|
40 |
UniViewSlideWidget(UniViewerFeeder* feeder, int slideNumber, QGraphicsItem * parent = 0);
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Destructor
|
|
44 |
*/
|
|
45 |
~UniViewSlideWidget();
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Returns the value of mInsideLayout
|
|
49 |
* @return value of mInsideLayout
|
|
50 |
*/
|
|
51 |
bool insideLayout();
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Sets the mInsideLayout
|
|
55 |
* @param inside which is set to mInsideLayout
|
|
56 |
*/
|
|
57 |
void setInsideLayout(bool inside);
|
|
58 |
|
|
59 |
public slots:
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Clears the content on the widget
|
|
63 |
*/
|
|
64 |
void clearContent();
|
|
65 |
|
|
66 |
/**
|
|
67 |
* Populates the content on the widget
|
|
68 |
*/
|
|
69 |
void populateContent();
|
|
70 |
|
|
71 |
/**
|
|
72 |
* Populates the content first slide
|
|
73 |
* @param messageDetails message details
|
|
74 |
*/
|
|
75 |
void populateFirstSlide();
|
|
76 |
|
|
77 |
signals:
|
|
78 |
|
|
79 |
/**
|
|
80 |
* this signal is emitted when sendMessage is emitted. from UniViewerTextItem.
|
|
81 |
*/
|
|
82 |
void sendMessage(const QString& phoneNumber,const QString& alias = QString());
|
|
83 |
|
|
84 |
private:
|
|
85 |
|
|
86 |
/**
|
|
87 |
* This is used only inside the contents widget
|
|
88 |
* to find out if the slide widget is inside the
|
|
89 |
* layout of contents widget
|
|
90 |
*/
|
|
91 |
bool mInsideLayout;
|
|
92 |
|
|
93 |
/**
|
|
94 |
* slide number
|
|
95 |
*/
|
|
96 |
int mSlideNumber;
|
|
97 |
|
|
98 |
/**
|
|
99 |
* QGraphicsLinearLayout object
|
|
100 |
* Owned
|
|
101 |
*/
|
|
102 |
QGraphicsLinearLayout* mMainLayout;
|
|
103 |
|
|
104 |
/**
|
|
105 |
* UniViewerFeeder object
|
|
106 |
* Owned
|
|
107 |
*/
|
|
108 |
UniViewerFeeder* mViewFeeder;
|
|
109 |
|
|
110 |
/**
|
|
111 |
* UniViewerBodyWidget object
|
|
112 |
* Owned
|
|
113 |
*/
|
|
114 |
UniViewerBodyWidget* mBody;
|
|
115 |
|
|
116 |
/**
|
|
117 |
* UniViewerHeaderContainer object
|
|
118 |
* Owned
|
|
119 |
*/
|
|
120 |
UniViewerHeaderContainer* mHeaderContainer;
|
|
121 |
|
|
122 |
};
|
|
123 |
|
|
124 |
#endif // UNIVIEWSLIDE_WIDGET_H
|
|
125 |
// EOF
|