calendarui/calenplugins/agendaeventviewerplugin/inc/agendaeventviewerplugin.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 AgendaEventViewer plugin
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef AGENDAEVENTVIEWERPLUGIN_H
       
    19 #define AGENDAEVENTVIEWERPLUGIN_H
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 #include <EventViewerPluginInterface>
       
    24 #include "agendaeventviewer.h"
       
    25 
       
    26 
       
    27 // Forward declarations
       
    28 class QFile;
       
    29 class QString;
       
    30 class AgendaUtil;
       
    31 class AgendaEntry;
       
    32 
       
    33 
       
    34 class AgendaEventViewerPlugin: public EventViewerPluginInterface
       
    35 {
       
    36 	Q_OBJECT
       
    37 	Q_INTERFACES(EventViewerPluginInterface)
       
    38 	
       
    39 public:
       
    40 	AgendaEventViewerPlugin(QObject *parent = 0);
       
    41 	~AgendaEventViewerPlugin();
       
    42 	
       
    43 public:
       
    44 	
       
    45 	void viewEvent(const ulong id, Actions action, AgendaUtil *agendaUtil = 0);
       
    46 	void viewEvent(const QFile &fileHandle, 
       
    47 	               Actions action, AgendaUtil 
       
    48 	               *agendaUtil = 0);
       
    49 	void viewEvent(AgendaEntry entry, 
       
    50 	               Actions action, 
       
    51 	               AgendaUtil *agendaUtil = 0);
       
    52 	
       
    53 private:
       
    54 	
       
    55 	void CreateAgendaEventViewer(AgendaUtil *agendaUtil);
       
    56 	AgendaEventViewer::Actions CreateAgendaEventViewerAction(Actions action);
       
    57 	
       
    58 private slots:
       
    59 
       
    60 	void handleViewingCompleted(bool status);
       
    61 	void handleEditingStarted();
       
    62 	void handleEditingCompleted();
       
    63 	void handleDeletingStarted();
       
    64 	void handleDeletingCompleted();
       
    65 
       
    66 private:
       
    67 
       
    68 	AgendaEventViewer *mEventViewer;
       
    69 };
       
    70 
       
    71 #endif // AGENDAEVENTVIEWERPLUGIN_H
       
    72 
       
    73 // End of file