author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /libkcal/dndfactory_dummy.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | libkcal/dndfactory_dummy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libkcal/dndfactory_dummy.h b/libkcal/dndfactory_dummy.h index 44cc114..3ab6adf 100644 --- a/libkcal/dndfactory_dummy.h +++ b/libkcal/dndfactory_dummy.h | |||
@@ -1,65 +1,67 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 1998 Preston Brown | 3 | Copyright (c) 1998 Preston Brown |
4 | Copyright (c) 2001,2002 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2001,2002 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or |
7 | modify it under the terms of the GNU Library General Public | 7 | modify it under the terms of the GNU Library General Public |
8 | License as published by the Free Software Foundation; either | 8 | License as published by the Free Software Foundation; either |
9 | version 2 of the License, or (at your option) any later version. | 9 | version 2 of the License, or (at your option) any later version. |
10 | 10 | ||
11 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | Library General Public License for more details. | 14 | Library General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU Library General Public License | 16 | You should have received a copy of the GNU Library General Public License |
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to |
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | Boston, MA 02111-1307, USA. | 19 | Boston, MA 02111-1307, USA. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | // $Id$ | 22 | // $Id$ |
23 | 23 | ||
24 | #ifndef KCAL_DNDFACTORY_H | 24 | #ifndef KCAL_DNDFACTORY_H |
25 | #define KCAL_DNDFACTORY_H | 25 | #define KCAL_DNDFACTORY_H |
26 | 26 | ||
27 | #include "vcalformat.h" | 27 | #include "vcalformat.h" |
28 | //Added by qt3to4: | ||
29 | #include <QDropEvent> | ||
28 | 30 | ||
29 | class QDropEvent; | 31 | class QDropEvent; |
30 | 32 | ||
31 | namespace KCal { | 33 | namespace KCal { |
32 | 34 | ||
33 | /** | 35 | /** |
34 | This class implements functions to create Drag and Drop objects used for | 36 | This class implements functions to create Drag and Drop objects used for |
35 | Drag-and-Drop and Copy-and-Paste. | 37 | Drag-and-Drop and Copy-and-Paste. |
36 | 38 | ||
37 | @short vCalendar Drag-and-Drop object factory. | 39 | @short vCalendar Drag-and-Drop object factory. |
38 | */ | 40 | */ |
39 | class DndFactory { | 41 | class DndFactory { |
40 | public: | 42 | public: |
41 | DndFactory( Calendar * ) {} | 43 | DndFactory( Calendar * ) {} |
42 | 44 | ||
43 | /** create an object to be used with the Xdnd Drag And Drop protocol. */ | 45 | /** create an object to be used with the Xdnd Drag And Drop protocol. */ |
44 | ICalDrag *createDrag(Event *, QWidget *) { return 0; } | 46 | ICalDrag *createDrag(Event *, QWidget *) { return 0; } |
45 | /** create an object to be used with the Xdnd Drag And Drop protocol. */ | 47 | /** create an object to be used with the Xdnd Drag And Drop protocol. */ |
46 | ICalDrag *createDragTodo(Todo *, QWidget *) { return 0; } | 48 | ICalDrag *createDragTodo(Todo *, QWidget *) { return 0; } |
47 | /** Create Todo object from drop event */ | 49 | /** Create Todo object from drop event */ |
48 | Todo *createDropTodo(QDropEvent *) { return 0; } | 50 | Todo *createDropTodo(QDropEvent *) { return 0; } |
49 | /** Create Event object from drop event */ | 51 | /** Create Event object from drop event */ |
50 | Event *createDrop(QDropEvent *) { return 0; } | 52 | Event *createDrop(QDropEvent *) { return 0; } |
51 | 53 | ||
52 | /** cut event to clipboard */ | 54 | /** cut event to clipboard */ |
53 | void cutEvent(Event *) {} | 55 | void cutEvent(Event *) {} |
54 | /** cut, copy, and paste operations follow. */ | 56 | /** cut, copy, and paste operations follow. */ |
55 | bool copyEvent(Event *) { return false; } | 57 | bool copyEvent(Event *) { return false; } |
56 | /** pastes the event and returns a pointer to the new event pasted. */ | 58 | /** pastes the event and returns a pointer to the new event pasted. */ |
57 | Event *pasteEvent(const QDate &, const QTime *newTime = 0) { | 59 | Event *pasteEvent(const QDate &, const QTime *newTime = 0) { |
58 | Q_UNUSED( newTime ); | 60 | Q_UNUSED( newTime ); |
59 | return 0; | 61 | return 0; |
60 | } | 62 | } |
61 | }; | 63 | }; |
62 | 64 | ||
63 | } | 65 | } |
64 | 66 | ||
65 | #endif | 67 | #endif |