calendarui/agendaeventviewer/inc/agendaeventviewer_p.h
changeset 18 c198609911f9
child 23 fd30d51f876b
equal deleted inserted replaced
0:f979ecb2b13e 18:c198609911f9
       
     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 private slots:
       
    48 	void viewingCompleted(bool status = true);
       
    49 	void editingStarted();
       
    50 	void editingCompleted();
       
    51 	void deletingStarted();
       
    52 	void deletingCompleted();
       
    53 
       
    54 private:
       
    55 	AgendaEventViewer *q_ptr;
       
    56 	AgendaUtil *mAgendaUtil;
       
    57 	AgendaEventView *mAgendaEventView;
       
    58 
       
    59 	bool mViewerOwnsAgendaUtil;
       
    60 
       
    61 private:
       
    62 	friend class AgendaEventView;
       
    63 };
       
    64 
       
    65 #endif // AGENDAEVENTVIEWERPRIVATE_H
       
    66 
       
    67 // End of file