diff -r 0ba2181d7c28 -r 76a2435edfd4 phonebookui/pbkcommonui/inc/cntnamesview_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/pbkcommonui/inc/cntnamesview_p.h Fri Apr 16 14:53:18 2010 +0300 @@ -0,0 +1,108 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef CNTABSTRACTLISTVIEW_H_ +#define CNTABSTRACTLISTVIEW_H_ + +#include "cntnamesview.h" +#include "cntaction.h" +#include "cntactionmenubuilder.h" + +#include +#include +#include + +#include +#include + +class HbView; +class HbListView; +class HbGroupBox; +class HbTextItem; +class HbDocumentLoader; +class HbSearchPanel; +class HbStaticVkbHost; +class QGraphicsLinearLayout; + +class CntNamesViewPrivate : public QObject + { + Q_OBJECT + Q_DECLARE_PUBLIC(CntNamesView); + +public: + CntNamesViewPrivate(); + virtual ~CntNamesViewPrivate(); + +public slots: + void showBanner( const QString aText ); + void hideBanner(); + + void showFinder(); + void hideFinder(); + void setFilter(const QString &filterString); + + void handleKeypadOpen(); + void handleKeypadClose(); + + void createNewContact(); + void showPreviousView(); + void showCollectionView(); + void showContactView( QContact& aContact ); + void showContactView( const QModelIndex& ); + void showContactEditorView( QContact& aContact ); + void showContextMenu(HbAbstractViewItem* aItem, QPointF aPoint); + + void executeAction( QContact& aContact, QString aAction ); + void actionExecuted( CntAction* aAction ); + void deleteContact( QContact& aContact ); + void importSim(); + +public: + bool isFinderVisible(); + void activate( CntAbstractViewManager* aMgr, const CntViewParameters& aArgs ); + void deactivate(); + void scrollTo(const QContact &aContact); + +public: + CntNamesView* q_ptr; + +public: // lazy initializations + HbListView* list(); + HbTextItem* emptyLabel(); + HbGroupBox* groupBox(); + HbSearchPanel* search(); + QGraphicsLinearLayout* layout(); + HbDocumentLoader* document(); + +private: + CntAbstractViewManager* mViewManager; + MobCntModel* mListModel; + HbView* mView; + HbListView* mListView; + HbTextItem* mEmptyList; + HbGroupBox* mBanner; + HbSearchPanel* mSearchPanel; + HbDocumentLoader* mLoader; + QGraphicsLinearLayout* mLayout; + HbStaticVkbHost* mVirtualKeyboard; + HbAction* mSoftkey; // own + CntActionMenuBuilder* mMenuBuilder; // own + + bool mIsDefault; + CntViewParameters::ViewId mId; + }; +#endif /* CNTABSTRACTLISTVIEW_H_ */