calendarui/caleneditor/inc/caleneditorreminderfield.h
changeset 23 fd30d51f876b
child 26 a949c2543c15
equal deleted inserted replaced
18:c198609911f9 23:fd30d51f876b
       
     1 /*
       
     2 * Copyright (c) 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:
       
    15 * The header file for CalenEditorReminderField class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CALENEDITORREMINDERFIELD_H
       
    20 #define CALENEDITORREMINDERFIELD_H
       
    21 
       
    22 // System Includes
       
    23 #include <QObject>
       
    24 #include <qglobal.h>
       
    25 
       
    26 // User Includes
       
    27 #include "caleneditor_p.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class HbDataFormModelItem;
       
    31 class HbDataForm;
       
    32 class HbDataFormModelItem;
       
    33 class CalenEditorDataHandler;
       
    34 
       
    35 class CalenEditorReminderField : public QObject
       
    36 {
       
    37 	Q_OBJECT
       
    38 	
       
    39 public:
       
    40 	CalenEditorReminderField(CalenEditorPrivate* calenEditor,
       
    41 	                         HbDataForm* form, HbDataFormModel* model,
       
    42 	                         QObject *parent = NULL);
       
    43 	virtual ~CalenEditorReminderField();
       
    44 
       
    45 public:
       
    46 	void addItemToModel();
       
    47 	void removeItemFromModel();
       
    48 	void populateReminderItem(bool newEntry);
       
    49 	QModelIndex modelIndex();
       
    50 	
       
    51 private slots:
       
    52 	void handleReminderIndexChanged(int index);
       
    53 	
       
    54 private:
       
    55 	CalenEditorPrivate* mCalenEditor;
       
    56 	HbDataForm* mEditorForm;
       
    57 	HbDataFormModel* mCalenEditorModel;
       
    58 	HbDataFormModelItem* mReminderItem;
       
    59 	QHash<int, int> mReminderHash;
       
    60 };
       
    61 
       
    62 #endif // CALENEDITORREMINDERFIELD_H
       
    63 
       
    64 // End of file	--Don't remove this.