phonebookui/pbkcommonui/inc/cntnamesview_p.h
changeset 46 efe85016a067
parent 40 b46a585f6909
child 47 7cbcb2896f0e
equal deleted inserted replaced
40:b46a585f6909 46:efe85016a067
    30 #include <cntlistmodel.h>
    30 #include <cntlistmodel.h>
    31 
    31 
    32 class HbView;
    32 class HbView;
    33 class HbListView;
    33 class HbListView;
    34 class HbGroupBox;
    34 class HbGroupBox;
    35 class HbTextItem;
    35 class HbLabel;
    36 class HbDocumentLoader;
    36 class HbDocumentLoader;
    37 class HbSearchPanel;
    37 class HbSearchPanel;
    38 class HbStaticVkbHost;
    38 class HbStaticVkbHost;
    39 class QGraphicsLinearLayout;
       
    40 class CntExtensionManager;
    39 class CntExtensionManager;
    41 class CntFetchContacts;
    40 class CntFetchContacts;
    42 
    41 
    43 class CntNamesViewPrivate : public QObject
    42 class CntNamesViewPrivate : public QObject
    44 {
    43 {
    47     
    46     
    48 public:
    47 public:
    49     CntNamesViewPrivate(CntExtensionManager &extensionManager);
    48     CntNamesViewPrivate(CntExtensionManager &extensionManager);
    50     virtual ~CntNamesViewPrivate();
    49     virtual ~CntNamesViewPrivate();
    51 
    50 
    52 public slots:
    51 public slots:    
    53     void showBanner( const QString aText );
       
    54     void hideBanner();
       
    55     
       
    56     void showFinder();
    52     void showFinder();
    57     void hideFinder();
    53     void hideFinder();
    58     void setFilter(const QString &filterString);
    54     void setFilter(const QString &filterString);
    59     
    55     
    60     void handleKeypadOpen();
    56     void handleKeypadOpen();
    80     void actionExecuted( CntActionLauncher* aAction );
    76     void actionExecuted( CntActionLauncher* aAction );
    81     void handleDeleteContact( HbAction* aAction );
    77     void handleDeleteContact( HbAction* aAction );
    82     void importSim();
    78     void importSim();
    83     
    79     
    84     void handleContactAddition(const QList<QContactLocalId> & aAddedList);
    80     void handleContactAddition(const QList<QContactLocalId> & aAddedList);
    85     void handleContactChanged(const QList<QContactLocalId> & aChangedList);
       
    86     void handleContactRemoval(const QList<QContactLocalId> & aRemovedList);
    81     void handleContactRemoval(const QList<QContactLocalId> & aRemovedList);
    87     void handleSelfContactIdChange(const QContactLocalId & aOldId, const QContactLocalId & aNewId);
    82     void handleSelfContactIdChange(const QContactLocalId & aOldId, const QContactLocalId & aNewId);
    88     
    83     
    89 public:
    84 public:
    90     bool isFinderVisible();
    85     bool isFinderVisible();
    91     void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs );
    86     void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs );
    92     void deactivate();
    87     void deactivate();
    93     
    88     
    94 private:
    89 private:
    95     void disableDeleteAction();
    90     void disableDeleteAction();
       
    91     void focusLineEdit();
       
    92     void setFocusedContact();
       
    93     void setScrollPosition();
    96     
    94     
    97 public:
    95 public:
    98     CntNamesView *q_ptr;
    96     CntNamesView *q_ptr;
    99     
    97     
   100 public:  // lazy initializations
    98 public:  // lazy initializations
   101     HbListView *list();
    99     HbListView *list();
   102     HbTextItem *emptyLabel();
       
   103     HbGroupBox *groupBox();
       
   104     HbSearchPanel *search();
       
   105     QGraphicsLinearLayout *layout();
       
   106     HbDocumentLoader *document();
   100     HbDocumentLoader *document();
   107     
   101     
   108 private:
   102 private:
   109     CntExtensionManager&        mExtensionManager;
   103     CntExtensionManager&        mExtensionManager;
   110     CntAbstractViewManager*     mViewManager;
   104     CntAbstractViewManager*     mViewManager;
   111     CntListModel*               mListModel;
   105     CntListModel*               mListModel;
   112     HbView*                     mView;
   106     HbView*                     mView;
   113     HbListView*                 mListView;
   107     HbListView*                 mListView;
   114     HbTextItem*                 mEmptyList;
   108     HbLabel*                    mEmptyList;
   115     HbGroupBox*                 mBanner;
   109     HbGroupBox*                 mBanner;
   116     HbSearchPanel*              mSearchPanel;
   110     HbSearchPanel*              mSearchPanel;
   117     HbDocumentLoader*           mLoader;
   111     HbDocumentLoader*           mLoader;
   118     QGraphicsLinearLayout*      mLayout;
       
   119     HbStaticVkbHost*            mVirtualKeyboard;
   112     HbStaticVkbHost*            mVirtualKeyboard;
   120     HbAction*                   mSoftkey;
   113     HbAction*                   mSoftkey;
       
   114     HbAction*                   mNamesAction;
   121     CntActionMenuBuilder*       mMenuBuilder;
   115     CntActionMenuBuilder*       mMenuBuilder;
   122     HbAction*                   mImportSim;
   116     HbAction*                   mImportSim;
   123     HbAction*                   mNewContact;
   117     HbAction*                   mNewContact;
   124     QContactLocalId             mHandledContactId;
   118     QContactLocalId             mHandledContactId;
   125     HbAction*                   mMultipleDeleter;
   119     HbAction*                   mMultipleDeleter;
   126     CntFetchContacts*           mFetchView;
   120     CntFetchContacts*           mFetchView;
   127     bool                        mIsDefault;
   121     bool                        mIsDefault;
   128     int                         mId;
   122     int                         mId;
   129     QActionGroup*               mActionGroup;
   123     QActionGroup*               mActionGroup;
       
   124     QContactLocalId             mFocusedContact;
   130 };
   125 };
   131 
   126 
   132 #endif /* CNTABSTRACTLISTVIEW_H_ */
   127 #endif /* CNTABSTRACTLISTVIEW_H_ */