organizer_plat/calendar_launcher_api/inc/CalenLauncher.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 46 ecd7b9840282
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
     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:  Calendar Launcher
       
    15 *
       
    16 */
       
    17 #include <qobject>
       
    18 #include <qdatetime.h>
       
    19 
       
    20 #ifdef CALENLAUNCHER_LIB
       
    21 #   define CALENLAUNCHER_EXPORT Q_DECL_EXPORT
       
    22 #else
       
    23 #   define CALENLAUNCHER_EXPORT Q_DECL_IMPORT
       
    24 #endif
       
    25 class CALENLAUNCHER_EXPORT CalenLauncher : public QObject
       
    26 {
       
    27 Q_OBJECT
       
    28 
       
    29 public:
       
    30 	enum CalenView{
       
    31 			MonthView = 0,
       
    32 			DayView
       
    33 		};
       
    34     CalenLauncher(QObject* parent = 0);
       
    35     ~CalenLauncher();
       
    36     
       
    37     void launchCalendarApp(CalenView view, QDateTime& dateTime, 
       
    38                            bool synchronousLaunch = true);
       
    39     
       
    40 signals:
       
    41 	void calendarLaunchFailed(int error);
       
    42 	
       
    43 public slots:
       
    44 	void handleError(int error);
       
    45 };
       
    46 
       
    47 // End of file	--Don't remove this.