calendarui/settings/inc/calensettings.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:57:40 +0300
changeset 18 c198609911f9
child 23 fd30d51f876b
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:
 *
 */

#ifndef CALENSETTINGS_H
#define CALENSETTINGS_H

#include <QObject>

class QPersistentModelIndex;
class QModelIndex;
class HbDataForm;
class HbDataFormModel;
class HbDataFormModelItem;
class HbComboBox;
class HbPushButton;
class HbAbstractButton;
class HbLineEdit;
class XQSettingsManager;
class XQSettingsKey;

#ifdef  CALENSETTINGS_DLL
#define CALENSETTINGS_EXPORT Q_DECL_EXPORT
#else
#define CALENSETTINGS_EXPORT Q_DECL_IMPORT
#endif

class CALENSETTINGS_EXPORT CalenSettings : public QObject
{
	Q_OBJECT

public:
    CalenSettings(HbDataForm *form, QObject *parent = 0);
    ~CalenSettings();

    void createModel();
    void populateSettingList();

public slots:
    void handleAlarmSnoozeTimeChange(int index);
    void handleWeekNumberChange();

private:
	HbDataForm *mSettingsForm;
	HbDataFormModel *mSettingsModel;
	HbDataFormModelItem *mAlarmSnoozeTimeItem;
	HbDataFormModelItem* mShowWeekNumberItem;
		
	XQSettingsManager *mSettingsManager;
	XQSettingsKey *mAlarmSnoozeCenrepKey;
	XQSettingsKey *mWeekNumberCenrepKey;
	uint mAlarmSnoozeTime;
	uint mShowWeekNumber;
	
};

#endif // CALENSETTINGS_H

// End of file