phonebookui/pbkcommonui/inc/cntnamesview_p.h
changeset 31 2a11b5b00470
parent 27 de1630741fbe
child 37 fd64c38c277d
equal deleted inserted replaced
27:de1630741fbe 31:2a11b5b00470
    36 class HbDocumentLoader;
    36 class HbDocumentLoader;
    37 class HbSearchPanel;
    37 class HbSearchPanel;
    38 class HbStaticVkbHost;
    38 class HbStaticVkbHost;
    39 class QGraphicsLinearLayout;
    39 class QGraphicsLinearLayout;
    40 class CntExtensionManager;
    40 class CntExtensionManager;
       
    41 class CntFetchContacts;
    41 
    42 
    42 class CntNamesViewPrivate : public QObject
    43 class CntNamesViewPrivate : public QObject
    43     {
    44     {
    44     Q_OBJECT
    45     Q_OBJECT
    45     Q_DECLARE_PUBLIC(CntNamesView)
    46     Q_DECLARE_PUBLIC(CntNamesView)
    60     void handleKeypadClose();
    61     void handleKeypadClose();
    61     
    62     
    62     void handleExtensionAction();
    63     void handleExtensionAction();
    63     
    64     
    64     void createNewContact();
    65     void createNewContact();
       
    66     void deleteContact( QContact& aContact );
       
    67     void deleteMultipleContacts();
       
    68     
       
    69     void handleDeleteMultipleContacts();
       
    70 
    65     void showPreviousView();
    71     void showPreviousView();
    66     void showCollectionView();
    72     void showCollectionView();
    67     void showContactView( QContact& aContact );
    73     void showContactView( QContact& aContact );
    68     void showContactView( const QModelIndex& );
    74     void showContactView( const QModelIndex& );
    69     void showContactEditorView( QContact& aContact );
    75     void showContactEditorView( QContact& aContact );
    70     void showContextMenu(HbAbstractViewItem* aItem, QPointF aPoint);
    76     void showContextMenu(HbAbstractViewItem* aItem, QPointF aPoint);
    71         
    77         
    72     void executeAction( QContact& aContact, QString aAction );
    78     void executeAction( QContact& aContact, QString aAction );
    73     void actionExecuted( CntAction* aAction );
    79     void actionExecuted( CntAction* aAction );
    74     void deleteContact( QContact& aContact );        
    80     void handleDeleteContact( HbAction* aAction );
    75     void importSim();
    81     void importSim();
    76         
    82 
    77 public:
    83 public:
    78     bool isFinderVisible();
    84     bool isFinderVisible();
    79     void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs );
    85     void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs );
    80     void deactivate();
    86     void deactivate();
    81     void scrollTo(const QContact &aContact);
       
    82     
    87     
    83 public:
    88 public:
    84     CntNamesView* q_ptr;
    89     CntNamesView *q_ptr;
    85     
    90     
    86 public: // lazy initializations
    91 public:  // lazy initializations
    87     HbListView* list();
    92     HbListView *list();
    88     HbTextItem* emptyLabel();
    93     HbTextItem *emptyLabel();
    89     HbGroupBox* groupBox();
    94     HbGroupBox *groupBox();
    90     HbSearchPanel* search();
    95     HbSearchPanel *search();
    91     QGraphicsLinearLayout* layout();
    96     QGraphicsLinearLayout *layout();
    92     HbDocumentLoader* document();
    97     HbDocumentLoader *document();
    93 
    98     
    94 private:
    99 private:
    95     CntExtensionManager&        mExtensionManager;
   100     CntExtensionManager&        mExtensionManager;
    96     CntAbstractViewManager*     mViewManager;
   101     CntAbstractViewManager*     mViewManager;
    97     MobCntModel*                mListModel;
   102     MobCntModel*                mListModel;
    98     HbView*                     mView;
   103     HbView*                     mView;
   101     HbGroupBox*                 mBanner;
   106     HbGroupBox*                 mBanner;
   102     HbSearchPanel*              mSearchPanel;
   107     HbSearchPanel*              mSearchPanel;
   103     HbDocumentLoader*           mLoader;
   108     HbDocumentLoader*           mLoader;
   104     QGraphicsLinearLayout*      mLayout;
   109     QGraphicsLinearLayout*      mLayout;
   105     HbStaticVkbHost*            mVirtualKeyboard;
   110     HbStaticVkbHost*            mVirtualKeyboard;
   106     HbAction*                   mSoftkey; // own
   111     HbAction*                   mSoftkey;
   107     CntActionMenuBuilder*       mMenuBuilder; // own
   112     CntActionMenuBuilder*       mMenuBuilder;
   108     
   113     HbAction*                   mImportSim;
   109     bool mIsDefault;
   114     HbAction*                   mNewContact;
   110     int mId;
   115     QContactLocalId             mHandledContactId;
       
   116     HbAction*                   mMultipleDeleter;
       
   117     CntFetchContacts*           mFetchView;
       
   118     bool                        mIsDefault;
       
   119     int                         mId;
       
   120     bool                        mMenuVisible;
   111     };
   121     };
   112 #endif /* CNTABSTRACTLISTVIEW_H_ */
   122 #endif /* CNTABSTRACTLISTVIEW_H_ */