filemanager/src/filemanager/src/backuprestore/fmdeletebackupwidget.h
branchRCL_3
changeset 20 491b3ed49290
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
       
     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  * 
       
    15  * Description:
       
    16  *     The header file of the delete backup widget of file manager
       
    17  */
       
    18 
       
    19 #ifndef FMDELETEBACKUPWIDGET_H
       
    20 #define FMDELETEBACKUPWIDGET_H
       
    21 
       
    22 #include <hbwidget.h>
       
    23 
       
    24 class HbListView;
       
    25 class QStringListModel;
       
    26 class FmRestoreSettings;
       
    27 class FmBackupConfigLoader;
       
    28 class FmRestoreViewItem;
       
    29 
       
    30 class FmDeleteBackupWidget : public HbWidget
       
    31 {
       
    32      Q_OBJECT
       
    33 
       
    34 public:
       
    35 
       
    36     explicit FmDeleteBackupWidget( HbWidget *parent = 0  );
       
    37     ~FmDeleteBackupWidget();
       
    38     void refresh();
       
    39     QList<int> selectionIndexes();
       
    40     int backupDataCount();
       
    41 signals:
       
    42     void stateChanged(int state);
       
    43 private:
       
    44     void loadData();
       
    45     void init();
       
    46 
       
    47 private slots:
       
    48     void on_list_activated( const QModelIndex &index );
       
    49 
       
    50 
       
    51 private:
       
    52     HbListView *mListView;
       
    53     QStringListModel  *mModel;
       
    54 
       
    55     FmRestoreSettings *mRestoreSettings;
       
    56     FmBackupConfigLoader *mBackupConfigLoader;    
       
    57 };
       
    58 
       
    59 #endif