activityfw/testapplications/activitydebugger/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 <HbView>
       
    22 
       
    23 class HbLabel;
       
    24 class QString;
       
    25 class ActivityClient;
       
    26 class QPixmap;
       
    27 class QByteArray;
       
    28 class QVariant;
       
    29 class HbComboBox;
       
    30 class QGraphicsGridLayout;
       
    31 class HbPushButton;
       
    32 class QByteArray;
       
    33 class ActivityDebugerConsole;
       
    34 
       
    35 class ActivityDebuger: public HbView
       
    36 {
       
    37 
       
    38     Q_OBJECT
       
    39 
       
    40 public:
       
    41     ActivityDebuger(QGraphicsItem *parent = 0);
       
    42     ~ActivityDebuger();
       
    43 
       
    44 private slots:
       
    45     void saveActivity();
       
    46     void deleteActivity();
       
    47     void getActivity();
       
    48     void getActivityData();
       
    49     void updateActivity();
       
    50     void getActivityThumb();
       
    51     
       
    52     void thumbnailReady(QPixmap pix, void * ptr);
       
    53 
       
    54 private:
       
    55     void Before();
       
    56     void After();
       
    57     void Result();
       
    58     
       
    59     void UpdateConsole();
       
    60 
       
    61 
       
    62 private:
       
    63 
       
    64     HbLabel *mTimesLabel;
       
    65     HbLabel *mPixmapLabel;
       
    66     HbLabel *mBytesLabel;
       
    67     HbLabel *mSizeLabel;
       
    68     QString mItemMeaage;
       
    69     QObject *mActivityClient;
       
    70     QObject *mActivityManager;
       
    71     QPixmap *mPixmap;
       
    72     QPixmap *mPixmap2;
       
    73     QPixmap *mEmptyPixmap;
       
    74     HbComboBox *mTimesCombo;
       
    75     HbComboBox *mLengthCombo;
       
    76     HbComboBox *mPixmapCombo;
       
    77     HbComboBox *mWidthCombo;
       
    78     HbComboBox *mHeightCombo;
       
    79     QGraphicsGridLayout *mLayout;
       
    80     HbPushButton *mSaveButton;
       
    81     HbPushButton *mDelButton;
       
    82     HbPushButton *mDelMyButton;
       
    83     HbPushButton *mGetButton;
       
    84     HbPushButton *mGetDataButton;
       
    85     HbPushButton *mUpdateButton;
       
    86     HbPushButton *mThumbButton;
       
    87     HbPushButton *mClearButton;
       
    88     QByteArray *mByteArray;
       
    89     TInt64 iBefore;
       
    90     TInt64 iAfter;
       
    91     TInt64 iResult;
       
    92     
       
    93     int mThumbwait;
       
    94     int mThumbnull;
       
    95     int mThumbcurrent;
       
    96 
       
    97     ActivityDebugerConsole* mConsole;
       
    98 
       
    99 };
       
   100 
       
   101 #endif //ACTIVITYDEBUGER_H