clock/clockmw/clocksettingsutility/inc/settingsutility.h
branchRCL_3
changeset 65 12af337248b1
equal deleted inserted replaced
60:96907930389d 65:12af337248b1
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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:   Definition file for the class SettingsUtility
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SETTINGSUTILITY_H
       
    21 #define SETTINGSUTILITY_H
       
    22 
       
    23 #include <QObject>
       
    24 #include <QStringList>
       
    25 
       
    26 #include "clockdatatypes.h"
       
    27 
       
    28 #ifdef  SETTINGSUTILITY_LIBRARY
       
    29 #define SETTINGSUTILITY_EXPORT Q_DECL_EXPORT
       
    30 #else
       
    31 #define SETTINGSUTILITY_EXPORT Q_DECL_IMPORT
       
    32 #endif
       
    33 
       
    34 class TimezoneClient;
       
    35 
       
    36 class SETTINGSUTILITY_EXPORT SettingsUtility : public QObject
       
    37 {
       
    38 	Q_OBJECT
       
    39 
       
    40 public:
       
    41 	SettingsUtility(QObject *parent = 0);
       
    42 	~SettingsUtility();
       
    43 
       
    44 public:
       
    45 //	void setTime(const QString &time);
       
    46 	QString time();
       
    47 
       
    48 /*	void setTimeZone(const QString &timezone);
       
    49 	QString timeZone();*/
       
    50 
       
    51 	void setTimeFormat(const QString &format);
       
    52 	int timeFormat(QStringList &format);
       
    53 
       
    54 	void setClockType(const QString &type);
       
    55 	int clockType(QStringList &list);
       
    56 
       
    57 	void setTimeSeparator(const QString &separator);
       
    58 	int timeSeparator(QStringList &list);
       
    59 
       
    60 /*	void setAutoUpdate(const QString &value);
       
    61 	int autoUpdate(QStringList &list);*/
       
    62 
       
    63 //	void setDate(const QString &date);
       
    64 	QString date();
       
    65 
       
    66 	void setDateFormat(const QString &format);
       
    67 	int dateFormat(QStringList &format);
       
    68 
       
    69 	void setDateSeparator(const QString &format);
       
    70 	int dateSeparator(QStringList &seprator);
       
    71 
       
    72 	void setWorkdays(const QString &workdays);
       
    73 	int workdays(QStringList &workdaysList);
       
    74 
       
    75 	QString timeFormatString();
       
    76 	QString dateFormatString();
       
    77 
       
    78 	void setSnoozeTime(int index);
       
    79 	int snoozeTime(QStringList &snoozeValueList);
       
    80 
       
    81 	void setStartOfWeek(int index);
       
    82 
       
    83 signals:
       
    84 	void settingsChanged(SettingsItemChanged item, const QString data);
       
    85 
       
    86 private:
       
    87 	QStringList mTimeSeparatorList;
       
    88 	QStringList mClockTypeList;
       
    89 	QStringList mTimeFormatList;
       
    90 	QStringList mDateFormatList;
       
    91 	QStringList mDateSeparatorList;
       
    92 	QStringList mAutoUpdateValueList;
       
    93 	QStringList mSnoozeValueList;
       
    94 };
       
    95 
       
    96 #endif // SETTINGSUTILITY_H
       
    97 
       
    98 // End of file