activityfw/testapplications/newtestappset/acttestdebugger/activitydebuger.h
changeset 117 c63ee96dbe5f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/activityfw/testapplications/newtestappset/acttestdebugger/activitydebuger.h	Thu Sep 16 12:11:40 2010 +0100
@@ -0,0 +1,109 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+#ifndef ACTIVITYDEBUGER_H
+#define ACTIVITYDEBUGER_H
+
+#include <QWidget>
+#include <QVariantHash>
+#include <HbView>
+#include <afactivities_global.h>
+
+class HbLabel;
+class QString;
+class ActivityClient;
+class QPixmap;
+class QByteArray;
+class QVariant;
+class HbComboBox;
+class QGraphicsGridLayout;
+class HbPushButton;
+class QByteArray;
+class ActivityDebugerConsole;
+class AfActivityStorage;
+class AfActivation;
+
+class ActivityDebuger: public HbView
+{
+
+    Q_OBJECT
+
+public:
+    ActivityDebuger(QGraphicsItem *parent = 0);
+    ~ActivityDebuger();
+
+private slots:
+    void saveActivity();
+    void deleteActivity();
+    void getActivity();
+    void getActivityData();
+    void getMyActivity();
+    void getActivityThumb();
+    
+    void thumbnailReady(QPixmap pix, void * ptr);
+    void loadActivityData(Af::ActivationReason reason, const QString &name, QVariantHash parameter);
+
+private:
+    void Before();
+    void After();
+    void Result();
+    
+    void getMetadata(QVariantHash varianthash);
+    void UpdateConsole();
+
+
+private:
+
+    HbLabel *mTimesLabel;
+    HbLabel *mPixmapLabel;
+    HbLabel *mBytesLabel;
+    HbLabel *mSizeLabel;
+    QString mItemMeaage;
+    QPixmap *mPixmap;
+    QPixmap *mPixmap2;
+    QPixmap *mEmptyPixmap;
+    HbComboBox *mTimesCombo;
+    HbComboBox *mLengthCombo;
+    HbComboBox *mPixmapCombo;
+    HbComboBox *mWidthCombo;
+    HbComboBox *mHeightCombo;
+    QGraphicsGridLayout *mLayout;
+    HbPushButton *mSaveButton;
+    HbPushButton *mDelButton;
+    HbPushButton *mDelMyButton;
+    HbPushButton *mGetButton;
+    HbPushButton *mGetDataButton;
+    HbPushButton *mGetMyButton;
+    HbPushButton *mThumbButton;
+    HbPushButton *mClearButton;
+    QByteArray *mByteArray;
+    TInt64 iBefore;
+    TInt64 iAfter;
+    TInt64 iResult;
+    
+    int mThumbwait;
+    int mThumbnull;
+    int mThumbcurrent;
+
+    ActivityDebugerConsole* mConsole;
+    
+    AfActivityStorage* mActivityStorage;
+    AfActivation* mActivation;
+    QObject *mActivityManager;
+
+};
+
+#endif //ACTIVITYDEBUGER_H