filemanager/src/filemanager/src/backuprestore/fmbackupwidget.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 back up widget of file manager
       
    17  */
       
    18 
       
    19 #ifndef FMBACKUPWIDGET_H
       
    20 #define FMBACKUPWIDGET_H
       
    21 
       
    22 #include <hbwidget.h>
       
    23 
       
    24 class FmBackupSettings;
       
    25 
       
    26 class HbDataForm;
       
    27 class HbDataFormModel;
       
    28 class HbDataFormModelItem;
       
    29 class FmBackupConfigLoader;
       
    30 
       
    31 class FmBackupWidget : public HbWidget
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 public:
       
    36 	FmBackupWidget( QGraphicsItem *parent = 0  );
       
    37 	~FmBackupWidget();
       
    38 	void updateBackupDate();
       
    39 
       
    40 signals:
       
    41     void doModelRefresh();
       
    42     void changeContents();
       
    43     void changeScheduling();
       
    44     void changeWeekday();
       
    45     void changeTime();
       
    46     void changeTargetDrive();
       
    47 
       
    48 public slots:
       
    49     // refresh whole model immediately.
       
    50     void refreshModel();
       
    51     
       
    52 private slots:
       
    53 	void on_list_activated( const QModelIndex &index );
       
    54     
       
    55     void on_changeContents();
       
    56     void on_changeScheduling();
       
    57     void on_changeWeekday();
       
    58     void on_changeTime();
       
    59     void on_changeTargetDrive();
       
    60 
       
    61 private:
       
    62 
       
    63     void initModel();
       
    64     void init();
       
    65     void expandAllGroup();
       
    66 
       
    67 private:
       
    68 
       
    69     HbDataForm *mDataForm;
       
    70     HbDataFormModel *mModel;
       
    71     HbDataFormModelItem *mContentsGroup;
       
    72     HbDataFormModelItem *mSchedulingGroup;
       
    73 
       
    74     HbDataFormModelItem *mContentsItem;
       
    75     HbDataFormModelItem *mTargetItem;
       
    76     HbDataFormModelItem *mSchedulingItem;
       
    77     HbDataFormModelItem *mWeekdayItem;
       
    78     HbDataFormModelItem *mTimeItem;
       
    79     HbDataFormModelItem *mLastBackupDateItem;
       
    80 	FmBackupSettings        *mBackupSettings;
       
    81 	FmBackupConfigLoader    *mBackupConfigLoader;
       
    82 };
       
    83 
       
    84 #endif // FMBACKUPWIDGET_H