equal
deleted
inserted
replaced
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 AgendaView |
|
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. |
|