equal
deleted
inserted
replaced
|
1 /*! |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BUBBLEEFFECTHANDLER_H_ |
|
19 #define BUBBLEEFFECTHANDLER_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <QMap> |
|
23 #include <hbeffect.h> |
|
24 |
|
25 class QGraphicsItem; |
|
26 |
|
27 enum BubbleEffect |
|
28 { |
|
29 BubbleMutedAppear = 1, |
|
30 BubbleMutedDisappear |
|
31 }; |
|
32 |
|
33 class BubbleEffectHandler : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 explicit BubbleEffectHandler(QObject* parent = 0); |
|
39 virtual ~BubbleEffectHandler(); |
|
40 |
|
41 void addEffect(QGraphicsItem* item, BubbleEffect effect); |
|
42 void removeEffect(QGraphicsItem* item, BubbleEffect effect); |
|
43 |
|
44 void startEffect(BubbleEffect effect); |
|
45 |
|
46 protected slots: |
|
47 void handleEffectFinished(const HbEffect::EffectStatus &status); |
|
48 |
|
49 protected: |
|
50 QMap<int,QGraphicsItem*> mEffectItem; |
|
51 }; |
|
52 |
|
53 #endif /* BUBBLEEFFECTHANDLER_H_ */ |