activityfw/testapplications/newtestappset/acttestdebugger/activitydebuger.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     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 ACTIVITYDEBUGER_H
       
    18 #define ACTIVITYDEBUGER_H
       
    19 
       
    20 #include <QWidget>
       
    21 #include <QVariantHash>
       
    22 #include <HbView>
       
    23 #include <afactivities_global.h>
       
    24 
       
    25 class HbLabel;
       
    26 class QString;
       
    27 class ActivityClient;
       
    28 class QPixmap;
       
    29 class QByteArray;
       
    30 class QVariant;
       
    31 class HbComboBox;
       
    32 class QGraphicsGridLayout;
       
    33 class HbPushButton;
       
    34 class QByteArray;
       
    35 class ActivityDebugerConsole;
       
    36 class AfActivityStorage;
       
    37 class AfActivation;
       
    38 
       
    39 class ActivityDebuger: public HbView
       
    40 {
       
    41 
       
    42     Q_OBJECT
       
    43 
       
    44 public:
       
    45     ActivityDebuger(QGraphicsItem *parent = 0);
       
    46     ~ActivityDebuger();
       
    47 
       
    48 private slots:
       
    49     void saveActivity();
       
    50     void deleteActivity();
       
    51     void getActivity();
       
    52     void getActivityData();
       
    53     void getMyActivity();
       
    54     void getActivityThumb();
       
    55     
       
    56     void thumbnailReady(QPixmap pix, void * ptr);
       
    57     void loadActivityData(Af::ActivationReason reason, const QString &name, QVariantHash parameter);
       
    58 
       
    59 private:
       
    60     void Before();
       
    61     void After();
       
    62     void Result();
       
    63     
       
    64     void getMetadata(QVariantHash varianthash);
       
    65     void UpdateConsole();
       
    66 
       
    67 
       
    68 private:
       
    69 
       
    70     HbLabel *mTimesLabel;
       
    71     HbLabel *mPixmapLabel;
       
    72     HbLabel *mBytesLabel;
       
    73     HbLabel *mSizeLabel;
       
    74     QString mItemMeaage;
       
    75     QPixmap *mPixmap;
       
    76     QPixmap *mPixmap2;
       
    77     QPixmap *mEmptyPixmap;
       
    78     HbComboBox *mTimesCombo;
       
    79     HbComboBox *mLengthCombo;
       
    80     HbComboBox *mPixmapCombo;
       
    81     HbComboBox *mWidthCombo;
       
    82     HbComboBox *mHeightCombo;
       
    83     QGraphicsGridLayout *mLayout;
       
    84     HbPushButton *mSaveButton;
       
    85     HbPushButton *mDelButton;
       
    86     HbPushButton *mDelMyButton;
       
    87     HbPushButton *mGetButton;
       
    88     HbPushButton *mGetDataButton;
       
    89     HbPushButton *mGetMyButton;
       
    90     HbPushButton *mThumbButton;
       
    91     HbPushButton *mClearButton;
       
    92     QByteArray *mByteArray;
       
    93     TInt64 iBefore;
       
    94     TInt64 iAfter;
       
    95     TInt64 iResult;
       
    96     
       
    97     int mThumbwait;
       
    98     int mThumbnull;
       
    99     int mThumbcurrent;
       
   100 
       
   101     ActivityDebugerConsole* mConsole;
       
   102     
       
   103     AfActivityStorage* mActivityStorage;
       
   104     AfActivation* mActivation;
       
   105     QObject *mActivityManager;
       
   106 
       
   107 };
       
   108 
       
   109 #endif //ACTIVITYDEBUGER_H