logsui/logsapp/inc/logsmatchesview.h
changeset 0 4a5361db8937
child 2 7119b73b84d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logsui/logsapp/inc/logsmatchesview.h	Tue May 04 12:39:37 2010 +0300
@@ -0,0 +1,84 @@
+/*
+* 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"
+#include "logscall.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();
+ 
+public slots:
+    
+    void callKeyPressed();
+    void saveNumberInDialpadToContacts();
+    void videoCallToCurrentNum();
+    void sendMessageToCurrentNum();
+    
+protected slots: //from LogsBaseView
+
+    virtual void handleBackSoftkey();
+    virtual void dialpadEditorTextChanged();
+    virtual void dialpadOpened();
+    virtual void dialpadClosed();
+    virtual void updateWidgetsSizeAndLayout();
+    virtual void updateEmptyListWidgetsVisibility();
+
+private: //from LogsBaseView
+    
+    virtual void initView();
+    virtual QAbstractItemModel* model() const;
+    
+private:
+    
+    void initListWidget();
+    void updateModel(LogsMatchesModel* model);
+    void updateMenu();
+    void callToCurrentNum( LogsCall::CallType callType );
+    void updateAddContactButton();
+    
+private:
+    
+    HbListView* mListView;    //not owned
+    LogsMatchesModel* mModel; //owned
+    HbPushButton* mAddToContactsButton; // not owned
+};
+
+#endif // LOGSMATCHESVIEW_H