filemanager/src/filemanager/src/fmviewbase.h
changeset 14 1957042d8c7e
child 40 4167eb56f30d
equal deleted inserted replaced
1:d1daf54a55b5 14:1957042d8c7e
       
     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 *     The source file of filemanager view base
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef FMVIEWBASE_H
       
    20 #define FMVIEWBASE_H
       
    21 
       
    22 #include <HbView>
       
    23 
       
    24 class HbAction;
       
    25 
       
    26 class FmViewBase : public HbView
       
    27 {
       
    28 Q_OBJECT
       
    29 public:
       
    30     enum TViewType
       
    31     {
       
    32         ENone = 0,
       
    33         EDriverView,
       
    34         EFileView,
       
    35         EFindView,
       
    36         EBackupView,
       
    37         ERestoreView,
       
    38         ESplitView,
       
    39         EDeleteBackupView
       
    40     };
       
    41 
       
    42 
       
    43     explicit FmViewBase( TViewType viewType );
       
    44     virtual ~FmViewBase(void);
       
    45     
       
    46     TViewType viewType()
       
    47     {
       
    48         return mViewType;
       
    49     }
       
    50      
       
    51 private slots:
       
    52     void on_backAction_triggered();
       
    53 	
       
    54 signals:
       
    55     void tryToExit();   
       
    56     
       
    57 private:
       
    58     void init();
       
    59 private:
       
    60     TViewType mViewType;
       
    61     
       
    62     HbAction *mBackAction;
       
    63 };
       
    64 
       
    65 #endif
       
    66