phonebookui/pbkcommonui/inc/cntdetailpopup.h
changeset 59 a642906a277a
parent 31 2a11b5b00470
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
    17 
    17 
    18 #ifndef CNTDETAILPOPUP_H
    18 #ifndef CNTDETAILPOPUP_H
    19 #define CNTDETAILPOPUP_H
    19 #define CNTDETAILPOPUP_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
    22 #include <hbdialog.h>
    22 #include <hbselectiondialog.h>
    23 #include <cntviewparams.h>
    23 #include <cntviewparams.h>
    24 
    24 
    25 class QStandardItemModel;
    25 class QStandardItemModel;
    26 class HbListView;
       
    27 
    26 
    28 typedef QList<int> CntViewIdList;
    27 typedef QList<int> CntViewIdList;
    29 
    28 
    30 class CntDetailPopup : public HbDialog
    29 class CntDetailPopup : public HbSelectionDialog
    31 {
    30 {
       
    31     friend class TestCntDetailPopup;
    32     Q_OBJECT
    32     Q_OBJECT
       
    33     
    33 public:
    34 public:
    34     static void selectDetail( CntViewIdList aList, QObject *receiver = 0, const char *member = 0 );
    35     static void selectDetail( CntViewIdList aList, QObject *receiver = 0, const char *member = 0 );
    35     int selectedDetail();
       
    36 
    36 
    37 #ifdef PBK_UNIT_TEST
       
    38 public slots:
       
    39 #else
       
    40 private slots:
       
    41 #endif
       
    42     void listItemSelected(QModelIndex index);
       
    43 
       
    44 #ifdef PBK_UNIT_TEST
       
    45 public:
       
    46 #else
       
    47 private:
    37 private:
    48 #endif
       
    49     CntDetailPopup(QGraphicsItem *parent,  CntViewIdList aList );
    38     CntDetailPopup(QGraphicsItem *parent,  CntViewIdList aList );
    50     ~CntDetailPopup();
    39     ~CntDetailPopup();
    51 
    40 
    52     void addListItem(QString aIcon, QString label, int aId);
    41     void addListItem(QString aIcon, QString label, int aId);
    53 
    42 
    54 #ifdef PBK_UNIT_TEST
       
    55 public:
       
    56 #else
       
    57 private:
    43 private:
    58 #endif
       
    59     QStandardItemModel  *mListModel;
    44     QStandardItemModel  *mListModel;
    60     HbListView          *mListView;
       
    61     int                  mSelectedDetail;
       
    62     CntViewIdList        mViewIdList;
    45     CntViewIdList        mViewIdList;
    63 };
    46 };
    64 
    47 
    65 #endif // CNTDETAILPOPUP_H
    48 #endif // CNTDETAILPOPUP_H