calendarui/agendaeventviewer/inc/agendaeventviewer_p.h
branchRCL_3
changeset 65 12af337248b1
equal deleted inserted replaced
60:96907930389d 65:12af337248b1
       
     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: Header file for AgendaEventViewerPrivate class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef AGENDAEVENTVIEWERPRIVATE_H
       
    19 #define AGENDAEVENTVIEWERPRIVATE_H
       
    20 
       
    21 // System includes.
       
    22 #include <QObject>
       
    23 
       
    24 // User includes.
       
    25 #include "agendaeventviewer.h"
       
    26 
       
    27 // Forward declarations
       
    28 class QFile;
       
    29 class AgendaEntry;
       
    30 class AgendaUtil;
       
    31 class AgendaEventView;
       
    32 
       
    33 class AgendaEventViewerPrivate : public QObject
       
    34 {
       
    35 	Q_OBJECT
       
    36 	Q_DECLARE_PUBLIC(AgendaEventViewer)
       
    37 
       
    38 public:
       
    39 	explicit AgendaEventViewerPrivate(AgendaUtil *agendaUtil, QObject *parent);
       
    40 	virtual ~AgendaEventViewerPrivate();
       
    41 
       
    42 private:
       
    43 	void view(const ulong id, AgendaEventViewer::Actions action);
       
    44 	void view(const QFile &fileHandle, AgendaEventViewer::Actions action);
       
    45 	void view(AgendaEntry entry, AgendaEventViewer::Actions action);
       
    46 	
       
    47     /**
       
    48      * close the editor and save the entry
       
    49      * should be call if editor is open
       
    50      */
       
    51 	void saveAndCloseEditor();
       
    52     
       
    53 	/**
       
    54      * close agenda event view
       
    55      * should be call if agenda eevent view is open
       
    56      */
       
    57 	void closeAgendaEventView();
       
    58 
       
    59 private slots:
       
    60 	void viewingCompleted(const QDate date);
       
    61 	void editingStarted();
       
    62 	void editingCompleted();
       
    63 	void deletingStarted();
       
    64 	void deletingCompleted();
       
    65 	void viewCreationCompleted(int error);
       
    66 
       
    67 private:
       
    68 	AgendaEventViewer *q_ptr;
       
    69 	AgendaUtil *mAgendaUtil;
       
    70 	AgendaEventView *mAgendaEventView;
       
    71 
       
    72 	bool mViewerOwnsAgendaUtil;
       
    73 
       
    74 private:
       
    75 	friend class AgendaEventView;
       
    76 	ulong mId;
       
    77 	AgendaEventViewer::Actions mAction;
       
    78 	bool mShowEventViewById;
       
    79 	bool mShowEventViewByFileHandle;
       
    80 	QString mFileName;
       
    81 };
       
    82 
       
    83 #endif // AGENDAEVENTVIEWERPRIVATE_H
       
    84 
       
    85 // End of file