calendarui/agendaeventviewer/inc/agendaeventviewer_p.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:30:32 +0300
changeset 23 fd30d51f876b
parent 18 c198609911f9
child 45 b6db4fd4947b
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2010 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: Header file for AgendaEventViewerPrivate class
*
*/

#ifndef AGENDAEVENTVIEWERPRIVATE_H
#define AGENDAEVENTVIEWERPRIVATE_H

// System includes.
#include <QObject>

// User includes.
#include "agendaeventviewer.h"

// Forward declarations
class QFile;
class AgendaEntry;
class AgendaUtil;
class AgendaEventView;

class AgendaEventViewerPrivate : public QObject
{
	Q_OBJECT
	Q_DECLARE_PUBLIC(AgendaEventViewer)

public:
	explicit AgendaEventViewerPrivate(AgendaUtil *agendaUtil, QObject *parent);
	virtual ~AgendaEventViewerPrivate();

private:
	void view(const ulong id, AgendaEventViewer::Actions action);
	void view(const QFile &fileHandle, AgendaEventViewer::Actions action);
	void view(AgendaEntry entry, AgendaEventViewer::Actions action);

private slots:
	void viewingCompleted(const QDate date);
	void editingStarted();
	void editingCompleted();
	void deletingStarted();
	void deletingCompleted();

private:
	AgendaEventViewer *q_ptr;
	AgendaUtil *mAgendaUtil;
	AgendaEventView *mAgendaEventView;

	bool mViewerOwnsAgendaUtil;

private:
	friend class AgendaEventView;
};

#endif // AGENDAEVENTVIEWERPRIVATE_H

// End of file