equal
deleted
inserted
replaced
|
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: |
|
15 * |
|
16 */ |
|
17 #ifndef ANIMALWIDGET_H |
|
18 #define ANIMALWIDGET_H |
|
19 |
|
20 #include <QWidget> |
|
21 #include <QVariantHash> |
|
22 #include <afactivities_global.h> |
|
23 |
|
24 class QLabel; |
|
25 class QString; |
|
26 |
|
27 class AnimalWidget: public QWidget |
|
28 { |
|
29 |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 AnimalWidget(QWidget *parent = 0); |
|
34 ~AnimalWidget(); |
|
35 |
|
36 private slots: |
|
37 void changeAnimalImage(const QString &image); |
|
38 void saveActivity(); |
|
39 void loadActivity(Af::ActivationReason reason, const QString &name, QVariantHash parameter); |
|
40 |
|
41 private: |
|
42 QLabel *mAnimalLabel; |
|
43 QLabel *mFileNameLabel; |
|
44 QString mCurrentImage; |
|
45 QObject *mActivityStorage; |
|
46 QObject *mActivaction; |
|
47 }; |
|
48 |
|
49 #endif //ANIMALWIDGET_H |