clock/ftudatetimewizard/inc/ftudatetimeview.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 46 ecd7b9840282
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
     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: The view class for the FTU wizard plugin
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef FTUDATETIMEVIEW_H
       
    19 #define FTUDATETIMEVIEW_H
       
    20 
       
    21 // System includes
       
    22 #include <hbwidget.h>
       
    23 #include <hbview.h>
       
    24 #include <hbdialog.h>
       
    25 #include <qdatetime.h>
       
    26 #include "clockcityselectionlist.h"
       
    27 
       
    28 // Forward declarations.
       
    29 class HbDataForm;
       
    30 class HbDataFormModel;
       
    31 class HbDataFormModelItem;
       
    32 class HbDateTimePicker;
       
    33 class HbPushButton;
       
    34 class SettingsUtility;
       
    35 class QDate;
       
    36 class TimezoneClient;
       
    37 
       
    38 class FtuDateTimeView : public HbView
       
    39 {
       
    40 	Q_OBJECT
       
    41 
       
    42 public:
       
    43 	FtuDateTimeView();
       
    44 	~FtuDateTimeView();
       
    45 	void constructView();
       
    46 	QDate getWizardCompletedDate();
       
    47 	void setAutomaticTimeUpdateOff(bool value);
       
    48 
       
    49 public slots:
       
    50 	void populateDatePicker();
       
    51 	void populateTimePicker();
       
    52 	void setAutoTimeupDate();
       
    53 	void populateCitySelectionList();
       
    54 
       
    55 private slots:
       
    56 	void updateDate();
       
    57 	void updateTime();
       
    58 	void HandleLocationChange(LocationInfo);
       
    59 
       
    60 private:
       
    61 	void createMainLayout();
       
    62 	void setItemDisplayed();
       
    63 	void populateDateTimeGroup();
       
    64 	void populatePlaceGroup();
       
    65 	void wizardEditedDate(const QDate &date);
       
    66 	
       
    67 	HbDataForm* mDateTimePlaceForm;
       
    68 	HbDataFormModel* mDateTimePlaceModel;
       
    69 	
       
    70 	HbDataFormModelItem *mDateItem;
       
    71 	HbDataFormModelItem *mTimeItem;
       
    72 	HbDataFormModelItem *mAutoTimeUpdateItem;
       
    73 	HbDataFormModelItem *mPlaceGroup;
       
    74 	HbDataFormModelItem *mCountryItem;
       
    75 	HbDataFormModelItem *mCityItem;
       
    76 	
       
    77 	HbDateTimePicker* mDatePicker;
       
    78 	HbDateTimePicker* mTimePicker;
       
    79 	HbDialog* mDatetimepopup;
       
    80 	SettingsUtility *mSettingsUtility;
       
    81 	
       
    82 	TimezoneClient *mTimeZoneClient;
       
    83 	ClockCitySelectionList* mCitySelectionList;
       
    84 	bool mTimeAutoUpdate;
       
    85 };
       
    86 
       
    87 #endif // FTUDATETIMEVIEW_H
       
    88 
       
    89 // End of file  --Don't remove this.