37
|
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: Expanded call bubble handler.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef BUBBLEEXPANDEDHANDLER_H_
|
|
19 |
#define BUBBLEEXPANDEDHANDLER_H_
|
|
20 |
|
|
21 |
#include "bubblehandler.h"
|
|
22 |
|
|
23 |
class BubbleHeader;
|
|
24 |
class HbAction;
|
|
25 |
class BubbleButton;
|
|
26 |
class BubbleImageWidget;
|
|
27 |
class BubbleHeadingWidget;
|
|
28 |
|
|
29 |
class BubbleExpandedHandler : public BubbleHandler
|
|
30 |
{
|
|
31 |
Q_OBJECT
|
|
32 |
|
|
33 |
public:
|
|
34 |
explicit BubbleExpandedHandler(
|
|
35 |
BubbleWidgetManager& widgetManager,
|
|
36 |
BubbleWidgetManager::View view,
|
|
37 |
BubbleWidgetManager::Container container,
|
|
38 |
QObject* parent = 0);
|
|
39 |
virtual ~BubbleExpandedHandler();
|
|
40 |
|
|
41 |
protected:
|
|
42 |
void reset();
|
|
43 |
|
|
44 |
void readBubbleHeader( const BubbleHeader& header );
|
|
45 |
|
|
46 |
void setButtons(const QList<HbAction*>& actions);
|
|
47 |
|
|
48 |
QGraphicsWidget* graphicsWidgetForAction( HbAction* action ) const;
|
|
49 |
|
|
50 |
void updateTimerDisplayNow();
|
|
51 |
|
|
52 |
protected: //data
|
|
53 |
const BubbleHeader* mHeader;
|
|
54 |
|
|
55 |
BubbleHeadingWidget* mHeading;
|
|
56 |
|
|
57 |
BubbleImageWidget* mImage;
|
|
58 |
|
|
59 |
BubbleButton* mButtonCenter;
|
|
60 |
BubbleButton* mButtonLeft;
|
|
61 |
BubbleButton* mButtonRight;
|
|
62 |
};
|
|
63 |
|
|
64 |
#endif /* BUBBLEEXPANDEDHANDLER_H_ */
|