phonebookui/pbkcommonui/inc/cnteditviewlistmodel.h
changeset 37 fd64c38c277d
parent 31 2a11b5b00470
child 40 b46a585f6909
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
    61 public:
    61 public:
    62     CntEditViewSeparator();
    62     CntEditViewSeparator();
    63     ~CntEditViewSeparator();
    63     ~CntEditViewSeparator();
    64     
    64     
    65     QVariant data(int role) const;
    65     QVariant data(int role) const;
    66     void activated();
    66     void activated(CntEditViewItemCallback* interface);
    67     void longPressed(const QPointF &coords);  
    67     void longPressed(const QPointF &coords, CntEditViewItemCallback* interface);  
    68 };
    68 };
    69 
    69 
    70 class CntEditViewListModel : public QAbstractListModel
    70 class CntEditViewListModel : public QAbstractListModel
    71 {
    71 {
    72     Q_OBJECT
    72     Q_OBJECT
    81     
    81     
    82 public:
    82 public:
    83     CntEditViewItem* itemAt( const QModelIndex& aIndex ) const;
    83     CntEditViewItem* itemAt( const QModelIndex& aIndex ) const;
    84     void removeItem( CntEditViewItem* aItem, const QModelIndex& aIndex );
    84     void removeItem( CntEditViewItem* aItem, const QModelIndex& aIndex );
    85     bool isEmptyItem( CntEditViewItem* aItem );
    85     bool isEmptyItem( CntEditViewItem* aItem );
    86     void refreshExtensionItems( const QModelIndex& aIndex );
    86     void refreshExtensionItems();
    87     void allInUseFields( CntViewIdList& aList );
    87     void allInUseFields( CntViewIdList& aList );
    88     
    88     
    89 private:
    89 private:
    90     void refresh();
    90     void refresh();
    91     void loadPluginItems( CntEditViewItemSupplier* aSupplier );
    91     void loadPluginItems( CntEditViewItemSupplier* aSupplier );