calendarui/calenlauncher/inc/calenlauncher.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 14:14:56 +0300
changeset 50 579cc610882e
parent 18 c198609911f9
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* 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.