Commit bd284c1d4fe51b45a6f7e48cac768fe5bcd192b7

Fixes to notifications
  
1qmaemo-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
7qmaemo-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
113qmaemo-ext-libs (0.1-1-maemo0) unstable; urgency=low
214
315 * Initial release
  
2121
2222Package: qhildon-notifications
2323Architecture: any
24Depends: libqt4-core, libqt4-gui, libqt4-dbus, hildon-1
24Depends: libqt4-core, libqt4-gui, libqt4-dbus
2525Description: Extensions to the Qt4 libraries for Maemo 5
2626 This package contains capabilities to display
2727 system nofifications, etc.
  
2828 createMenu();
2929
3030 setCentralWidget(button);
31
32 notification = new Maemo::QNotifications(this);
33 notification->showSystemNote("This is a system note.");
3134}
3235
3336void MainWindow::flip()
  
1010
1111#include <QMainWindow>
1212
13#include "../../widgetcapabilities/qorientationcapability.h"
13#include <qmaemo-ext/widget/qorientationcapability.h>
14#include <qmaemo-ext/notifications/qnotification.h>
1415
1516class QPushButton;
1617class QMenu;
3737 QMenu *menu;
3838 QAction *quitAction;
3939 QAction *orientationChangeModeAction;
40
41
40 Maemo::QNotifications *notification;
4241};
4342#endif
  
77HEADERS += mainwindow.h
88SOURCES += main.cpp mainwindow.cpp
99
10LIBS += -lQHildon-WidgetCapabilities
10LIBS += -lQHildon-WidgetCapabilities -lQHildon-Notifications
  
22#define QHILDONNOTIFICATIONS_GLOBAL_H
33
44#if defined(QHILDONNOTIFICATIONS_LIBRARY)
5# define QHILDONNOFICATIONS_SHARED_EXPORT Q_DECL_EXPORT
5# define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_EXPORT
66#else
77# define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_IMPORT
88#endif
  
44#include <QtCore/qglobal.h>
55
66#if defined(QHILDONNOTIFICATIONS_LIBRARY)
7# define QHILDONNOFICATIONS_SHARED_EXPORT Q_DECL_EXPORT
7# define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_EXPORT
88#else
99# define QHILDONNOTIFICATIONS_SHARED_EXPORT Q_DECL_IMPORT
1010#endif
  
1414
1515class QNotificationsPrivate;
1616
17class QHILDONNOFICATIONS_SHARED_EXPORT QNotifications : public QObject
17class QHILDONNOTIFICATIONS_SHARED_EXPORT QNotifications : public QObject
1818{
1919 Q_OBJECT
2020