logsui/logsapp/inc/logsdetailsview.h
changeset 0 4a5361db8937
child 2 7119b73b84d6
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef LOGSDETAILSVIEW_H
       
    18 #define LOGSDETAILSVIEW_H
       
    19 
       
    20 #include "logsbaseview.h"
       
    21 
       
    22 class HbListView;
       
    23 class HbGroupBox;
       
    24 class HbAction;
       
    25 class LogsComponentRepository;
       
    26 class HbAction;
       
    27 class LogsAbstractViewManager;
       
    28 
       
    29 /**
       
    30  * 
       
    31  */
       
    32 class LogsDetailsView : public LogsBaseView
       
    33 {
       
    34     Q_OBJECT
       
    35     friend class UT_LogsDetailsView;
       
    36     
       
    37 public:
       
    38     explicit LogsDetailsView( LogsComponentRepository& repository,
       
    39                               LogsAbstractViewManager& viewManager );
       
    40     ~LogsDetailsView();
       
    41     
       
    42 public: // From LogsBaseView
       
    43     
       
    44     virtual void activated(bool showDialer, QVariant args);
       
    45     virtual void deactivated();
       
    46 
       
    47 public slots:
       
    48     
       
    49     void callKeyPressed();
       
    50     
       
    51 private slots:
       
    52     
       
    53     void initiateVoiceCall();
       
    54     void initiateVideoCall();
       
    55     void addToContacts();
       
    56     void openContact();
       
    57     void contactActionCompleted(bool modified);
       
    58     void deleteEvent();//overrides base class implementation
       
    59     void copyNumberToClipboard();
       
    60     
       
    61     //from LogsBaseView
       
    62     virtual void handleBackSoftkey();
       
    63     
       
    64 private: // from LogsBaseView
       
    65     
       
    66     virtual void initView();
       
    67     virtual QAbstractItemModel* model() const;
       
    68     virtual void updateWidgetsSizeAndLayout();
       
    69     
       
    70 private:
       
    71     
       
    72     void initListWidget();
       
    73     void updateMenu();
       
    74 
       
    75 private:
       
    76     
       
    77     HbGroupBox* mViewName; //not owned
       
    78     HbListView* mListView; //not owned
       
    79 };
       
    80 
       
    81 #endif // LOGSDETAILSVIEW_H