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