appinstaller/AppinstUi/sifuidevicedialogplugin/inc/sifuidialogcontentwidget.h
changeset 60 245df5276b97
parent 52 92f864ef0288
equal deleted inserted replaced
53:ae54820ef82c 60:245df5276b97
    18 #ifndef SIFUIDIALOGCONTENTWIDGET_H
    18 #ifndef SIFUIDIALOGCONTENTWIDGET_H
    19 #define SIFUIDIALOGCONTENTWIDGET_H
    19 #define SIFUIDIALOGCONTENTWIDGET_H
    20 
    20 
    21 #include <hbwidget.h>
    21 #include <hbwidget.h>
    22 #include <sifuidialogdefinitions.h>
    22 #include <sifuidialogdefinitions.h>
       
    23 #include <qmobilityglobal.h>            // QTM namespace macros
    23 
    24 
    24 class HbLabel;
    25 class HbLabel;
    25 class QGraphicsLinearLayout;
    26 class QGraphicsLinearLayout;
    26 class HbStackedWidget;
    27 class HbStackedWidget;
    27 class HbComboBox;
    28 class HbComboBox;
    28 class HbProgressBar;
    29 class HbProgressBar;
    29 class CFbsBitmap;
    30 class CFbsBitmap;
       
    31 
       
    32 QTM_BEGIN_NAMESPACE
       
    33 class QValueSpacePublisher;
       
    34 class QValueSpaceSubscriber;
       
    35 QTM_END_NAMESPACE
    30 
    36 
    31 
    37 
    32 class SifUiDialogContentWidget : public HbWidget
    38 class SifUiDialogContentWidget : public HbWidget
    33 {
    39 {
    34     Q_OBJECT
    40     Q_OBJECT
    38     virtual ~SifUiDialogContentWidget();
    44     virtual ~SifUiDialogContentWidget();
    39 
    45 
    40     void constructFromParameters(const QVariantMap &parameters);
    46     void constructFromParameters(const QVariantMap &parameters);
    41     void updateFromParameters(const QVariantMap &parameters);
    47     void updateFromParameters(const QVariantMap &parameters);
    42     void changeType(SifUiDeviceDialogType type);
    48     void changeType(SifUiDeviceDialogType type);
       
    49     QString applicationName() const;
    43 
    50 
    44 signals:
    51 signals:
    45     void memorySelectionChanged(const QChar &driveLetter);
    52     void memorySelectionChanged(const QChar &driveLetter);
    46 
    53 
    47 private slots:
    54 private slots:
    58     void updateAppIcon(const QVariantMap &parameters);
    65     void updateAppIcon(const QVariantMap &parameters);
    59     void updateAppSize(const QVariantMap &parameters);
    66     void updateAppSize(const QVariantMap &parameters);
    60     bool updateMemorySelection(const QVariantMap &parameters);
    67     bool updateMemorySelection(const QVariantMap &parameters);
    61     bool updateProgressBar(const QVariantMap &parameters);
    68     bool updateProgressBar(const QVariantMap &parameters);
    62     bool updateErrorText(const QVariantMap &parameters);
    69     bool updateErrorText(const QVariantMap &parameters);
       
    70     void saveSelectedDriveAsDefault(const QChar& drive);
       
    71     QChar readDefaultSelectedDrive();
    63 
    72 
    64 private:    // data
    73 private:    // data
    65     HbLabel *mAppIcon;
    74     HbLabel *mAppIcon;
    66     HbLabel *mAppName;
    75     HbLabel *mAppName;
    67     HbLabel *mAppSize;
    76     HbLabel *mAppSize;
    72     QStringList mDriveLetterList;
    81     QStringList mDriveLetterList;
    73     HbProgressBar *mProgressBar;
    82     HbProgressBar *mProgressBar;
    74     HbLabel *mErrorText;
    83     HbLabel *mErrorText;
    75     CFbsBitmap *mBitmap;
    84     CFbsBitmap *mBitmap;
    76     CFbsBitmap *mMask;
    85     CFbsBitmap *mMask;
       
    86     QTM_PREPEND_NAMESPACE(QValueSpacePublisher) *mPublisher;
       
    87     QTM_PREPEND_NAMESPACE(QValueSpaceSubscriber) *mSubscriber;
    77 };
    88 };
    78 
    89 
    79 #endif // SIFUIDIALOGCONTENTWIDGET_H
    90 #endif // SIFUIDIALOGCONTENTWIDGET_H