organizer_plat/calendar_launcher_api/inc/calenlauncher.h
author hgs
Mon, 09 Aug 2010 18:30:52 +0530
changeset 57 bb2d3e476f29
parent 45 b6db4fd4947b
child 75 7ac58b2aae6f
permissions -rw-r--r--
201031

/*
* 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:  Calendar Launcher
*
*/
#include <QObject>
#include <qdatetime.h>

#ifdef CALENLAUNCHER_LIB
#   define CALENLAUNCHER_EXPORT Q_DECL_EXPORT
#else
#   define CALENLAUNCHER_EXPORT Q_DECL_IMPORT
#endif
class CALENLAUNCHER_EXPORT CalenLauncher : public QObject
{
Q_OBJECT

public:
	enum CalenView{
			MonthView = 0,
			AgendaView
		};
    CalenLauncher(QObject* parent = 0);
    ~CalenLauncher();
    
    void launchCalendarApp(CalenView view, QDateTime& dateTime, 
                           bool synchronousLaunch = true);
    
signals:
	void calendarLaunchFailed(int error);
	
public slots:
	void handleError(int error);
};

// End of file	--Don't remove this.