Commit bd284c1d4fe51b45a6f7e48cac768fe5bcd192b7
- Diff rendering mode:
- inline
- side by side
qt-maemo-extra/debian/changelog
(12 / 0)
|   | |||
| 1 | qmaemo-ext-libs (0.1-2-maemo0) unstable; urgency=low | ||
| 2 | |||
| 3 | * Fixed bug preventing use of notifications library | ||
| 4 | |||
| 5 | -- Timo Härkönen <timop.harkonen@gmail.com> Wed, 21 Oct 2009 21:36:00 +0300 | ||
| 6 | |||
| 7 | qmaemo-ext-libs (0.1-1-maemo1) unstable; urgency=low | ||
| 8 | |||
| 9 | * Removed redundant dependencies | ||
| 10 | |||
| 11 | -- Timo Härkönen <timop.harkonen@gmail.com> Wed, 21 Oct 2009 20:17:00 +0300 | ||
| 12 | |||
| 1 | 13 | qmaemo-ext-libs (0.1-1-maemo0) unstable; urgency=low | |
| 2 | 14 | ||
| 3 | 15 | * Initial release |
|   | |||
| 21 | 21 | ||
| 22 | 22 | Package: qhildon-notifications | |
| 23 | 23 | Architecture: any | |
| 24 | Depends: libqt4-core, libqt4-gui, libqt4-dbus, hildon-1 | ||
| 24 | Depends: libqt4-core, libqt4-gui, libqt4-dbus | ||
| 25 | 25 | Description: Extensions to the Qt4 libraries for Maemo 5 | |
| 26 | 26 | This package contains capabilities to display | |
| 27 | 27 | system nofifications, etc. |
|   | |||
| 28 | 28 | createMenu(); | |
| 29 | 29 | ||
| 30 | 30 | setCentralWidget(button); | |
| 31 | |||
| 32 | notification = new Maemo::QNotifications(this); | ||
| 33 | notification->showSystemNote("This is a system note."); | ||
| 31 | 34 | } | |
| 32 | 35 | ||
| 33 | 36 | void MainWindow::flip() |
|   | |||
| 10 | 10 | ||
| 11 | 11 | #include <QMainWindow> | |
| 12 | 12 | ||
| 13 | #include "../../widgetcapabilities/qorientationcapability.h" | ||
| 13 | #include <qmaemo-ext/widget/qorientationcapability.h> | ||
| 14 | #include <qmaemo-ext/notifications/qnotification.h> | ||
| 14 | 15 | ||
| 15 | 16 | class QPushButton; | |
| 16 | 17 | class QMenu; | |
| … | … | ||
| 37 | 37 | QMenu *menu; | |
| 38 | 38 | QAction *quitAction; | |
| 39 | 39 | QAction *orientationChangeModeAction; | |
| 40 | |||
| 41 | |||
| 40 | Maemo::QNotifications *notification; | ||
| 42 | 41 | }; | |
| 43 | 42 | #endif |
|   | |||
| 7 | 7 | HEADERS += mainwindow.h | |
| 8 | 8 | SOURCES += main.cpp mainwindow.cpp | |
| 9 | 9 | ||
| 10 | LIBS += -lQHildon-WidgetCapabilities | ||
| 10 | LIBS += -lQHildon-WidgetCapabilities -lQHildon-Notifications |
|   | |||
| 2 | 2 | #define QHILDONNOTIFICATIONS_GLOBAL_H | |
| 3 | 3 | ||
| 4 | 4 | #if defined(QHILDONNOTIFICATIONS_LIBRARY) | |
| 5 | # define QHILDONNOFICATIONS_SHARED_EXPORT Q_DECL_EXPORT | ||
| 5 | # define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_EXPORT | ||
| 6 | 6 | #else | |
| 7 | 7 | # define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_IMPORT | |
| 8 | 8 | #endif |
|   | |||
| 4 | 4 | #include <QtCore/qglobal.h> | |
| 5 | 5 | ||
| 6 | 6 | #if defined(QHILDONNOTIFICATIONS_LIBRARY) | |
| 7 | # define QHILDONNOFICATIONS_SHARED_EXPORT Q_DECL_EXPORT | ||
| 7 | # define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_EXPORT | ||
| 8 | 8 | #else | |
| 9 | 9 | # define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_IMPORT | |
| 10 | 10 | #endif |
|   | |||
| 14 | 14 | ||
| 15 | 15 | class QNotificationsPrivate; | |
| 16 | 16 | ||
| 17 | class QHILDONNOFICATIONS_SHARED_EXPORT QNotifications : public QObject | ||
| 17 | class QHILDONNOTIFICATIONS_SHARED_EXPORT QNotifications : public QObject | ||
| 18 | 18 | { | |
| 19 | 19 | Q_OBJECT | |
| 20 | 20 |

