cpsecplugins/cpadvancedsecplugin/inc/cpmoduleview.h
branchRCL_3
changeset 22 03674e5abf46
parent 21 09b1ac925e3f
child 23 94da73d93b58
equal deleted inserted replaced
21:09b1ac925e3f 22:03674e5abf46
     1 /*
       
     2 * Copyright (c) 2010 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 
       
    18 #ifndef CPMODULEVIEW_H
       
    19 #define CPMODULEVIEW_H
       
    20 
       
    21 #include <cpbasesettingview.h>
       
    22 #include "cpsecmodview.h"
       
    23 
       
    24 class HbAbstractViewItem;
       
    25 class CpItemDataHelper;
       
    26 class CSecModUIModel;
       
    27 class CpSecModView;
       
    28 
       
    29 class CpModuleView : public CpBaseSettingView
       
    30 {
       
    31     Q_OBJECT
       
    32 public:
       
    33     explicit CpModuleView( 	CpSecModView::TSecModViews currentView, 
       
    34 							CSecModUIModel& secModUIModel,
       
    35 							QGraphicsItem *parent = 0 );
       
    36     virtual ~CpModuleView();
       
    37     
       
    38 private slots:
       
    39     void handleAccessView( const QModelIndex& modelIndex );
       
    40 	void handleAccessView();
       
    41 	void handleSigView();
       
    42 	void handleSigViewCommand();
       
    43 	void indicateLongPress(HbAbstractViewItem *item,QPointF coords);
       
    44    
       
    45 private:
       
    46     void showAccessView();
       
    47     void showSignatureView(TBool showBlockedNote);
       
    48 
       
    49 private:
       
    50     enum TSecModAccessCodeCommandIds
       
    51         {
       
    52         EIndexCodeLabel = 0,
       
    53         EIndexCodeRequest,
       
    54         EIndexCodeStatus 
       
    55         };
       
    56     
       
    57     enum TSecModSignatureCommandIds
       
    58         {
       
    59         ESecModUICmdOpen = 0,
       
    60         ESecModUICmdModuleInfo,
       
    61         ESecModUICmdDelKeyStore,
       
    62         ESecModUICmdChange,
       
    63         ESecModUICmdUnblock,
       
    64         ESecModUICmdClose,    
       
    65         ESecModUICmdAppTest    
       
    66         };
       
    67 
       
    68 private:
       
    69     CpSecModView::TSecModViews mCurrentView;
       
    70     CSecModUIModel& mSecModUIModel;
       
    71     TInt mPos;
       
    72     HbMenu* mContextMenu;
       
    73 };
       
    74 
       
    75 #endif /* CPMODULEVIEW_H */