logsui/logsapp/inc/logsmatchesview.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:27:05 +0300
changeset 16 c5af8598d22c
parent 11 64a47b97e1e1
child 21 2f0af9ba7665
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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 LOGSMATCHESVIEW_H
#define LOGSMATCHESVIEW_H

#include "logsbaseview.h"

class HbListView;
class HbAction;
class HbPushButton;
class LogsComponentRepository;
class LogsAbstractViewManager;
class LogsMatchesModel;

/**
 * 
 */
class LogsMatchesView : public LogsBaseView
{
    Q_OBJECT
    friend class UT_LogsMatchesView;
    
public:
    explicit LogsMatchesView( LogsComponentRepository& repository,
                              LogsAbstractViewManager& viewManager );
    ~LogsMatchesView();

public: // From LogsBaseView
    
    virtual void activated(bool showDialer, QVariant args);
    virtual void deactivated();
    
protected slots: //from LogsBaseView

    virtual void handleBackSoftkey();
    virtual void dialpadEditorTextChanged();
    virtual void dialpadOpened();
    virtual void dialpadClosed();
    virtual void updateWidgetsSizeAndLayout();
    virtual void updateEmptyListWidgetsVisibility();
	
private slots:
	void toggleContactSearch();

private: //from LogsBaseView
    
    virtual void initView();
    virtual QAbstractItemModel* model() const;
    virtual HbListView* listView() const;
    
private:
    
    void initListWidget();
    void updateModel(LogsMatchesModel* model);
    void updateMenu();
    void updateAddContactButton();
    
private:
    
    HbListView* mListView;    //not owned
    LogsMatchesModel* mModel; //owned
    HbPushButton* mAddToContactsButton; // not owned
};

#endif // LOGSMATCHESVIEW_H